Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jul 2014 20:18:49 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r362368 - head/x11-fonts/indic-ttf
Message-ID:  <201407202018.s6KKInv4050277@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sun Jul 20 20:18:49 2014
New Revision: 362368
URL: http://svnweb.freebsd.org/changeset/ports/362368
QAT: https://qat.redports.org/buildarchive/r362368/

Log:
  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

Modified:
  head/x11-fonts/indic-ttf/Makefile

Modified: head/x11-fonts/indic-ttf/Makefile
==============================================================================
--- head/x11-fonts/indic-ttf/Makefile	Sun Jul 20 19:57:14 2014	(r362367)
+++ head/x11-fonts/indic-ttf/Makefile	Sun Jul 20 20:18:49 2014	(r362368)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407202018.s6KKInv4050277>