diff options
author | jhale <jhale@FreeBSD.org> | 2014-09-13 05:15:15 +0800 |
---|---|---|
committer | jhale <jhale@FreeBSD.org> | 2014-09-13 05:15:15 +0800 |
commit | b006180a82645860e7326c26fd14ac796688aa91 (patch) | |
tree | 10c3d6542c064bfe2ad0f92c3b26e008d21a6d9f | |
parent | 4b17dd9aeb9b28759551f38bf0f6b0edcac88607 (diff) | |
download | freebsd-ports-gnome-b006180a82645860e7326c26fd14ac796688aa91.tar.gz freebsd-ports-gnome-b006180a82645860e7326c26fd14ac796688aa91.tar.zst freebsd-ports-gnome-b006180a82645860e7326c26fd14ac796688aa91.zip |
- Drop indefinite article from COMMENT
- Add LICENSE_FILE and remove it from PORTDOCS
- Use NO_WRKSUBDIR to avoid redefining WRKSRC
- Create and install font indexes
- Simplify PORTDOCS installation
- Bump PORTREVISION
PR: 193542
Submitted by: Carlos Jacobo Puga Medina <cpm@fbsd.es> (maintainer)
-rw-r--r-- | x11-fonts/alef/Makefile | 28 | ||||
-rw-r--r-- | x11-fonts/alef/pkg-plist | 2 |
2 files changed, 19 insertions, 11 deletions
diff --git a/x11-fonts/alef/Makefile b/x11-fonts/alef/Makefile index 3104d4b60a3e..04f466ea5a8a 100644 --- a/x11-fonts/alef/Makefile +++ b/x11-fonts/alef/Makefile @@ -2,40 +2,46 @@ PORTNAME= alef PORTVERSION= 1.0 +PORTREVISION= 1 CATEGORIES= x11-fonts MASTER_SITES= http://alef.hagilda.com/ DISTNAME= Alef MAINTAINER= cpm@fbsd.es -COMMENT= A free multi-lingual font designed for screens +COMMENT= Free multi-lingual font designed for screens LICENSE= OFL11 +LICENSE_FILE= ${WRKSRC}/OFL-license.txt -BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig +BUILD_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \ + mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale USES= zip USE_XORG= x11 + +NO_WRKSUBDIR= yes FONTSDIR= ${PREFIX}/lib/X11/fonts/${PORTNAME} -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -NO_BUILD= yes PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}" -PORTDOCS= COMING-SOON.txt OFL-license.txt readme.txt +PORTDOCS= COMING-SOON.txt readme.txt + +MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale +MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir OPTIONS_DEFINE= DOCS post-extract: - @${MKDIR} ${WRKSRC} - cd ${WRKDIR} ; ${MV} TTF ${WRKSRC} - ${MV} ${WRKDIR}/--COMING-SOON--.txt ${WRKDIR}/COMING-SOON.txt + ${MV} ${WRKSRC}/--COMING-SOON--.txt ${WRKSRC}/COMING-SOON.txt + +do-build: + ${MKFONTSCL_CMD} ${WRKSRC}/TTF + ${MKFONTDIR_CMD} ${WRKSRC}/TTF do-install: @${MKDIR} ${STAGEDIR}${FONTSDIR} ${INSTALL_DATA} ${WRKSRC}/TTF/* ${STAGEDIR}${FONTSDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR} -.for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKDIR}/${f} ${STAGEDIR}${DOCSDIR} -.endfor + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/x11-fonts/alef/pkg-plist b/x11-fonts/alef/pkg-plist index 1dd1261938ba..67e74c58aee8 100644 --- a/x11-fonts/alef/pkg-plist +++ b/x11-fonts/alef/pkg-plist @@ -1,3 +1,5 @@ %%FONTSDIR%%/Alef-Bold.ttf %%FONTSDIR%%/Alef-Regular.ttf +%%FONTSDIR%%/fonts.dir +%%FONTSDIR%%/fonts.scale @dirrmtry %%FONTSDIR%% |