1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Add staging support and cleanup.

- Use @fc in pkg-plist.
This commit is contained in:
Jimmy Olgeni 2014-06-10 12:50:34 +00:00
parent 9ac207239c
commit d513b90079
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357306
3 changed files with 121 additions and 137 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= urwfonts
PORTVERSION= 1.0
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= x11-fonts
MASTER_SITES= ftp://ftp.gimp.org/pub/gimp/fonts/
DISTNAME= urw-fonts
@ -12,15 +12,19 @@ COMMENT= Another font package for X
RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
NO_WRKSUBDIR= yes
WRKSRC= ${WRKDIR}/URW
NO_BUILD= yes
NO_STAGE= yes
post-extract:
@${CHMOD} ${SHAREMODE} ${WRKDIR}/URW/*
FONTDIR= ${PREFIX}/lib/X11/fonts/${PORTNAME}
PLIST_SUB= FONTDIR="${FONTDIR:S|${PREFIX}/||}"
post-install:
@command fc-cache -v ${PREFIX}/lib/X11/fonts/URW || true
@${CAT} ${PKGMESSAGE}
do-install:
@${MKDIR} ${STAGEDIR}${FONTDIR}
.for FILE in fonts.dir fonts.scale Fontmap
${INSTALL_DATA} ${WRKSRC}/$(FILE) ${STAGEDIR}${FONTDIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/*.pfb ${STAGEDIR}${FONTDIR}
${INSTALL_DATA} ${WRKSRC}/*.afm ${STAGEDIR}${FONTDIR}
${INSTALL_DATA} ${WRKSRC}/*.pfm ${STAGEDIR}${FONTDIR}
.include <bsd.port.mk>

View File

@ -1,14 +0,0 @@
--- Makefile.orig Fri Aug 2 11:30:35 1996
+++ Makefile Fri Aug 2 11:32:02 1996
@@ -0,0 +1,11 @@
+
+DESTDIR=$(PREFIX)/lib/X11/fonts
+
+all:
+ @echo nothing to be done for \`$@\'
+ @echo this is an install-only port.
+
+install:
+ [ -d $(DESTDIR) ] || mkdir -p $(DESTDIR)
+ tar -cf - URW |(cd ${DESTDIR}; tar -xf -)
+

View File

@ -1,115 +1,109 @@
lib/X11/fonts/URW/a010013l.afm
lib/X11/fonts/URW/a010013l.pfb
lib/X11/fonts/URW/a010013l.pfm
lib/X11/fonts/URW/a010015l.afm
lib/X11/fonts/URW/a010015l.pfb
lib/X11/fonts/URW/a010015l.pfm
lib/X11/fonts/URW/a010033l.afm
lib/X11/fonts/URW/a010033l.pfb
lib/X11/fonts/URW/a010033l.pfm
lib/X11/fonts/URW/a010035l.afm
lib/X11/fonts/URW/a010035l.pfb
lib/X11/fonts/URW/a010035l.pfm
lib/X11/fonts/URW/b018012l.afm
lib/X11/fonts/URW/b018012l.pfb
lib/X11/fonts/URW/b018012l.pfm
lib/X11/fonts/URW/b018015l.afm
lib/X11/fonts/URW/b018015l.pfb
lib/X11/fonts/URW/b018015l.pfm
lib/X11/fonts/URW/b018032l.afm
lib/X11/fonts/URW/b018032l.pfb
lib/X11/fonts/URW/b018032l.pfm
lib/X11/fonts/URW/b018035l.afm
lib/X11/fonts/URW/b018035l.pfb
lib/X11/fonts/URW/b018035l.pfm
lib/X11/fonts/URW/fonts.dir
lib/X11/fonts/URW/c059013l.afm
lib/X11/fonts/URW/c059013l.pfb
lib/X11/fonts/URW/c059013l.pfm
lib/X11/fonts/URW/c059016l.afm
lib/X11/fonts/URW/c059016l.pfb
lib/X11/fonts/URW/c059016l.pfm
lib/X11/fonts/URW/c059033l.afm
lib/X11/fonts/URW/c059033l.pfb
lib/X11/fonts/URW/c059033l.pfm
lib/X11/fonts/URW/c059036l.afm
lib/X11/fonts/URW/c059036l.pfb
lib/X11/fonts/URW/c059036l.pfm
lib/X11/fonts/URW/d050000l.afm
lib/X11/fonts/URW/d050000l.pfb
lib/X11/fonts/URW/d050000l.pfm
lib/X11/fonts/URW/fonts.scale
lib/X11/fonts/URW/Fontmap
lib/X11/fonts/URW/n019003l.afm
lib/X11/fonts/URW/n019003l.pfb
lib/X11/fonts/URW/n019003l.pfm
lib/X11/fonts/URW/n019004l.afm
lib/X11/fonts/URW/n019004l.pfb
lib/X11/fonts/URW/n019004l.pfm
lib/X11/fonts/URW/n019023l.afm
lib/X11/fonts/URW/n019023l.pfb
lib/X11/fonts/URW/n019023l.pfm
lib/X11/fonts/URW/n019024l.afm
lib/X11/fonts/URW/n019024l.pfb
lib/X11/fonts/URW/n019024l.pfm
lib/X11/fonts/URW/n019043l.afm
lib/X11/fonts/URW/n019043l.pfb
lib/X11/fonts/URW/n019043l.pfm
lib/X11/fonts/URW/n019044l.afm
lib/X11/fonts/URW/n019044l.pfb
lib/X11/fonts/URW/n019044l.pfm
lib/X11/fonts/URW/n019063l.afm
lib/X11/fonts/URW/n019063l.pfb
lib/X11/fonts/URW/n019063l.pfm
lib/X11/fonts/URW/n019064l.afm
lib/X11/fonts/URW/n019064l.pfb
lib/X11/fonts/URW/n019064l.pfm
lib/X11/fonts/URW/n021003l.afm
lib/X11/fonts/URW/n021003l.pfb
lib/X11/fonts/URW/n021003l.pfm
lib/X11/fonts/URW/n021004l.afm
lib/X11/fonts/URW/n021004l.pfb
lib/X11/fonts/URW/n021004l.pfm
lib/X11/fonts/URW/n021023l.afm
lib/X11/fonts/URW/n021023l.pfb
lib/X11/fonts/URW/n021023l.pfm
lib/X11/fonts/URW/n021024l.afm
lib/X11/fonts/URW/n021024l.pfb
lib/X11/fonts/URW/n021024l.pfm
lib/X11/fonts/URW/n022003l.afm
lib/X11/fonts/URW/n022003l.pfb
lib/X11/fonts/URW/n022003l.pfm
lib/X11/fonts/URW/n022004l.afm
lib/X11/fonts/URW/n022004l.pfb
lib/X11/fonts/URW/n022004l.pfm
lib/X11/fonts/URW/n022023l.afm
lib/X11/fonts/URW/n022023l.pfb
lib/X11/fonts/URW/n022023l.pfm
lib/X11/fonts/URW/n022024l.afm
lib/X11/fonts/URW/n022024l.pfb
lib/X11/fonts/URW/n022024l.pfm
lib/X11/fonts/URW/p052003l.afm
lib/X11/fonts/URW/p052003l.pfb
lib/X11/fonts/URW/p052003l.pfm
lib/X11/fonts/URW/p052004l.afm
lib/X11/fonts/URW/p052004l.pfb
lib/X11/fonts/URW/p052004l.pfm
lib/X11/fonts/URW/p052023l.afm
lib/X11/fonts/URW/p052023l.pfb
lib/X11/fonts/URW/p052023l.pfm
lib/X11/fonts/URW/p052024l.afm
lib/X11/fonts/URW/p052024l.pfb
lib/X11/fonts/URW/p052024l.pfm
lib/X11/fonts/URW/s050000l.afm
lib/X11/fonts/URW/s050000l.pfb
lib/X11/fonts/URW/s050000l.pfm
lib/X11/fonts/URW/z003034l.afm
lib/X11/fonts/URW/z003034l.pfb
lib/X11/fonts/URW/z003034l.pfm
lib/X11/fonts/URW/fonts.dir_fndry_is_urw
lib/X11/fonts/URW/fonts.scale_fndry_is_urw
@exec command fc-cache -v %D/lib/X11/fonts/URW 2>/dev/null || true
@unexec rm %D/lib/X11/fonts/URW/fonts.cache-1 2>/dev/null || true
@unexec command fc-cache -v %D/lib/X11/fonts/URW 2>/dev/null || true
@unexec if [ -e %D/lib/X11/fonts/URW/fonts.cache-1 -a ! -s %D/lib/X11/fonts/URW/fonts.cache-1 ]; then rm %D/lib/X11/fonts/URW/fonts.cache-1; fi
@dirrm lib/X11/fonts/URW
%%FONTDIR%%/a010013l.afm
%%FONTDIR%%/a010013l.pfb
%%FONTDIR%%/a010013l.pfm
%%FONTDIR%%/a010015l.afm
%%FONTDIR%%/a010015l.pfb
%%FONTDIR%%/a010015l.pfm
%%FONTDIR%%/a010033l.afm
%%FONTDIR%%/a010033l.pfb
%%FONTDIR%%/a010033l.pfm
%%FONTDIR%%/a010035l.afm
%%FONTDIR%%/a010035l.pfb
%%FONTDIR%%/a010035l.pfm
%%FONTDIR%%/b018012l.afm
%%FONTDIR%%/b018012l.pfb
%%FONTDIR%%/b018012l.pfm
%%FONTDIR%%/b018015l.afm
%%FONTDIR%%/b018015l.pfb
%%FONTDIR%%/b018015l.pfm
%%FONTDIR%%/b018032l.afm
%%FONTDIR%%/b018032l.pfb
%%FONTDIR%%/b018032l.pfm
%%FONTDIR%%/b018035l.afm
%%FONTDIR%%/b018035l.pfb
%%FONTDIR%%/b018035l.pfm
%%FONTDIR%%/fonts.dir
%%FONTDIR%%/c059013l.afm
%%FONTDIR%%/c059013l.pfb
%%FONTDIR%%/c059013l.pfm
%%FONTDIR%%/c059016l.afm
%%FONTDIR%%/c059016l.pfb
%%FONTDIR%%/c059016l.pfm
%%FONTDIR%%/c059033l.afm
%%FONTDIR%%/c059033l.pfb
%%FONTDIR%%/c059033l.pfm
%%FONTDIR%%/c059036l.afm
%%FONTDIR%%/c059036l.pfb
%%FONTDIR%%/c059036l.pfm
%%FONTDIR%%/d050000l.afm
%%FONTDIR%%/d050000l.pfb
%%FONTDIR%%/d050000l.pfm
%%FONTDIR%%/fonts.scale
%%FONTDIR%%/Fontmap
%%FONTDIR%%/n019003l.afm
%%FONTDIR%%/n019003l.pfb
%%FONTDIR%%/n019003l.pfm
%%FONTDIR%%/n019004l.afm
%%FONTDIR%%/n019004l.pfb
%%FONTDIR%%/n019004l.pfm
%%FONTDIR%%/n019023l.afm
%%FONTDIR%%/n019023l.pfb
%%FONTDIR%%/n019023l.pfm
%%FONTDIR%%/n019024l.afm
%%FONTDIR%%/n019024l.pfb
%%FONTDIR%%/n019024l.pfm
%%FONTDIR%%/n019043l.afm
%%FONTDIR%%/n019043l.pfb
%%FONTDIR%%/n019043l.pfm
%%FONTDIR%%/n019044l.afm
%%FONTDIR%%/n019044l.pfb
%%FONTDIR%%/n019044l.pfm
%%FONTDIR%%/n019063l.afm
%%FONTDIR%%/n019063l.pfb
%%FONTDIR%%/n019063l.pfm
%%FONTDIR%%/n019064l.afm
%%FONTDIR%%/n019064l.pfb
%%FONTDIR%%/n019064l.pfm
%%FONTDIR%%/n021003l.afm
%%FONTDIR%%/n021003l.pfb
%%FONTDIR%%/n021003l.pfm
%%FONTDIR%%/n021004l.afm
%%FONTDIR%%/n021004l.pfb
%%FONTDIR%%/n021004l.pfm
%%FONTDIR%%/n021023l.afm
%%FONTDIR%%/n021023l.pfb
%%FONTDIR%%/n021023l.pfm
%%FONTDIR%%/n021024l.afm
%%FONTDIR%%/n021024l.pfb
%%FONTDIR%%/n021024l.pfm
%%FONTDIR%%/n022003l.afm
%%FONTDIR%%/n022003l.pfb
%%FONTDIR%%/n022003l.pfm
%%FONTDIR%%/n022004l.afm
%%FONTDIR%%/n022004l.pfb
%%FONTDIR%%/n022004l.pfm
%%FONTDIR%%/n022023l.afm
%%FONTDIR%%/n022023l.pfb
%%FONTDIR%%/n022023l.pfm
%%FONTDIR%%/n022024l.afm
%%FONTDIR%%/n022024l.pfb
%%FONTDIR%%/n022024l.pfm
%%FONTDIR%%/p052003l.afm
%%FONTDIR%%/p052003l.pfb
%%FONTDIR%%/p052003l.pfm
%%FONTDIR%%/p052004l.afm
%%FONTDIR%%/p052004l.pfb
%%FONTDIR%%/p052004l.pfm
%%FONTDIR%%/p052023l.afm
%%FONTDIR%%/p052023l.pfb
%%FONTDIR%%/p052023l.pfm
%%FONTDIR%%/p052024l.afm
%%FONTDIR%%/p052024l.pfb
%%FONTDIR%%/p052024l.pfm
%%FONTDIR%%/s050000l.afm
%%FONTDIR%%/s050000l.pfb
%%FONTDIR%%/s050000l.pfm
%%FONTDIR%%/z003034l.afm
%%FONTDIR%%/z003034l.pfb
%%FONTDIR%%/z003034l.pfm
@fc %%FONTDIR%%