Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Mar 2015 19:10:19 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r381772 - in head/arabic/kacst_fonts: . files
Message-ID:  <201503201910.t2KJAJOu001509@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Mar 20 19:10:18 2015
New Revision: 381772
URL: https://svnweb.freebsd.org/changeset/ports/381772
QAT: https://qat.redports.org/buildarchive/r381772/

Log:
  Convert to USES=fonts

Modified:
  head/arabic/kacst_fonts/Makefile
  head/arabic/kacst_fonts/files/pkg-message.in
  head/arabic/kacst_fonts/pkg-plist

Modified: head/arabic/kacst_fonts/Makefile
==============================================================================
--- head/arabic/kacst_fonts/Makefile	Fri Mar 20 19:09:22 2015	(r381771)
+++ head/arabic/kacst_fonts/Makefile	Fri Mar 20 19:10:18 2015	(r381772)
@@ -3,6 +3,7 @@
 
 PORTNAME=	kacst_fonts
 PORTVERSION=	2.01
+PORTREVISION=	1
 CATEGORIES=	arabic
 MASTER_SITES=	SF/arabeyes/${PORTNAME} \
 		http://www.c-s.li/ports/
@@ -13,20 +14,14 @@ COMMENT=	Truetype Arabic fonts created b
 
 LICENSE=	GPLv2
 
-BUILD_DEPENDS=	ttmkfdir:${PORTSDIR}/x11-fonts/ttmkfdir
-
-USES=		tar:bzip2
+USES=		fonts tar:bzip2
 WRKSRC=		${WRKDIR}/KacstArabicFonts-${PORTVERSION}
+NO_BUILD=	yes
 
 SUB_FILES=	pkg-message
-SUB_LIST=	PORTNAME="${PORTNAME}"
-
-do-build:
-	(cd ${WRKDIR} && ttmkfdir -c -d ${WRKSRC} > ${WRKSRC}/fonts.dir)
 
 do-install:
-	@${MKDIR} ${STAGEDIR}/${PREFIX}/lib/X11/fonts/kacst_fonts
-	${INSTALL_DATA} ${WRKSRC}/*.ttf ${WRKSRC}/fonts.dir \
-		${STAGEDIR}/${PREFIX}/lib/X11/fonts/kacst_fonts
+	@${MKDIR} ${STAGEDIR}/${FONTSDIR}
+	${INSTALL_DATA} ${WRKSRC}/*.ttf ${STAGEDIR}/${FONTSDIR}
 
 .include <bsd.port.mk>

Modified: head/arabic/kacst_fonts/files/pkg-message.in
==============================================================================
--- head/arabic/kacst_fonts/files/pkg-message.in	Fri Mar 20 19:09:22 2015	(r381771)
+++ head/arabic/kacst_fonts/files/pkg-message.in	Fri Mar 20 19:10:18 2015	(r381772)
@@ -5,5 +5,5 @@
 
  Add the following line to the "Files" section and restart XFree86 or Xorg:
 
- FontPath "%%LOCALBASE%%/lib/X11/fonts/%%PORTNAME%%"
+ FontPath "%%FONTSDIR%%"
 ----------------------------------------------------------------------------

Modified: head/arabic/kacst_fonts/pkg-plist
==============================================================================
--- head/arabic/kacst_fonts/pkg-plist	Fri Mar 20 19:09:22 2015	(r381771)
+++ head/arabic/kacst_fonts/pkg-plist	Fri Mar 20 19:10:18 2015	(r381772)
@@ -1,15 +1,14 @@
-lib/X11/fonts/kacst_fonts/KacstArt.ttf
-lib/X11/fonts/kacst_fonts/KacstBook.ttf
-lib/X11/fonts/kacst_fonts/KacstDecorative.ttf
-lib/X11/fonts/kacst_fonts/KacstDigital.ttf
-lib/X11/fonts/kacst_fonts/KacstFarsi.ttf
-lib/X11/fonts/kacst_fonts/KacstLetter.ttf
-lib/X11/fonts/kacst_fonts/KacstNaskh.ttf
-lib/X11/fonts/kacst_fonts/KacstOffice.ttf
-lib/X11/fonts/kacst_fonts/KacstPen.ttf
-lib/X11/fonts/kacst_fonts/KacstPoster.ttf
-lib/X11/fonts/kacst_fonts/KacstQurn.ttf
-lib/X11/fonts/kacst_fonts/KacstScreen.ttf
-lib/X11/fonts/kacst_fonts/KacstTitle.ttf
-lib/X11/fonts/kacst_fonts/KacstTitleL.ttf
-lib/X11/fonts/kacst_fonts/fonts.dir
+%%FONTSDIR%%/KacstArt.ttf
+%%FONTSDIR%%/KacstBook.ttf
+%%FONTSDIR%%/KacstDecorative.ttf
+%%FONTSDIR%%/KacstDigital.ttf
+%%FONTSDIR%%/KacstFarsi.ttf
+%%FONTSDIR%%/KacstLetter.ttf
+%%FONTSDIR%%/KacstNaskh.ttf
+%%FONTSDIR%%/KacstOffice.ttf
+%%FONTSDIR%%/KacstPen.ttf
+%%FONTSDIR%%/KacstPoster.ttf
+%%FONTSDIR%%/KacstQurn.ttf
+%%FONTSDIR%%/KacstScreen.ttf
+%%FONTSDIR%%/KacstTitle.ttf
+%%FONTSDIR%%/KacstTitleL.ttf



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