aboutsummaryrefslogtreecommitdiff
path: root/vietnamese
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-03-21 23:05:19 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-03-21 23:05:19 +0000
commita5da770e67afce95b829c38c5d5330fe69f7822c (patch)
treeb9556c9042a9d20d7c71f49869f39f95afc00052 /vietnamese
parent51da733b698e7bbedaac4743f457352334401249 (diff)
downloadports-a5da770e67afce95b829c38c5d5330fe69f7822c.tar.gz
ports-a5da770e67afce95b829c38c5d5330fe69f7822c.zip
Make fonts repecting XDG
Xorg is now looking in ${LOCALBASE}/share/fonts by default Xorg now accepts symlinks in etc/X11/fontpath.d (as decribed in Xserver(1)) Large cleanup on lots of font ports All fonts are now properly dynamically generating fonts.dir and fonts.scale instead of sometime overwriting existing ones) All fonts are generating fontconfig's cache Improve consistency in fonts ports
Notes
Notes: svn path=/head/; revision=381876
Diffstat (limited to 'vietnamese')
-rw-r--r--vietnamese/unicode-uhoai/Makefile14
-rw-r--r--vietnamese/unicode-uhoai/pkg-deinstall13
-rw-r--r--vietnamese/unicode-uhoai/pkg-install11
-rw-r--r--vietnamese/unicode-uhoai/pkg-plist2
4 files changed, 6 insertions, 34 deletions
diff --git a/vietnamese/unicode-uhoai/Makefile b/vietnamese/unicode-uhoai/Makefile
index 492830e329ca..f7016f0baf43 100644
--- a/vietnamese/unicode-uhoai/Makefile
+++ b/vietnamese/unicode-uhoai/Makefile
@@ -3,7 +3,7 @@
PORTNAME= unicode-uhoai
PORTVERSION= 2.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= vietnamese x11-fonts
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= obrien
@@ -12,19 +12,15 @@ DISTNAME= uhoaiw21
MAINTAINER= obrien@FreeBSD.org
COMMENT= Unicode TrueType Font with UHoai Vietnamese encoding
-USES= zip:infozip
+USES= fonts zip:infozip
NO_WRKSUBDIR= yes
NO_BUILD= taken care of in do-install target
-BUILD_DEPENDS= ttmkfdir:${PORTSDIR}/x11-fonts/ttmkfdir \
- bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf
-RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
-
+FONTNAME= TrueType
EXTRACT_BEFORE_ARGS= -qoL
do-install:
- @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/fonts/TrueType
- ${INSTALL_DATA} ${WRKSRC}/uhoaiw21.ttf \
- ${STAGEDIR}${PREFIX}/lib/X11/fonts/TrueType
+ @${MKDIR} ${STAGEDIR}${FONTSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/uhoaiw21.ttf ${STAGEDIR}${FONTSDIR}
.include <bsd.port.mk>
diff --git a/vietnamese/unicode-uhoai/pkg-deinstall b/vietnamese/unicode-uhoai/pkg-deinstall
deleted file mode 100644
index a4eff4621184..000000000000
--- a/vietnamese/unicode-uhoai/pkg-deinstall
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-# $FreeBSD$
-
-if [ "$2" != "POST-DEINSTALL" ]; then
- exit 0
-fi
-
-cd ${PKG_PREFIX}/lib/X11/fonts/TrueType
-${PKG_PREFIX}/bin/ttmkfdir -o fonts.scale
-if [ `cat fonts.scale` = "0" ]; then
- rm -f fonts.scale
- rm -f fonts.dir
-fi
diff --git a/vietnamese/unicode-uhoai/pkg-install b/vietnamese/unicode-uhoai/pkg-install
deleted file mode 100644
index 3795ab95170e..000000000000
--- a/vietnamese/unicode-uhoai/pkg-install
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-# $FreeBSD$
-
-if [ "$2" != "POST-INSTALL" ]; then
- exit 0
-fi
-
-cd ${PKG_PREFIX}/lib/X11/fonts/TrueType
-${PKG_PREFIX}/bin/mkfontdir >/dev/null 2>&1
-${PKG_PREFIX}/bin/ttmkfdir -o fonts.scale
-chmod a+r fonts.scale
diff --git a/vietnamese/unicode-uhoai/pkg-plist b/vietnamese/unicode-uhoai/pkg-plist
index aa920ddbc9bd..430fcfdf6c70 100644
--- a/vietnamese/unicode-uhoai/pkg-plist
+++ b/vietnamese/unicode-uhoai/pkg-plist
@@ -1 +1 @@
-lib/X11/fonts/TrueType/uhoaiw21.ttf
+%%FONTSDIR%%/uhoaiw21.ttf