o Use dpi{118,240,300,360,400,600} flavors instead of a funny hack

o Fake
o Update to MASTER_SITES that work
o Some makefile cleanup
o Tiny grammar fix for DESCR
input and ok from naddy@
This commit is contained in:
heko 2001-10-02 14:18:49 +00:00
parent 24e8d6275d
commit 93cf29626c
9 changed files with 54 additions and 38 deletions

View File

@ -2,22 +2,23 @@
# Date created: May 17 1998
# Whom: Angelos D. Keromytis
#
# $OpenBSD: Makefile,v 1.15 2001/06/27 20:56:27 pvalchev Exp $
# $OpenBSD: Makefile,v 1.16 2001/10/02 14:18:49 heko Exp $
#
COMMENT= "English PK fonts, for ghostscript, xdvi and so on"
DISTNAME= pkfonts
PKGNAME= pkfonts${RESOLUTION}-1.0
PKGNAME= pkfonts-1.0
CATEGORIES= print
NEED_VERSION= 1.402
FAKE=No
MASTER_SITES= ftp://ftp.eos.hokudai.ac.jp/pub/TeX/fonts/ \
ftp://ftp.wg.omron.co.jp/pub/tex/
DISTFILES= pk${RESOLUTION}.tar.gz
# see below for RESOLUTION definition
NEED_VERSION= 1.465
DISTFILES= pk${FLAVOR:S/dpi//}.tar.gz
EXTRACT_ONLY=
MASTER_SITES= ftp://ports.jp.FreeBSD.org/pub/%SUBDIR%/ \
ftp://ftp4.jp.FreeBSD.org/pub/%SUBDIR%/ \
ftp://ftp.ics.es.osaka-u.ac.jp/pub/mirrors/%SUBDIR%/
MASTER_SITE_SUBDIR= FreeBSD-jp/ports-jp/LOCAL_PORTS/pkfonts
MAINTAINER= Angelos D. Keromytis <angelos@openbsd.org>
# License: NONE
@ -26,41 +27,22 @@ PERMIT_PACKAGE_FTP= "no license"
PERMIT_DISTFILES_CDROM= "no license"
PERMIT_DISTFILES_FTP= "no license"
MANUAL_PACKAGE_BUILD= RESOLUTION has to be set to 118 240 300 360 400 600
DIST_SUBDIR= pkfonts
NO_BUILD= yes
NO_BUILD= Yes
.if !defined(RESOLUTION)
RESOLUTION= 300
RESOLUTION_UNSPECIFIED= yes
.else
.if ${RESOLUTION} != 118 && ${RESOLUTION} != 240 && \
${RESOLUTION} != 300 && ${RESOLUTION} != 360 && \
${RESOLUTION} != 400 && ${RESOLUTION} != 600
RESOLUTION_INVALID= yes
.endif
.endif
FLAVORS= dpi118 dpi240 dpi300 dpi360 dpi400 dpi600
FLAVOR?= dpi300
.if !defined(NO_WARNINGS)
pre-fetch:
.if defined(RESOLUTION_UNSPECIFIED)
@echo "Using ${RESOLUTION}dpi English PK fonts."
@echo "Set the environment variable RESOLUTION if you want"
@echo "it to use other resolutions."
@echo "Possible values are: 118, 240, 300 (default), 360, 400 and 600."
.elif defined(RESOLUTION_INVALID)
@echo "Error: invalid value for RESOLUTION: \"${RESOLUTION}\""
@echo "Possible values are: 118, 240, 300 (default), 360, 400 and 600."
@/usr/bin/false
.endif
.for dpi in ${FLAVORS:S/dpi//}
SUPDISTFILES+= pk${dpi}.tar.gz
.endfor
.if empty(FLAVOR)
ERRORS+= "Fatal: You must choose a flavor of: ${FLAVORS}"
.endif
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/fonts
tar -C ${PREFIX}/lib/fonts -xzf ${FULLDISTDIR}/${DISTFILES}
@cp ${PKGDIR}/${RESOLUTION}.list ${PKGDIR}/PLIST
pre-clean:
@rm -f ${PKGDIR}/PLIST # created by do-install above
tar -xzf ${FULLDISTDIR}/${DISTFILES} -C ${PREFIX}/lib/fonts
.include <bsd.port.mk>

View File

@ -4,5 +4,15 @@ MD5 (pkfonts/pk300.tar.gz) = a9ccd40d543924937bcefdef3e2080ea
MD5 (pkfonts/pk360.tar.gz) = 330339a36d3c58f4baf3d87fab967bbf
MD5 (pkfonts/pk400.tar.gz) = 0657e6e7437d875f96e1f6a07a72c6f0
MD5 (pkfonts/pk600.tar.gz) = 25b2c1f9635ecf7d8250d9d1b0487168
RMD160 (pkfonts/pk118.tar.gz) = 8e34c3d27c64acc7f8c7c887ace31456d956abd1
RMD160 (pkfonts/pk240.tar.gz) = 2f34b1d8a422594c911ed2784bffbca99d8fcb88
RMD160 (pkfonts/pk300.tar.gz) = 292f2e13b55791aacae2729da8b5ee0899b36e60
RMD160 (pkfonts/pk360.tar.gz) = 8acdf4739364fbad5263ee19c5df78a5ac67c0ef
RMD160 (pkfonts/pk400.tar.gz) = dc774b5d59c9f0378b5a899a5aaac36f1d1a8ee3
RMD160 (pkfonts/pk600.tar.gz) = 8e141cf77d8481ddbaa53bf705233b29b0c4c526
SHA1 (pkfonts/pk118.tar.gz) = b9db521d47e258de92efce0bf6a4e67c6d56cc89
SHA1 (pkfonts/pk240.tar.gz) = 3fe0bf5ebb68203e6ebe24df5d4616e592de8ea5
SHA1 (pkfonts/pk300.tar.gz) = 420259a7f786aae26ef0d92785872e53e9c49037
SHA1 (pkfonts/pk360.tar.gz) = 1afe92f14be2f961181b14e296990ce19f9ba3e2
SHA1 (pkfonts/pk400.tar.gz) = 940e81a0b30eb744537cf60c2d54e0b64d25e827
SHA1 (pkfonts/pk600.tar.gz) = a9d82530645f8c860d00dda7e0c858dfd7bf9987

View File

@ -1,3 +1,3 @@
This is English PK fonts package.
This package can install 118, 240, 300(default) or 400 dpi fonts.
This package can install 118, 240, 300(default), 400 or 600 dpi fonts.

View File

@ -1,3 +1,6 @@
@comment $OpenBSD: PLIST-dpi118,v 1.1 2001/10/02 14:18:49 heko Exp $
@option no-default-conflict
@pkgcfl pkfonts-1.0-dpi118
lib/fonts/pk118/circle10.118pk
lib/fonts/pk118/circle10.129pk
lib/fonts/pk118/circle10.142pk
@ -899,3 +902,4 @@ lib/fonts/pk118/msym8.142pk
lib/fonts/pk118/msym9.118pk
lib/fonts/pk118/msym9.129pk
lib/fonts/pk118/msym9.142pk
@dirrm lib/fonts/pk118

View File

@ -1,3 +1,6 @@
@comment $OpenBSD: PLIST-dpi240,v 1.1 2001/10/02 14:18:49 heko Exp $
@option no-default-conflict
@pkgcfl pkfonts-1.0-dpi240
lib/fonts/pk240/circle10.240pk
lib/fonts/pk240/circlew10.240pk
lib/fonts/pk240/cmb10.240pk
@ -725,3 +728,4 @@ lib/fonts/pk240/linew10.346pk
lib/fonts/pk240/linew10.415pk
lib/fonts/pk240/linew10.498pk
lib/fonts/pk240/linew10.597pk
@dirrm lib/fonts/pk240

View File

@ -1,3 +1,6 @@
@comment $OpenBSD: PLIST-dpi300,v 1.1 2001/10/02 14:18:49 heko Exp $
@option no-default-conflict
@pkgcfl pkfonts-1.0-dpi300
lib/fonts/pk300/cmb10.200pk
lib/fonts/pk300/cmb10.240pk
lib/fonts/pk300/cmb10.300pk
@ -1281,3 +1284,4 @@ lib/fonts/pk300/msym9.219pk
lib/fonts/pk300/msym9.240pk
lib/fonts/pk300/msym9.263pk
lib/fonts/pk300/msym9.288pk
@dirrm lib/fonts/pk300

View File

@ -1,3 +1,6 @@
@comment $OpenBSD: PLIST-dpi360,v 1.1 2001/10/02 14:18:49 heko Exp $
@option no-default-conflict
@pkgcfl pkfonts-1.0-dpi360
lib/fonts/pk360/cmb10.360pk
lib/fonts/pk360/cmb10.394pk
lib/fonts/pk360/cmb10.432pk
@ -623,3 +626,4 @@ lib/fonts/pk360/linew10.518pk
lib/fonts/pk360/linew10.622pk
lib/fonts/pk360/linew10.746pk
lib/fonts/pk360/linew10.896pk
@dirrm lib/fonts/pk360

View File

@ -1,3 +1,6 @@
@comment $OpenBSD: PLIST-dpi400,v 1.1 2001/10/02 14:18:49 heko Exp $
@option no-default-conflict
@pkgcfl pkfonts-1.0-dpi400
lib/fonts/pk400/cmb10.400pk
lib/fonts/pk400/cmb10.438pk
lib/fonts/pk400/cmb10.480pk
@ -695,3 +698,4 @@ lib/fonts/pk400/linew10.691pk
lib/fonts/pk400/linew10.829pk
lib/fonts/pk400/linew10.995pk
lib/fonts/pk400/logo50.400pk
@dirrm lib/fonts/pk400

View File

@ -1,3 +1,6 @@
@comment $OpenBSD: PLIST-dpi600,v 1.1 2001/10/02 14:18:49 heko Exp $
@option no-default-conflict
@pkgcfl pkfonts-1.0-dpi600
lib/fonts/pk600/cmbsy10.1037pk
lib/fonts/pk600/cmbsy10.1244pk
lib/fonts/pk600/cmbsy10.1493pk
@ -551,3 +554,4 @@ lib/fonts/pk600/linew10.600pk
lib/fonts/pk600/linew10.657pk
lib/fonts/pk600/linew10.720pk
lib/fonts/pk600/linew10.864pk
@dirrm lib/fonts/pk600