diff options
author | marino <marino@FreeBSD.org> | 2014-07-21 04:18:49 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2014-07-21 04:18:49 +0800 |
commit | aae53537d5393c7247964d1f18da0af04495dfab (patch) | |
tree | dd3a93acdb6b83046c625779ce61c488b200324f /x11-fonts | |
parent | a2edefe9d258be31a8ea429b63d48d845b8eb50b (diff) | |
download | freebsd-ports-gnome-aae53537d5393c7247964d1f18da0af04495dfab.tar.gz freebsd-ports-gnome-aae53537d5393c7247964d1f18da0af04495dfab.tar.zst freebsd-ports-gnome-aae53537d5393c7247964d1f18da0af04495dfab.zip |
x11-fonts/indic-ttf: Restore missing MALAYALAM option, then clean up
The MALAYALAM option was in place but not actually defined, so it
apparently got lost somewhere along the way. Restore it, then simplify
the port using OPTIONS_SUB=yes. The definitions of FONTSDIR and
CONFAVAILDIR weren't liked on DragonFly poudriere so those were reworked
to something more robust. While here pet portlint and do some cosmetic
alignments.
PR: 190822
Submitted by: Christopher Hall
Diffstat (limited to 'x11-fonts')
-rw-r--r-- | x11-fonts/indic-ttf/Makefile | 62 |
1 files changed, 20 insertions, 42 deletions
diff --git a/x11-fonts/indic-ttf/Makefile b/x11-fonts/indic-ttf/Makefile index 2ae88b6858af..ea88fea29c4e 100644 --- a/x11-fonts/indic-ttf/Makefile +++ b/x11-fonts/indic-ttf/Makefile @@ -3,13 +3,14 @@ PORTNAME= indic-ttf PORTVERSION= 0.5.14 +PORTREVISION= 1 CATEGORIES= x11-fonts MASTER_SITES= DEBIAN/pool/main/t/ttf-indic-fonts PKGNAMESUFFIX= -fonts DISTNAME= ${PORTNAME:C|(.*)-(.*)|\2-\1|}${PKGNAMESUFFIX}_${PORTVERSION} MAINTAINER= ports@FreeBSD.org -COMMENT= A collection of truetype Indic fonts +COMMENT= Collection of truetype Indic fonts BUILD_DEPENDS+= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \ mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \ @@ -20,11 +21,12 @@ WRKSRC= ${WRKDIR}/${DISTNAME:S|_|-|} NO_BUILD= yes -OPTIONS_MULTI= FONTS -OPTIONS_MULTI_FONTS= BENGALI DEVANAGARI GUJARATI KANNADA ORIYA PUNJABI \ - TAMIL TELUGU -OPTIONS_DEFAULT= BENGALI DEVANAGARI GUJARATI KANNADA ORIYA PUNJABI \ - TAMIL TELUGU +OPTIONS_SUB= yes +OPTIONS_MULTI= FONTS +OPTIONS_MULTI_FONTS= BENGALI DEVANAGARI GUJARATI KANNADA MALAYALAM \ + ORIYA PUNJABI TAMIL TELUGU +OPTIONS_DEFAULT= BENGALI DEVANAGARI GUJARATI KANNADA MALAYALAM \ + ORIYA PUNJABI TAMIL TELUGU BENGALI_DESC= BENGALI font set DEVANAGARI_DESC= DEVANAGARI font set @@ -36,13 +38,15 @@ PUNJABI_DESC= PUNJABI font set TAMIL_DESC= TAMIL font set TELUGU_DESC= TELUGU font set -FONTSNAME= ${PORTNAME} -FONTSDIR?= ${PREFIX}/lib/X11/fonts/${FONTSNAME} +FONTSNAME= indic-ttf +FONTLOC?= lib/X11/fonts/indic-ttf +FONTSDIR= ${PREFIX}/${FONTLOC} -CONFAVAILDIR?= ${PREFIX}/etc/fonts/conf.avail +CONFAVLOC?= etc/fonts/conf.avail +CONFAVAILDIR= ${PREFIX}/${CONFAVLOC} -PLIST_SUB= FONTSDIR=${FONTSDIR:S|${PREFIX}/||} \ - CONFAVAILDIR=${CONFAVAILDIR:S|${PREFIX}/||} \ +PLIST_SUB= FONTSDIR=${FONTLOC} \ + CONFAVAILDIR=${CONFAVLOC} \ FCCACHE='${FCCACHE}' SUB_FILES= pkg-message @@ -52,66 +56,39 @@ SUB_LIST= FONTSDIR=${FONTSDIR} \ .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MBENGALI} -FONTS= bengali -PLIST_SUB+= BENGALI='' -.else -PLIST_SUB+= BENGALI='@comment ' +FONTS+= bengali .endif .if ${PORT_OPTIONS:MDEVANAGARI} FONTS+= devanagari -PLIST_SUB+= DEVANAGARI='' -.else -PLIST_SUB+= DEVANAGARI='@comment ' .endif .if ${PORT_OPTIONS:MGUJARATI} FONTS+= gujarati -PLIST_SUB+= GUJARATI='' -.else -PLIST_SUB+= GUJARATI='@comment ' .endif .if ${PORT_OPTIONS:MKANNADA} FONTS+= kannada -PLIST_SUB+= KANNADA='' -.else -PLIST_SUB+= KANNADA='@comment ' .endif .if ${PORT_OPTIONS:MMALAYALAM} FONTS+= malayalam -PLIST_SUB+= MALAYALAM='' -.else -PLIST_SUB+= MALAYALAM='@comment ' .endif .if ${PORT_OPTIONS:MORIYA} FONTS+= oriya -PLIST_SUB+= ORIYA='' -.else -PLIST_SUB+= ORIYA='@comment ' .endif .if ${PORT_OPTIONS:MPUNJABI} FONTS+= punjabi -PLIST_SUB+= PUNJABI='' -.else -PLIST_SUB+= PUNJABI='@comment ' .endif .if ${PORT_OPTIONS:MTAMIL} FONTS+= tamil -PLIST_SUB+= TAMIL='' -.else -PLIST_SUB+= TAMIL='@comment ' .endif .if ${PORT_OPTIONS:MTELUGU} FONTS+= telugu -PLIST_SUB+= TELUGU='' -.else -PLIST_SUB+= TELUGU='@comment ' .endif SUB_LIST+= FONTS="${FONTS}" @@ -119,17 +96,18 @@ SUB_LIST+= FONTS="${FONTS}" do-install: install-fonts install-conf install-fonts: - .for f in ${FONTS} ${MKDIR} ${STAGEDIR}${FONTSDIR}/${f} ${INSTALL_DATA} ${WRKSRC}/ttf-${f}/*.ttf ${STAGEDIR}${FONTSDIR}/${f} - ${INSTALL_DATA} ${WRKSRC}/debian/ttf-${f}${PKGNAMESUFFIX}.copyright ${STAGEDIR}${FONTSDIR}/${f} + ${INSTALL_DATA} ${WRKSRC}/debian/ttf-${f}${PKGNAMESUFFIX}.copyright \ + ${STAGEDIR}${FONTSDIR}/${f} .endfor install-conf: ${MKDIR} ${STAGEDIR}${CONFAVAILDIR} .for f in ${FONTS} - ${INSTALL_DATA} ${WRKSRC}/ttf-${f}/90-ttf-${f}${PKGNAMESUFFIX}.conf ${STAGEDIR}${CONFAVAILDIR}/ + ${INSTALL_DATA} ${WRKSRC}/ttf-${f}/90-ttf-${f}${PKGNAMESUFFIX}.conf \ + ${STAGEDIR}${CONFAVAILDIR}/ .endfor .include <bsd.port.mk> |