diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2006-12-29 18:17:54 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2006-12-29 18:17:54 +0000 |
commit | a32ea27034922f2805d241a9578ce473f4c59472 (patch) | |
tree | 38e01923ee147794c318aef7975c6ff6e274c301 | |
parent | c069b614d1c0f73ce964d5bcbccfd3d7a978baea (diff) | |
download | ports-a32ea27034922f2805d241a9578ce473f4c59472.tar.gz ports-a32ea27034922f2805d241a9578ce473f4c59472.zip |
Notes
-rw-r--r-- | print/a2ps-letter/Makefile | 23 | ||||
-rw-r--r-- | print/a2ps-letter/distinfo | 3 | ||||
-rw-r--r-- | print/a2ps-letter/pkg-plist | 20 |
3 files changed, 46 insertions, 0 deletions
diff --git a/print/a2ps-letter/Makefile b/print/a2ps-letter/Makefile index 8bdc672e3a37..8d38d7a44c74 100644 --- a/print/a2ps-letter/Makefile +++ b/print/a2ps-letter/Makefile @@ -13,6 +13,9 @@ MASTER_SITES= ftp://ftp.enst.fr/pub/unix/a2ps/ \ ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= ${PORTNAME} PKGNAMESUFFIX= -${PAPERSIZE}${PKGNAMESUFFIX2} +.if defined(WITH_I18N) || make(makesum) || defined(FETCH_ALL) +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${I18N_PACKAGE}${EXTRACT_SUFX} +.endif MAINTAINER= dinoex@FreeBSD.org COMMENT= Formats an ascii file for printing on a postscript printer @@ -23,6 +26,7 @@ INSTALLS_SHLIB= yes MAN1= a2ps.1 ogonkify.1 card.1 psmandup.1 fixps.1 pdiff.1 psset.1 texi2dvi4a2ps.1 INFO= a2ps ogonkify regex WRKSRC= ${WRKDIR}/${PORTNAME}-4.13 +I18N_PACKAGE= i18n-fonts-0.1 PAPERSIZE?= letter PAPERSIZECNF= ${PAPERSIZE:S/l/L/:S/a/A/} @@ -55,6 +59,25 @@ PLIST_SUB+= WITHEMACS="" PLIST_SUB+= WITHEMACS="@comment " .endif +.if defined(WITH_I18N) +PLIST_SUB+= WITHI18N="" + +pre-configure: + @cd ${WRKDIR}/${I18N_PACKAGE}/afm && ${ECHO} *.afm > afms.lst && \ + ${MV} *.afm ${WRKSRC}/afm && cd ../fonts && \ + ${MV} *.pfb ${WRKSRC}/fonts + +post-configure: + @cd ${WRKSRC}/fonts && { ${ECHO} ''; \ + ${ECHO} "pfb_fonts =" *.pfb; } >> Makefile && \ + ${REINPLACE_CMD} 's,^\(fonts_DATA = .*\),\1 $$(pfb_fonts),' Makefile + @cd ${WRKSRC}/afm && { ${ECHO} ''; \ + ${ECHO} "i18n_afms =" `cat ${WRKDIR}/${I18N_PACKAGE}/afm/afms.lst`; } >> Makefile && \ + ${REINPLACE_CMD} 's,^\(all_afms = .*\),\1 $$(i18n_afms),' Makefile +.else +PLIST_SUB+= WITHI18N="@comment " +.endif + post-install: ${STRIP_CMD} ${PREFIX}/bin/a2ps .if defined(WITH_EMACS) diff --git a/print/a2ps-letter/distinfo b/print/a2ps-letter/distinfo index 4eb21a991309..104e1dc92b3a 100644 --- a/print/a2ps-letter/distinfo +++ b/print/a2ps-letter/distinfo @@ -1,3 +1,6 @@ MD5 (a2ps-4.13b.tar.gz) = 0c8e0c31b08c14f7a7198ce967eb3281 SHA256 (a2ps-4.13b.tar.gz) = f4d2ac6f09f44eeb82621530b1970afe88fd97cfe82da43b61069800d0c06d12 SIZE (a2ps-4.13b.tar.gz) = 1944289 +MD5 (i18n-fonts-0.1.tar.gz) = fee1456d0e6e94af4fc5b5a1bb9687b7 +SHA256 (i18n-fonts-0.1.tar.gz) = 20628df682359044b8e5241c97a3c8da7a098aa260a7d281a87f67486a531786 +SIZE (i18n-fonts-0.1.tar.gz) = 352530 diff --git a/print/a2ps-letter/pkg-plist b/print/a2ps-letter/pkg-plist index a9aed2df7274..009cf0cd100d 100644 --- a/print/a2ps-letter/pkg-plist +++ b/print/a2ps-letter/pkg-plist @@ -47,6 +47,16 @@ lib/liba2ps.a %%DATADIR%%/afm/ptmr.afm %%DATADIR%%/afm/pzcmi.afm %%DATADIR%%/afm/pzdr.afm +%%WITHI18N%%%%DATADIR%%/afm/colle10.afm +%%WITHI18N%%%%DATADIR%%/afm/colle8.afm +%%WITHI18N%%%%DATADIR%%/afm/colle9.afm +%%WITHI18N%%%%DATADIR%%/afm/crr35__i.afm +%%WITHI18N%%%%DATADIR%%/afm/crr36__i.afm +%%WITHI18N%%%%DATADIR%%/afm/crr55__i.afm +%%WITHI18N%%%%DATADIR%%/afm/crr56__i.afm +%%WITHI18N%%%%DATADIR%%/afm/textb18.afm +%%WITHI18N%%%%DATADIR%%/afm/textb19.afm +%%WITHI18N%%%%DATADIR%%/afm/textb20.afm %%DATADIR%%/encoding/ascii.edf %%DATADIR%%/encoding/encoding.map %%DATADIR%%/encoding/hp.edf @@ -66,6 +76,16 @@ lib/liba2ps.a %%DATADIR%%/encoding/mac.edf %%DATADIR%%/encoding/ms-cp1250.edf %%DATADIR%%/fonts/pcfont.pfa +%%WITHI18N%%%%DATADIR%%/fonts/colle10.pfb +%%WITHI18N%%%%DATADIR%%/fonts/colle8.pfb +%%WITHI18N%%%%DATADIR%%/fonts/colle9.pfb +%%WITHI18N%%%%DATADIR%%/fonts/crr35__i.pfb +%%WITHI18N%%%%DATADIR%%/fonts/crr36__i.pfb +%%WITHI18N%%%%DATADIR%%/fonts/crr55__i.pfb +%%WITHI18N%%%%DATADIR%%/fonts/crr56__i.pfb +%%WITHI18N%%%%DATADIR%%/fonts/textb18.pfb +%%WITHI18N%%%%DATADIR%%/fonts/textb19.pfb +%%WITHI18N%%%%DATADIR%%/fonts/textb20.pfb %%DATADIR%%/ogonkify/README %%DATADIR%%/ogonkify/adobe.enc %%DATADIR%%/ogonkify/afm/pcrb-o.afm |