diff options
author | thierry <thierry@FreeBSD.org> | 2005-03-10 06:33:10 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2005-03-10 06:33:10 +0800 |
commit | 5d3046d5e51e041f8f283e0e5f6041fe8688edd9 (patch) | |
tree | 1d8ff836ed7099e685e1dd1e8753f5067dc274f7 /print/amspsfnt | |
parent | e162b86bc81af5e817274eff240b5a4ec5e6f4b8 (diff) | |
download | freebsd-ports-gnome-5d3046d5e51e041f8f283e0e5f6041fe8688edd9.tar.gz freebsd-ports-gnome-5d3046d5e51e041f8f283e0e5f6041fe8688edd9.tar.zst freebsd-ports-gnome-5d3046d5e51e041f8f283e0e5f6041fe8688edd9.zip |
- add category x11-fonts;
- add a pkg-message;
- pet portlint.
Submitted by: Pedro F. Giffuni
Diffstat (limited to 'print/amspsfnt')
-rw-r--r-- | print/amspsfnt/Makefile | 36 | ||||
-rw-r--r-- | print/amspsfnt/files/pkg-message.in | 15 | ||||
-rw-r--r-- | print/amspsfnt/pkg-plist | 4 |
3 files changed, 37 insertions, 18 deletions
diff --git a/print/amspsfnt/Makefile b/print/amspsfnt/Makefile index 18d5da9e81d4..47db18f47cd0 100644 --- a/print/amspsfnt/Makefile +++ b/print/amspsfnt/Makefile @@ -7,7 +7,7 @@ PORTNAME= amspsfnt PORTVERSION= 1.0 -CATEGORIES= print +CATEGORIES= print x11-fonts MASTER_SITES= ftp://ftp.ams.org/pub/tex/psfonts/ams/ DISTNAME= amsps EXTRACT_SUFX= -unix.tar.gz @@ -15,28 +15,32 @@ EXTRACT_SUFX= -unix.tar.gz MAINTAINER= ports@FreeBSD.org COMMENT= AMSFonts PostScript Fonts (Adobe Type 1 format) -BUILD_DEPENDS= $(LOCALBASE)/bin/type1inst:${PORTSDIR}/x11-fonts/p5-type1inst +BUILD_DEPENDS= ${LOCALBASE}/bin/type1inst:${PORTSDIR}/x11-fonts/p5-type1inst -WRKSRC= $(WRKDIR)/amspsfnt -TEXDIR= $(PREFIX)/share/texmf -AMSFNTDIR= $(TEXDIR)/fonts/ams +SUB_FILES= pkg-message + +WRKSRC= ${WRKDIR}/amspsfnt +TEXDIR?= ${PREFIX}/share/texmf +AMSFNTDIR= ${TEXDIR}/fonts/ams do-build: - (cd ${WRKSRC}/pfb; $(LOCALBASE)/bin/type1inst -nolog -q) + (cd ${WRKSRC}/pfb; ${LOCALBASE}/bin/type1inst -nolog) do-install: - @${MKDIR} $(AMSFNTDIR)/tfm - $(INSTALL_DATA) ${WRKSRC}/tfm/* $(AMSFNTDIR)/tfm - @${MKDIR} $(AMSFNTDIR)/type1 - $(INSTALL_DATA) ${WRKSRC}/pfb/* $(AMSFNTDIR)/type1 - @${MKDIR} $(TEXDIR)/dvips/mapfiles.ams - $(INSTALL_DATA) ${WRKSRC}/mapfiles/* $(TEXDIR)/dvips/mapfiles.ams - @${MKDIR} $(PREFIX)/lib/afm - $(INSTALL_DATA) ${WRKSRC}/afm/* $(PREFIX)/lib/afm - + @${MKDIR} ${AMSFNTDIR}/tfm + ${INSTALL_DATA} ${WRKSRC}/tfm/* ${AMSFNTDIR}/tfm + @${MKDIR} ${AMSFNTDIR}/type1 + ${INSTALL_DATA} ${WRKSRC}/pfb/* ${AMSFNTDIR}/type1 + @${MKDIR} ${TEXDIR}/dvips/mapfiles.ams + ${INSTALL_DATA} ${WRKSRC}/mapfiles/* ${TEXDIR}/dvips/mapfiles.ams + @${MKDIR} ${PREFIX}/lib/afm + ${INSTALL_DATA} ${WRKSRC}/afm/* ${PREFIX}/lib/afm .ifndef (NOPORTDOCS) @${MKDIR} ${DOCSDIR} - $(INSTALL_DATA) ${WRKSRC}/READ.ME ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/READ.ME ${DOCSDIR} .endif +post-install: + @${CAT} ${PKGMESSAGE} + .include <bsd.port.mk> diff --git a/print/amspsfnt/files/pkg-message.in b/print/amspsfnt/files/pkg-message.in new file mode 100644 index 000000000000..6350c66e7e35 --- /dev/null +++ b/print/amspsfnt/files/pkg-message.in @@ -0,0 +1,15 @@ +============================================================ +American Math Society Postscript fonts have been installed! +============================================================ + +Please add %%PREFIX%%/share/texmf/fonts/ams +to your X11 fonts path by either: + +$ xset fp+ %%PREFIX%%/share/texmf/fonts/ams +$ xset fp rehash + +or by adding it to your X-server configuration file. +Other utilities, like ghostscript, may also need +additional configuration. + +============================================================ diff --git a/print/amspsfnt/pkg-plist b/print/amspsfnt/pkg-plist index 9cbc75d1212c..b9d10f64b231 100644 --- a/print/amspsfnt/pkg-plist +++ b/print/amspsfnt/pkg-plist @@ -32,7 +32,7 @@ lib/afm/wncyi10.afm lib/afm/wncyr10.afm lib/afm/wncysc10.afm lib/afm/wncyss10.afm -%%PORTDOCS%%share/doc/amspsfnt/READ.ME +%%PORTDOCS%%%%DOCSDIR%%/READ.ME share/texmf/dvips/mapfiles.ams/psfonts.ams share/texmf/dvips/mapfiles.ams/psfonts.amx share/texmf/dvips/mapfiles.ams/psfonts.amz @@ -171,5 +171,5 @@ share/texmf/fonts/ams/type1/wncyss10.pfb @dirrm share/texmf/dvips/mapfiles.ams @unexec rmdir %D/share/texmf/dvips 2>/dev/null || true @unexec rmdir %D/share/texmf 2>/dev/null || true -%%PORTDOCS%%@dirrm share/doc/amspsfnt +%%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm lib/afm |