aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arabic/kacst_fonts/Makefile15
-rw-r--r--arabic/kacst_fonts/files/pkg-message.in2
-rw-r--r--arabic/kacst_fonts/pkg-plist29
3 files changed, 20 insertions, 26 deletions
diff --git a/arabic/kacst_fonts/Makefile b/arabic/kacst_fonts/Makefile
index 5bee0cac796a..abeeb05aecfb 100644
--- a/arabic/kacst_fonts/Makefile
+++ b/arabic/kacst_fonts/Makefile
@@ -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 by KACST
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>
diff --git a/arabic/kacst_fonts/files/pkg-message.in b/arabic/kacst_fonts/files/pkg-message.in
index 0c53af563cc1..333cafdd24e9 100644
--- a/arabic/kacst_fonts/files/pkg-message.in
+++ b/arabic/kacst_fonts/files/pkg-message.in
@@ -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%%"
----------------------------------------------------------------------------
diff --git a/arabic/kacst_fonts/pkg-plist b/arabic/kacst_fonts/pkg-plist
index 6892a2c7dffd..d601da1b57cb 100644
--- a/arabic/kacst_fonts/pkg-plist
+++ b/arabic/kacst_fonts/pkg-plist
@@ -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