diff options
author | nobutaka <nobutaka@FreeBSD.org> | 2018-04-08 21:13:27 +0800 |
---|---|---|
committer | nobutaka <nobutaka@FreeBSD.org> | 2018-04-08 21:13:27 +0800 |
commit | df8958314b03c96905ceac78024f87be8c23e562 (patch) | |
tree | bdbbc3c9667f72fce705ac5dead90bc2c728fcb7 /japanese | |
parent | 3b16507a512b90b2e9daa27b735ae0092bc3b567 (diff) | |
download | freebsd-ports-gnome-df8958314b03c96905ceac78024f87be8c23e562.tar.gz freebsd-ports-gnome-df8958314b03c96905ceac78024f87be8c23e562.tar.zst freebsd-ports-gnome-df8958314b03c96905ceac78024f87be8c23e562.zip |
- Install font files to ${FONTSDIR} instead of ${DATADIR}.
- Stop to make symbolic links from the font files to
${PREFIX}/share/fonts/misc/, which is found in the default
font path, because recent libXfont does not follow symbolic
links.
- Add pkg-message.in to show additional font path settings.
- Remove unnecessary pkg-install.in.
- Bump PORTREVISION.
PR: 225125 [1], 226515 [2]
Submitted by: WATANABE Kazuhiro <CQG00620@nifty.ne.jp> [2]
Reported by: Shigeharu TAKENO <shige@iee.niit.ac.jp> [1]
Approved by: maintainer timeout (two weeks)
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/font-elisa8/Makefile | 15 | ||||
-rw-r--r-- | japanese/font-elisa8/files/Makefile.in | 6 | ||||
-rw-r--r-- | japanese/font-elisa8/files/pkg-install.in | 23 | ||||
-rw-r--r-- | japanese/font-elisa8/files/pkg-message.in | 15 | ||||
-rw-r--r-- | japanese/font-elisa8/pkg-plist | 5 |
5 files changed, 23 insertions, 41 deletions
diff --git a/japanese/font-elisa8/Makefile b/japanese/font-elisa8/Makefile index cca324b3e215..f85c6cdba1b2 100644 --- a/japanese/font-elisa8/Makefile +++ b/japanese/font-elisa8/Makefile @@ -3,7 +3,7 @@ PORTNAME= elisa8 PORTVERSION= 1.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= japanese x11-fonts MASTER_SITES= http://www.bsdbbq.org/~toshi/distfiles/ PKGNAMEPREFIX= ja-font- @@ -15,16 +15,12 @@ COMMENT= 8-dot Kanji font 'elisa' BUILD_DEPENDS= bdftopcf:x11-fonts/bdftopcf USES= fonts -FONTNAME= misc NO_ARCH= yes NO_WRKSUBDIR= yes -SUB_FILES= Makefile pkg-install +SUB_FILES= Makefile pkg-message MAKEFILE= ${WRKDIR}/Makefile SUB_LIST= BDFTOPCF_CMD="${LOCALBASE}/bin/bdftopcf" \ - GZIP_CMD="${GZIP_CMD}" \ - FONTSALIAS="${DATADIR}/fonts.alias" -PKGINSTALL= ${WRKDIR}/pkg-install -PKGDEINSTALL= ${WRKDIR}/pkg-install + GZIP_CMD="${GZIP_CMD}" PORTDOCS= elisa100.doc elisat10.doc elisat10.html OPTIONS_DEFINE= DOCS @@ -32,10 +28,7 @@ OPTIONS_DEFINE= DOCS pre-build: apply-slist post-install: - @${MKDIR} ${STAGEDIR}${FONTSDIR} - cd ${STAGEDIR}${FONTSDIR} && \ - ${LN} -s ../../../${DATADIR_REL}/*.pcf.gz . - ${INSTALL_DATA} ${FILESDIR}/fonts.alias ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${FILESDIR}/fonts.alias ${STAGEDIR}${FONTSDIR} post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} diff --git a/japanese/font-elisa8/files/Makefile.in b/japanese/font-elisa8/files/Makefile.in index 9c2fb8b4cc2a..c0d978e4d907 100644 --- a/japanese/font-elisa8/files/Makefile.in +++ b/japanese/font-elisa8/files/Makefile.in @@ -13,11 +13,11 @@ all: ${F}.pcf.gz .endfor .for F in ${SRCS:R} -${DESTDIR}%%DATADIR%%/${F}.pcf.gz: ${F}.pcf.gz - mkdir -p ${DESTDIR}%%DATADIR%% +${DESTDIR}%%FONTSDIR%%/${F}.pcf.gz: ${F}.pcf.gz + mkdir -p ${DESTDIR}%%FONTSDIR%% ${BSD_INSTALL_DATA} ${.ALLSRC} ${.TARGET} -install: ${DESTDIR}%%DATADIR%%/${F}.pcf.gz +install: ${DESTDIR}%%FONTSDIR%%/${F}.pcf.gz .endfor all install: diff --git a/japanese/font-elisa8/files/pkg-install.in b/japanese/font-elisa8/files/pkg-install.in deleted file mode 100644 index 742953077013..000000000000 --- a/japanese/font-elisa8/files/pkg-install.in +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -grepv() { - awk -v SRC=$1 'BEGIN{while (getline < SRC) {ENTRY[$0]=1}} (ENTRY[$0] != 1) {print}' $2 -} - -case $2 in -POST-INSTALL) - cd %%FONTSDIR%% - touch fonts.alias - cp fonts.alias fonts.alias.orig - (grepv %%FONTSALIAS%% fonts.alias.orig; cat %%FONTSALIAS%%) \ - > fonts.alias - rm -f fonts.alias.orig -;; -DEINSTALL) - cd %%FONTSDIR%% - touch fonts.alias - cp fonts.alias fonts.alias.orig - grepv %%FONTSALIAS%% fonts.alias.orig > fonts.alias - rm -f fonts.alias.orig -;; -esac diff --git a/japanese/font-elisa8/files/pkg-message.in b/japanese/font-elisa8/files/pkg-message.in new file mode 100644 index 000000000000..059c75d35d44 --- /dev/null +++ b/japanese/font-elisa8/files/pkg-message.in @@ -0,0 +1,15 @@ +******************************************************************* +You can start using the font(s) by following these instructions: + +Either 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. +******************************************************************* diff --git a/japanese/font-elisa8/pkg-plist b/japanese/font-elisa8/pkg-plist index 0cdca3e06f7d..06f76f88d591 100644 --- a/japanese/font-elisa8/pkg-plist +++ b/japanese/font-elisa8/pkg-plist @@ -1,7 +1,4 @@ -%%DATADIR%%/elisat10.pcf.gz -%%DATADIR%%/jpnhn4-jis.pcf.gz -%%DATADIR%%/jpnhn4-iso.pcf.gz -%%DATADIR%%/fonts.alias +%%FONTSDIR%%/fonts.alias %%FONTSDIR%%/elisat10.pcf.gz %%FONTSDIR%%/jpnhn4-jis.pcf.gz %%FONTSDIR%%/jpnhn4-iso.pcf.gz |