aboutsummaryrefslogtreecommitdiff
path: root/japanese/alias-fonts
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2015-08-19 19:47:17 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2015-08-19 19:47:17 +0000
commit143758f039d54fc9fdf2751675377fd633900916 (patch)
tree154d225c983771c4187b1dcc671bb2054e8e0cee /japanese/alias-fonts
parent0dadce5e2a34e55b277347aaa30c574d124b5a80 (diff)
downloadports-143758f039d54fc9fdf2751675377fd633900916.tar.gz
ports-143758f039d54fc9fdf2751675377fd633900916.zip
japanese/alias-fonts: convert to USES=font
- remove pkg-{install,deinstall} scripts - add pkg-message for how to setup fontpath - bump portrevision PR: 201629 Submitted by: CQG00620@nifty.ne.jp (maintainer)
Notes
Notes: svn path=/head/; revision=394809
Diffstat (limited to 'japanese/alias-fonts')
-rw-r--r--japanese/alias-fonts/Makefile11
-rw-r--r--japanese/alias-fonts/files/fonts.alias (renamed from japanese/alias-fonts/pkg-install)31
-rw-r--r--japanese/alias-fonts/files/pkg-message.in30
-rw-r--r--japanese/alias-fonts/pkg-deinstall28
4 files changed, 39 insertions, 61 deletions
diff --git a/japanese/alias-fonts/Makefile b/japanese/alias-fonts/Makefile
index 3c71aae822c2..6868544b04c4 100644
--- a/japanese/alias-fonts/Makefile
+++ b/japanese/alias-fonts/Makefile
@@ -3,7 +3,7 @@
PORTNAME= alias-fonts
PORTVERSION= 1.0
-PORTREVISION= 9
+PORTREVISION= 10
CATEGORIES= japanese x11-fonts
MASTER_SITES= # empty
DISTFILES= # empty
@@ -20,6 +20,13 @@ RUN_DEPENDS= ja-elisa8x8>0:${PORTSDIR}/japanese/elisa8x8 \
ja-font-jisx0213>0:${PORTSDIR}/japanese/font-jisx0213
NO_BUILD= yes
-NO_INSTALL= yes
+
+USES= fonts
+PLIST_FILES= %%FONTSDIR%%/fonts.alias
+SUB_FILES= pkg-message
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${FONTSDIR}
+ ${INSTALL_DATA} ${FILESDIR}/fonts.alias ${STAGEDIR}${FONTSDIR}
.include <bsd.port.mk>
diff --git a/japanese/alias-fonts/pkg-install b/japanese/alias-fonts/files/fonts.alias
index e6428e9c9b4a..0606cec3b122 100644
--- a/japanese/alias-fonts/pkg-install
+++ b/japanese/alias-fonts/files/fonts.alias
@@ -1,31 +1,3 @@
-#!/bin/sh
-# $FreeBSD$
-
-if [ $2 != "POST-INSTALL" ]; then
- exit 0
-fi
-
-dir="${PKG_PREFIX}/share/fonts/local";
-to="$dir/fonts.alias";
-from="$to.orig";
-
-if ! mv $to $from; then
- echo "Couldn't rename $to."
- exit 1
-fi
-
-IFS="
-"
-
-while read line; do
- trimmed=${line# *}
- case $trimmed in
- -alias-*) ;;
- *) echo $line;;
- esac
-done < $from > $to
-
-cat <<EOF >> $to
-alias-fixed-medium-r-normal--24-234-75-75-c-120-iso8859-1 -sony-fixed-medium-r-normal--24-230-75-75-c-120-iso8859-1
-alias-fixed-medium-r-normal--20-190-75-75-c-200-iso8859-1 -kappa-fixed-medium-r-normal--20-190-75-75-c-100-iso8859-1
-alias-fixed-medium-i-normal--20-190-75-75-c-200-iso8859-1 -kappa-fixed-medium-i-normal--20-190-75-75-c-100-iso8859-1
@@ -140,6 +112,3 @@ cat <<EOF >> $to
-alias-fixed-bold-i-normal--16-150-75-75-c-160-jisx0213.2000-1 -misc-fixed-bold-i-normal--16-150-75-75-c-160-jisx0213.2000-1
-alias-mincho-bold-r-normal--20-190-75-75-c-200-jisx0213.2000-1 -kappa-mincho-bold-r-normal--20-190-75-75-c-200-jisx0213.2000-1
-alias-mincho-bold-i-normal--20-190-75-75-c-200-jisx0213.2000-1 -kappa-mincho-bold-i-normal--20-190-75-75-c-200-jisx0213.2000-1
-EOF
-
-rm -f $from
diff --git a/japanese/alias-fonts/files/pkg-message.in b/japanese/alias-fonts/files/pkg-message.in
new file mode 100644
index 000000000000..07b19aac5e45
--- /dev/null
+++ b/japanese/alias-fonts/files/pkg-message.in
@@ -0,0 +1,30 @@
+********************************************************************
+You can start using the fonts by the following instructions. It is
+required for an application which uses XLFD.
+
+Eiter type the following in an X terminal:
+
+ xset fp+ %%FONTSDIR%%
+ xset fp rehash
+
+Or, more permanently, add the following line to the "Files" section
+of your X.Org configuration file (typically /etc/X11/xorg.conf):
+
+ FontPath "%%FONTSDIR%%/"
+
+then restart X. After that, run the following command to check your
+Font Path setting:
+
+ xset q
+
+whether the following directories are listed:
+
+ %%PREFIX%%/share/fonts/alias-fonts/ (This port)
+ %%PREFIX%%/share/fonts/elisa8x8/ (8 dot fonts)
+ %%PREFIX%%/share/fonts/naga10/ (10 dot fonts)
+ %%PREFIX%%/share/fonts/shinonome/ (12, 14 and 16 dots)
+ %%PREFIX%%/share/fonts/kanji/ (18 and 24 dot fonts)
+ %%PREFIX%%/share/fonts/k20fonts/ (20 dot fonts)
+ %%PREFIX%%/share/fonts/jisx0213/ (12, 14, 16 and 24 dots
+ JISX0213 fonts)
+********************************************************************
diff --git a/japanese/alias-fonts/pkg-deinstall b/japanese/alias-fonts/pkg-deinstall
deleted file mode 100644
index 713caa70a239..000000000000
--- a/japanese/alias-fonts/pkg-deinstall
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-# $FreeBSD$
-
-if [ $2 != "DEINSTALL" ]; then
- exit 0
-fi
-
-dir="${PKG_PREFIX}/lib/X11/fonts/local";
-to="$dir/fonts.alias";
-from="$to.orig";
-
-if ! mv $to $from; then
- echo "Couldn't rename $to."
- exit 1
-fi
-
-IFS="
-"
-
-while read line; do
- trimmed=${line# *}
- case $trimmed in
- -alias-*) ;;
- *) echo $line;;
- esac
-done < $from > $to
-
-rm -f $from