diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2014-02-15 13:04:30 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2014-02-15 13:04:30 +0000 |
commit | 24054bf9f85fd6d277511c5bf4cafadf655bc75b (patch) | |
tree | 1642765f88caccc7b156f7382e3704efd49ddf02 /japanese/kanji26 | |
parent | 3b91c295e91d72e3bb077d6605524bc177e09df9 (diff) | |
download | ports-24054bf9f85fd6d277511c5bf4cafadf655bc75b.tar.gz ports-24054bf9f85fd6d277511c5bf4cafadf655bc75b.zip |
Notes
Diffstat (limited to 'japanese/kanji26')
-rw-r--r-- | japanese/kanji26/Makefile | 1 | ||||
-rw-r--r-- | japanese/kanji26/files/DEINSTALL.tmpl | 36 | ||||
-rw-r--r-- | japanese/kanji26/files/INSTALL.tmpl | 34 | ||||
-rw-r--r-- | japanese/kanji26/files/Makefile.in | 4 | ||||
-rw-r--r-- | japanese/kanji26/pkg-plist | 1 | ||||
-rw-r--r-- | japanese/kanji26/pkg-req | 64 |
6 files changed, 72 insertions, 68 deletions
diff --git a/japanese/kanji26/Makefile b/japanese/kanji26/Makefile index ccd313857185..367c6990c661 100644 --- a/japanese/kanji26/Makefile +++ b/japanese/kanji26/Makefile @@ -13,5 +13,4 @@ README_FILE?= 793.gz RESIZESED_FILE?= 26to24.sed RESIZED_ALIAS_FILE?= kanji24.alias -NO_STAGE= yes .include "${MASTERDIR}/Makefile" diff --git a/japanese/kanji26/files/DEINSTALL.tmpl b/japanese/kanji26/files/DEINSTALL.tmpl index dac57525eaef..e17f4cb746f6 100644 --- a/japanese/kanji26/files/DEINSTALL.tmpl +++ b/japanese/kanji26/files/DEINSTALL.tmpl @@ -1,7 +1,41 @@ #!/bin/sh +grepv() { + awk -v SRC=$1 'BEGIN{while (getline < SRC) {ENTRY[$0]=1}} (ENTRY[$0] != 1) {print}' $2 +} + if [ "x$2" = "xPOST-DEINSTALL" ]; then + FONTDIR=${PKG_PREFIX}/%%FONTSDIR%% cd ${PKG_PREFIX}/%%FONTSDIR%%; %%LOCALBASE%%/bin/mkfontdir + + # font alias entry here! + TMPFILE=/tmp/install-fonts-alias-$$ + cat <<- EOF > ${TMPFILE} + kanji26 -jis-mincho-medium-r-normal--26-250-75-75-c-260-jisx0208.1983-0 + kanji26b -jis-mincho-bold-r-normal--26-250-75-75-c-260-jisx0208.1983-0 + kanji26i -jis-mincho-medium-i-normal--26-250-75-75-c-260-jisx0208.1983-0 + kanji26bi -jis-mincho-bold-i-normal--26-250-75-75-c-260-jisx0208.1983-0 + -jis-fixed-medium-r-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-medium-r-normal--26-190-100-100-c-260-jisx0208.1983-0 + -jis-fixed-bold-r-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-bold-r-normal--26-190-100-100-c-260-jisx0208.1983-0 + -jis-fixed-medium-i-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-medium-i-normal--26-190-100-100-c-260-jisx0208.1983-0 + -jis-fixed-bold-i-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-bold-i-normal--26-190-100-100-c-260-jisx0208.1983-0 + -jis-fixed-medium-r-normal--26-250-75-75-c-260-jisx0208.1983-0 -jis-mincho-medium-r-normal--26-250-75-75-c-260-jisx0208.1983-0 + -jis-fixed-bold-r-normal--26-250-75-75-c-260-jisx0208.1983-0 -jis-mincho-bold-r-normal--26-250-75-75-c-260-jisx0208.1983-0 + -jis-fixed-medium-i-normal--26-250-75-75-c-260-jisx0208.1983-0 -jis-mincho-medium-i-normal--26-250-75-75-c-260-jisx0208.1983-0 + -jis-fixed-bold-i-normal--26-250-75-75-c-260-jisx0208.1983-0 -jis-mincho-bold-i-normal--26-250-75-75-c-260-jisx0208.1983-0 + -jis-mincho-medium-r-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-medium-r-normal--26-250-75-75-c-260-jisx0208.1983-0 + -jis-mincho-bold-r-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-bold-r-normal--26-250-75-75-c-260-jisx0208.1983-0 + -jis-mincho-medium-i-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-medium-i-normal--26-250-75-75-c-260-jisx0208.1983-0 + -jis-mincho-bold-i-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-bold-i-normal--26-250-75-75-c-260-jisx0208.1983-0 + EOF + echo "Updating ${FONTDIR}/fonts.alias" + cd ${FONTDIR} + touch fonts.alias + cp fonts.alias fonts.alias.orig + grepv ${TMPFILE} fonts.alias.orig > fonts.alias + if [ ! -s fonts.alias ]; then rm -f fonts.alias; fi + rm -f fonts.alias.orig ${TMPFILE} + %%LOCALBASE%%/bin/xset fp rehash || ( echo "**********************************************************" @@ -13,3 +47,5 @@ if [ "x$2" = "xPOST-DEINSTALL" ]; then rm -f ${PKG_PREFIX}/%%FONTSDIR%%/fonts.dir fi fi + + diff --git a/japanese/kanji26/files/INSTALL.tmpl b/japanese/kanji26/files/INSTALL.tmpl index 6fa812b9fa02..de3c357b99e0 100644 --- a/japanese/kanji26/files/INSTALL.tmpl +++ b/japanese/kanji26/files/INSTALL.tmpl @@ -1,7 +1,40 @@ #!/bin/sh +grepv() { + awk -v SRC=$1 'BEGIN{while (getline < SRC) {ENTRY[$0]=1}} (ENTRY[$0] != 1) {print}' $2 +} + if [ "x$2" = "xPOST-INSTALL" ]; then + FONTDIR=${PKG_PREFIX}/%%FONTSDIR%% cd ${PKG_PREFIX}/%%FONTSDIR%%; %%LOCALBASE%%/bin/mkfontdir + + # font alias entry here! + TMPFILE=/tmp/install-fonts-alias-$$ + cat <<- EOF > ${TMPFILE} + kanji26 -jis-mincho-medium-r-normal--26-250-75-75-c-260-jisx0208.1983-0 + kanji26b -jis-mincho-bold-r-normal--26-250-75-75-c-260-jisx0208.1983-0 + kanji26i -jis-mincho-medium-i-normal--26-250-75-75-c-260-jisx0208.1983-0 + kanji26bi -jis-mincho-bold-i-normal--26-250-75-75-c-260-jisx0208.1983-0 + -jis-fixed-medium-r-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-medium-r-normal--26-190-100-100-c-260-jisx0208.1983-0 + -jis-fixed-bold-r-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-bold-r-normal--26-190-100-100-c-260-jisx0208.1983-0 + -jis-fixed-medium-i-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-medium-i-normal--26-190-100-100-c-260-jisx0208.1983-0 + -jis-fixed-bold-i-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-bold-i-normal--26-190-100-100-c-260-jisx0208.1983-0 + -jis-fixed-medium-r-normal--26-250-75-75-c-260-jisx0208.1983-0 -jis-mincho-medium-r-normal--26-250-75-75-c-260-jisx0208.1983-0 + -jis-fixed-bold-r-normal--26-250-75-75-c-260-jisx0208.1983-0 -jis-mincho-bold-r-normal--26-250-75-75-c-260-jisx0208.1983-0 + -jis-fixed-medium-i-normal--26-250-75-75-c-260-jisx0208.1983-0 -jis-mincho-medium-i-normal--26-250-75-75-c-260-jisx0208.1983-0 + -jis-fixed-bold-i-normal--26-250-75-75-c-260-jisx0208.1983-0 -jis-mincho-bold-i-normal--26-250-75-75-c-260-jisx0208.1983-0 + -jis-mincho-medium-r-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-medium-r-normal--26-250-75-75-c-260-jisx0208.1983-0 + -jis-mincho-bold-r-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-bold-r-normal--26-250-75-75-c-260-jisx0208.1983-0 + -jis-mincho-medium-i-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-medium-i-normal--26-250-75-75-c-260-jisx0208.1983-0 + -jis-mincho-bold-i-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-bold-i-normal--26-250-75-75-c-260-jisx0208.1983-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} + %%LOCALBASE%%/bin/xset fp rehash || ( echo "**********************************************************" @@ -10,3 +43,4 @@ if [ "x$2" = "xPOST-INSTALL" ]; then echo "**********************************************************" ) fi + diff --git a/japanese/kanji26/files/Makefile.in b/japanese/kanji26/files/Makefile.in index 163b0d68d238..75258bc9b461 100644 --- a/japanese/kanji26/files/Makefile.in +++ b/japanese/kanji26/files/Makefile.in @@ -27,8 +27,8 @@ ${PCF_ALL}: ${.TARGET:S/.pcf.gz/.bdf/} bdftopcf $> | ${GZIP_CMD} -c > $@ install: - mkdir -p ${PREFIX}/${FONTSDIR} - ${BSD_INSTALL_DATA} ${PCF_ALL} ${PREFIX}/${FONTSDIR} + mkdir -p ${DESTDIR}${PREFIX}/${FONTSDIR} + ${BSD_INSTALL_DATA} ${PCF_ALL} ${DESTDIR}${PREFIX}/${FONTSDIR} clean:: rm ${MADE_BOLD} ${MADE_ITALIC} ${PCF_ALL} diff --git a/japanese/kanji26/pkg-plist b/japanese/kanji26/pkg-plist index 4b143799589f..8f532fc1f104 100644 --- a/japanese/kanji26/pkg-plist +++ b/japanese/kanji26/pkg-plist @@ -7,4 +7,3 @@ %%PORTDOCS%%share/doc/kanji26/kanji24.alias %%PORTDOCS%%share/doc/kanji26/kanji26.alias %%PORTDOCS%%@dirrm share/doc/kanji26 -@unexec if [ ! -s %D/%%FONTSDIR%%/fonts.alias ]; then rm -f %D/%%FONTSDIR%%/fonts.alias; fi diff --git a/japanese/kanji26/pkg-req b/japanese/kanji26/pkg-req deleted file mode 100644 index e1fec9976fed..000000000000 --- a/japanese/kanji26/pkg-req +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/sh - -if [ "x$1" = "x" ]; then - exit 1; -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 - -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} -kanji26 -jis-mincho-medium-r-normal--26-250-75-75-c-260-jisx0208.1983-0 -kanji26b -jis-mincho-bold-r-normal--26-250-75-75-c-260-jisx0208.1983-0 -kanji26i -jis-mincho-medium-i-normal--26-250-75-75-c-260-jisx0208.1983-0 -kanji26bi -jis-mincho-bold-i-normal--26-250-75-75-c-260-jisx0208.1983-0 --jis-fixed-medium-r-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-medium-r-normal--26-190-100-100-c-260-jisx0208.1983-0 --jis-fixed-bold-r-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-bold-r-normal--26-190-100-100-c-260-jisx0208.1983-0 --jis-fixed-medium-i-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-medium-i-normal--26-190-100-100-c-260-jisx0208.1983-0 --jis-fixed-bold-i-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-bold-i-normal--26-190-100-100-c-260-jisx0208.1983-0 --jis-fixed-medium-r-normal--26-250-75-75-c-260-jisx0208.1983-0 -jis-mincho-medium-r-normal--26-250-75-75-c-260-jisx0208.1983-0 --jis-fixed-bold-r-normal--26-250-75-75-c-260-jisx0208.1983-0 -jis-mincho-bold-r-normal--26-250-75-75-c-260-jisx0208.1983-0 --jis-fixed-medium-i-normal--26-250-75-75-c-260-jisx0208.1983-0 -jis-mincho-medium-i-normal--26-250-75-75-c-260-jisx0208.1983-0 --jis-fixed-bold-i-normal--26-250-75-75-c-260-jisx0208.1983-0 -jis-mincho-bold-i-normal--26-250-75-75-c-260-jisx0208.1983-0 --jis-mincho-medium-r-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-medium-r-normal--26-250-75-75-c-260-jisx0208.1983-0 --jis-mincho-bold-r-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-bold-r-normal--26-250-75-75-c-260-jisx0208.1983-0 --jis-mincho-medium-i-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-medium-i-normal--26-250-75-75-c-260-jisx0208.1983-0 --jis-mincho-bold-i-normal--26-190-100-100-c-260-jisx0208.1983-0 -jis-mincho-bold-i-normal--26-250-75-75-c-260-jisx0208.1983-0 -EOF - -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 -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; |