aboutsummaryrefslogtreecommitdiff
path: root/japanese/monafonts
diff options
context:
space:
mode:
authorMANTANI Nobutaka <nobutaka@FreeBSD.org>2014-06-22 10:11:38 +0000
committerMANTANI Nobutaka <nobutaka@FreeBSD.org>2014-06-22 10:11:38 +0000
commit770fd39d2c1114737ff319b5f5b2266bd55f38c9 (patch)
tree330ded718e2bb597537288aa537e4d16f86172e9 /japanese/monafonts
parent2659f64ae3e46720398bc39f6d364d5bc427b767 (diff)
downloadports-770fd39d2c1114737ff319b5f5b2266bd55f38c9.tar.gz
ports-770fd39d2c1114737ff319b5f5b2266bd55f38c9.zip
Notes
Diffstat (limited to 'japanese/monafonts')
-rw-r--r--japanese/monafonts/Makefile9
-rw-r--r--japanese/monafonts/files/patch-aa29
-rw-r--r--japanese/monafonts/pkg-deinstall (renamed from japanese/monafonts/pkg-req)29
-rw-r--r--japanese/monafonts/pkg-install86
-rw-r--r--japanese/monafonts/pkg-plist8
5 files changed, 118 insertions, 43 deletions
diff --git a/japanese/monafonts/Makefile b/japanese/monafonts/Makefile
index 23823ee3fb8c..8c7a8cfef0e4 100644
--- a/japanese/monafonts/Makefile
+++ b/japanese/monafonts/Makefile
@@ -14,8 +14,7 @@ COMMENT= X11 12,14,16-dot Kanji fonts
BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
-RUN_DEPENDES= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
- mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
+RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
USES= perl5
USE_PERL5= build
@@ -23,13 +22,7 @@ USE_PERL5= build
FONTSDIR= lib/X11/fonts/local
USE_BZIP2= yes
ALL_TARGET= bdf
-MAKE_ARGS= PREFIX=${PREFIX}
PLIST_SUB= FONTSDIR=${FONTSDIR}
-NO_STAGE= yes
-pre-install:
- @${SETENV} PKG_PREFIX=${PREFIX} \
- ${SH} ${PKGREQ} ${PKGNAME} INSTALL
-
.include <bsd.port.mk>
diff --git a/japanese/monafonts/files/patch-aa b/japanese/monafonts/files/patch-aa
index 4f28bf097718..bda17e280d37 100644
--- a/japanese/monafonts/files/patch-aa
+++ b/japanese/monafonts/files/patch-aa
@@ -1,13 +1,26 @@
---- Makefile.orig Wed May 15 08:24:28 2002
-+++ Makefile Wed May 15 22:54:08 2002
-@@ -17,8 +17,8 @@
+--- Makefile.orig 2003-09-10 11:54:10.000000000 +0900
++++ Makefile 2014-05-08 22:35:25.000000000 +0900
+@@ -18,11 +18,10 @@
#GZIP_SUFFIX = Z
DESTDIR =
-X11BINDIR = /usr/X11R6/bin
-X11FONTDIR = $(DESTDIR)/usr/X11R6/lib/X11/fonts/local
-+X11BINDIR = $(PREFIX)/bin
-+X11FONTDIR = $(PREFIX)/lib/X11/fonts/local
- BDFTOPCF = $(X11BINDIR)/bdftopcf
- MKDIRHIER = $(X11BINDIR)/mkdirhier # 'mkdir -p' may also work.
- MKFONTDIR = $(X11BINDIR)/mkfontdir
+-BDFTOPCF = $(X11BINDIR)/bdftopcf
+-MKDIRHIER = $(X11BINDIR)/mkdirhier # 'mkdir -p' may also work.
+-MKFONTDIR = $(X11BINDIR)/mkfontdir
++X11FONTDIR = $(DESTDIR)$(PREFIX)/lib/X11/fonts/local
++BDFTOPCF = bdftopcf
++MKDIRHIER = mkdir -p # 'mkdir -p' may also work.
++MKFONTDIR = mkfontdir
+
+ MY_RPM_ROOT = /tmp/rpm-root
+
+@@ -258,7 +257,6 @@
+ $(BDFTOPCF) dist/$$i.bdf | \
+ $(GZIP_CMD) -c > $(X11FONTDIR)/$$i.pcf.$(GZIP_SUFFIX); \
+ done
+- $(MKFONTDIR) $(X11FONTDIR)
+
+ # append fonts.alias
+ install-alias:
diff --git a/japanese/monafonts/pkg-req b/japanese/monafonts/pkg-deinstall
index ca85137d6b48..b036f74e8915 100644
--- a/japanese/monafonts/pkg-req
+++ b/japanese/monafonts/pkg-deinstall
@@ -1,23 +1,10 @@
#!/bin/sh
-if [ "x$1" = "x" ]; then
- exit 1;
+if [ "$2" != "DEINSTALL" ]; then
+ exit 0
fi
-if [ "x$2" != "xINSTALL" -a "x$2" != "xDEINSTALL" ]; then
- exit 1;
-fi
-
-export FONTDIR; FONTDIR=${PKG_PREFIX}/lib/X11/fonts/local
-if [ "$2x" = "INSTALLx" -a ! -d ${FONTDIR} ]; then
- echo '**********************************************************************'
- echo "****** ${FONTDIR}/ doesn't exist."
- echo "****** Creating ${FONTDIR}/"
- echo '****** Please upgrade your XFree86 to 3.3.3 or upper,'
- echo "****** or add this directory to your /etc/XF86Config's FontPath entry."
- echo '**********************************************************************'
- mkdir ${FONTDIR}
-fi
+FONTDIR=${PKG_PREFIX}/lib/X11/fonts/local
grepv() {
awk -v SRC=$1 'BEGIN{while (getline < SRC) {ENTRY[$0]=1}} (ENTRY[$0] != 1) {print}' $2
@@ -88,12 +75,8 @@ echo "Updating ${FONTDIR}/fonts.alias"
cd ${FONTDIR}
touch fonts.alias
cp fonts.alias fonts.alias.orig
-if [ "$2" = "INSTALL" ] ; then
- (grepv ${TMPFILE} fonts.alias.orig ; \
- cat ${TMPFILE}) > fonts.alias
-elif [ "$2" = "DEINSTALL" ] ; then
- grepv ${TMPFILE} fonts.alias.orig > fonts.alias
-fi
+grepv ${TMPFILE} fonts.alias.orig > fonts.alias
+if [ ! -s fonts.alias ]; then rm -f fonts.alias; fi
rm -f fonts.alias.orig ${TMPFILE}
echo "**********************************************************"
@@ -101,4 +84,4 @@ echo "You should restart X server or do 'xset fp rehash' command"
echo "to enable this update."
echo "**********************************************************"
-exit 0;
+exit 0
diff --git a/japanese/monafonts/pkg-install b/japanese/monafonts/pkg-install
new file mode 100644
index 000000000000..9a32a9b28850
--- /dev/null
+++ b/japanese/monafonts/pkg-install
@@ -0,0 +1,86 @@
+#!/bin/sh
+
+if [ "$2" != "POST-INSTALL" ]; then
+ exit 0
+fi
+
+FONTDIR=${PKG_PREFIX}/lib/X11/fonts/local
+
+grepv() {
+ awk -v SRC=$1 'BEGIN{while (getline < SRC) {ENTRY[$0]=1}} (ENTRY[$0] != 1) {print}' $2
+}
+
+# font alias entry here!
+TMPFILE=/tmp/install-fonts-alias-$$
+cat << EOF > ${TMPFILE}
+mona6x12a -mona-gothic-medium-r-normal--12-110-75-75-p-60-iso8859-1
+mona6x12aB -mona-gothic-bold-r-normal--12-110-75-75-p-60-iso8859-1
+mona6x12aBI -mona-gothic-bold-i-normal--12-110-75-75-p-60-iso8859-1
+mona6x12aI -mona-gothic-medium-i-normal--12-110-75-75-p-60-iso8859-1
+mona6x12r -mona-gothic-medium-r-normal--12-110-75-75-p-60-jisx0201.1976-0
+mona6x12rB -mona-gothic-bold-r-normal--12-110-75-75-p-60-jisx0201.1976-0
+mona6x12rBI -mona-gothic-bold-i-normal--12-110-75-75-p-60-jisx0201.1976-0
+mona6x12rI -mona-gothic-medium-i-normal--12-110-75-75-p-60-jisx0201.1976-0
+mona7x14a -mona-gothic-medium-r-normal--14-130-75-75-p-70-iso8859-1
+mona7x14aB -mona-gothic-bold-r-normal--14-130-75-75-p-70-iso8859-1
+mona7x14aBI -mona-gothic-bold-i-normal--14-130-75-75-p-70-iso8859-1
+mona7x14aI -mona-gothic-medium-i-normal--14-130-75-75-p-70-iso8859-1
+mona7x14r -mona-gothic-medium-r-normal--14-130-75-75-p-70-jisx0201.1976-0
+mona7x14rB -mona-gothic-bold-r-normal--14-130-75-75-p-70-jisx0201.1976-0
+mona7x14rBI -mona-gothic-bold-i-normal--14-130-75-75-p-70-jisx0201.1976-0
+mona7x14rI -mona-gothic-medium-i-normal--14-130-75-75-p-70-jisx0201.1976-0
+mona8x16a -mona-gothic-medium-r-normal--16-150-75-75-p-80-iso8859-1
+mona8x16aB -mona-gothic-bold-r-normal--16-150-75-75-p-80-iso8859-1
+mona8x16aBI -mona-gothic-bold-i-normal--16-150-75-75-p-80-iso8859-1
+mona8x16aI -mona-gothic-medium-i-normal--16-150-75-75-p-80-iso8859-1
+mona8x16r -mona-gothic-medium-r-normal--16-150-75-75-p-80-jisx0201.1976-0
+mona8x16rB -mona-gothic-bold-r-normal--16-150-75-75-p-80-jisx0201.1976-0
+mona8x16rBI -mona-gothic-bold-i-normal--16-150-75-75-p-80-jisx0201.1976-0
+mona8x16rI -mona-gothic-medium-i-normal--16-150-75-75-p-80-jisx0201.1976-0
+monak12 -mona-gothic-medium-r-normal--12-110-75-75-p-120-jisx0208.1990-0
+monak12B -mona-gothic-bold-r-normal--12-110-75-75-p-120-jisx0208.1990-0
+monak12BI -mona-gothic-bold-i-normal--12-110-75-75-p-120-jisx0208.1990-0
+monak12I -mona-gothic-medium-i-normal--12-110-75-75-p-120-jisx0208.1990-0
+monak14 -mona-gothic-medium-r-normal--14-130-75-75-p-140-jisx0208.1990-0
+monak14B -mona-gothic-bold-r-normal--14-130-75-75-p-140-jisx0208.1990-0
+monak14BI -mona-gothic-bold-i-normal--14-130-75-75-p-140-jisx0208.1990-0
+monak14I -mona-gothic-medium-i-normal--14-130-75-75-p-140-jisx0208.1990-0
+monak16 -mona-gothic-medium-r-normal--16-150-75-75-p-160-jisx0208.1990-0
+monak16B -mona-gothic-bold-r-normal--16-150-75-75-p-160-jisx0208.1990-0
+monak16BI -mona-gothic-bold-i-normal--16-150-75-75-p-160-jisx0208.1990-0
+monak16I -mona-gothic-medium-i-normal--16-150-75-75-p-160-jisx0208.1990-0
+monau16 -mona-gothic-medium-r-normal--16-150-75-75-p-160-iso10646-1
+monau16B -mona-gothic-bold-r-normal--16-150-75-75-p-160-iso10646-1
+monau16BI -mona-gothic-bold-i-normal--16-150-75-75-p-160-iso10646-1
+monau16I -mona-gothic-medium-i-normal--16-150-75-75-p-160-iso10646-1
+-mona-gothic-medium-i-normal--12-110-75-75-p-120-jisx0208.1983-0 -mona-gothic-medium-i-normal--12-110-75-75-p-120-jisx0208.1990-0
+-mona-gothic-bold-r-normal--16-150-75-75-p-160-jisx0208.1983-0 -mona-gothic-bold-r-normal--16-150-75-75-p-160-jisx0208.1990-0
+-mona-gothic-bold-r-normal--14-130-75-75-p-140-jisx0208.1983-0 -mona-gothic-bold-r-normal--14-130-75-75-p-140-jisx0208.1990-0
+-mona-gothic-medium-i-normal--16-150-75-75-p-160-jisx0208.1983-0 -mona-gothic-medium-i-normal--16-150-75-75-p-160-jisx0208.1990-0
+-mona-gothic-bold-r-normal--12-110-75-75-p-120-jisx0208.1983-0 -mona-gothic-bold-r-normal--12-110-75-75-p-120-jisx0208.1990-0
+-mona-gothic-medium-i-normal--14-130-75-75-p-140-jisx0208.1983-0 -mona-gothic-medium-i-normal--14-130-75-75-p-140-jisx0208.1990-0
+-mona-gothic-bold-i-normal--14-130-75-75-p-140-jisx0208.1983-0 -mona-gothic-bold-i-normal--14-130-75-75-p-140-jisx0208.1990-0
+-mona-gothic-bold-i-normal--16-150-75-75-p-160-jisx0208.1983-0 -mona-gothic-bold-i-normal--16-150-75-75-p-160-jisx0208.1990-0
+-mona-gothic-bold-i-normal--12-110-75-75-p-120-jisx0208.1983-0 -mona-gothic-bold-i-normal--12-110-75-75-p-120-jisx0208.1990-0
+-mona-gothic-medium-r-normal--16-150-75-75-p-160-jisx0208.1983-0 -mona-gothic-medium-r-normal--16-150-75-75-p-160-jisx0208.1990-0
+-mona-gothic-medium-r-normal--14-130-75-75-p-140-jisx0208.1983-0 -mona-gothic-medium-r-normal--14-130-75-75-p-140-jisx0208.1990-0
+-mona-gothic-medium-r-normal--12-110-75-75-p-120-jisx0208.1983-0 -mona-gothic-medium-r-normal--12-110-75-75-p-120-jisx0208.1990-0
+-mona-gothic-medium-r-normal--24-230-75-75-p-240-jisx0208.1983-0 -jis-fixed-medium-r-normal--24-230-75-75-c-240-jisx0208.1983-0
+-mona-gothic-medium-r-normal--20-190-75-75-p-200-jisx0208.1983-0 -kappa-mincho-medium-r-normal--20-190-75-75-c-200-jisx0208.1990-0
+-mona-gothic-medium-r-normal--10-70-75-75-p-100-jisx0208.1983-0 -elisa-fixed-medium-r-normal--10-70-75-75-c-100-jisx0208.1983-0
+-mona-gothic-bold-r-normal--20-190-75-75-p-200-jisx0208.1983-0 -kappa-mincho-bold-r-normal--20-190-75-75-c-200-jisx0208.1990-0
+EOF
+
+echo "Updating ${FONTDIR}/fonts.alias"
+cd ${FONTDIR}
+touch fonts.alias
+cp fonts.alias fonts.alias.orig
+(grepv ${TMPFILE} fonts.alias.orig ; cat ${TMPFILE}) > fonts.alias
+rm -f fonts.alias.orig ${TMPFILE}
+
+echo "**********************************************************"
+echo "You should restart X server or do 'xset fp rehash' command"
+echo "to enable this update."
+echo "**********************************************************"
+
+exit 0
diff --git a/japanese/monafonts/pkg-plist b/japanese/monafonts/pkg-plist
index e4d24d51a84f..6e6a4fe4626a 100644
--- a/japanese/monafonts/pkg-plist
+++ b/japanese/monafonts/pkg-plist
@@ -1,4 +1,4 @@
-%%FONTSDIR%%/fonts.alias
+@mode 444
%%FONTSDIR%%/mona6x12a.pcf.gz
%%FONTSDIR%%/mona6x12aB.pcf.gz
%%FONTSDIR%%/mona6x12aBI.pcf.gz
@@ -47,7 +47,7 @@
%%FONTSDIR%%/monau16B.pcf.gz
%%FONTSDIR%%/monau16BI.pcf.gz
%%FONTSDIR%%/monau16I.pcf.gz
-@exec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir
-@unexec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir
+@mode
+@exec cd %D/%%FONTSDIR%% ; mkfontdir
+@unexec cd %D/%%FONTSDIR%% ; mkfontdir
@unexec if [ `wc -c %D/%%FONTSDIR%%/fonts.dir | awk '{print $1}'` = 2 ]; then rm -f %D/%%FONTSDIR%%/fonts.dir; fi
-@unexec if [ ! -s %D/%%FONTSDIR%%/fonts.alias ]; then rm -f %D/%%FONTSDIR%%/fonts.alias; fi