From 9d306807166d8880a28481e643d5d1f714d64f76 Mon Sep 17 00:00:00 2001 From: edwin Date: Sat, 1 Apr 2006 12:44:58 +0000 Subject: Use SUB_FILES --- chinese/bg5ps/Makefile | 2 ++ chinese/bg5ps/files/pkg-message.in | 9 +++++++++ chinese/bg5ps/pkg-message | 9 --------- chinese/chinput3/Makefile | 3 +-- chinese/chinput3/files/pkg-message.in | 10 ++++++++++ chinese/chinput3/pkg-message | 10 ---------- chinese/mplayer-fonts/Makefile | 2 ++ chinese/mplayer-fonts/files/pkg-message.in | 8 ++++++++ chinese/mplayer-fonts/pkg-message | 8 -------- chinese/pyDict/Makefile | 2 ++ chinese/pyDict/files/pkg-message.in | 8 ++++++++ chinese/pyDict/pkg-message | 8 -------- chinese/xsim/Makefile | 7 ++++--- chinese/xsim/files/pkg-message.in | 16 ++++++++++++++++ chinese/xsim/files/xsim.sh | 13 ------------- chinese/xsim/files/xsim.sh.in | 13 +++++++++++++ chinese/xsim/pkg-message | 16 ---------------- 17 files changed, 75 insertions(+), 69 deletions(-) create mode 100644 chinese/bg5ps/files/pkg-message.in delete mode 100644 chinese/bg5ps/pkg-message create mode 100644 chinese/chinput3/files/pkg-message.in delete mode 100644 chinese/chinput3/pkg-message create mode 100644 chinese/mplayer-fonts/files/pkg-message.in delete mode 100644 chinese/mplayer-fonts/pkg-message create mode 100644 chinese/pyDict/files/pkg-message.in delete mode 100644 chinese/pyDict/pkg-message create mode 100644 chinese/xsim/files/pkg-message.in delete mode 100644 chinese/xsim/files/xsim.sh create mode 100644 chinese/xsim/files/xsim.sh.in delete mode 100644 chinese/xsim/pkg-message (limited to 'chinese') diff --git a/chinese/bg5ps/Makefile b/chinese/bg5ps/Makefile index 1d6b946ad15e..273895c13950 100644 --- a/chinese/bg5ps/Makefile +++ b/chinese/bg5ps/Makefile @@ -16,6 +16,8 @@ COMMENT= Convert Chinese-Big5/GB encoded files to Postscript, using TTF fonts USE_FREETYPE= yes USE_PYTHON= yes +PKGMESSAGE= ${WRKDIR}/pkg-message +SUB_FILES= pkg-message do-install: @${MKDIR} ${PREFIX}/share/doc/bg5ps diff --git a/chinese/bg5ps/files/pkg-message.in b/chinese/bg5ps/files/pkg-message.in new file mode 100644 index 000000000000..12ff7ba2c1f8 --- /dev/null +++ b/chinese/bg5ps/files/pkg-message.in @@ -0,0 +1,9 @@ +-------------------------------------------------------------------- +Please check the following files: + +%%PREFIX%%/etc/bg5ps.conf.sample +%%PREFIX%%/etc/gb2312-bg5ps.conf.sample + +Copy one of them to ~/.bg5ps.conf(depend on which encoding you use), +then modify it to suit your needs. Type `bg5ps -h` for help. +-------------------------------------------------------------------- diff --git a/chinese/bg5ps/pkg-message b/chinese/bg5ps/pkg-message deleted file mode 100644 index 69734efe44a5..000000000000 --- a/chinese/bg5ps/pkg-message +++ /dev/null @@ -1,9 +0,0 @@ --------------------------------------------------------------------- -Please check the following files: - -/usr/local/etc/bg5ps.conf.sample -/usr/local/etc/gb2312-bg5ps.conf.sample - -Copy one of them to ~/.bg5ps.conf(depend on which encoding you use), -then modify it to suit your needs. Type `bg5ps -h` for help. --------------------------------------------------------------------- diff --git a/chinese/chinput3/Makefile b/chinese/chinput3/Makefile index 5fccc74050d7..e6596411d2c9 100644 --- a/chinese/chinput3/Makefile +++ b/chinese/chinput3/Makefile @@ -20,8 +20,8 @@ USE_GETTEXT= yes USE_GNOME= gtk12 imlib USE_REINPLACE= yes -MSG_FILE= ${.CURDIR}/pkg-message PKGMESSAGE= ${WRKDIR}/pkg-message +SUB_FILES= pkg-message .include @@ -40,7 +40,6 @@ pre-build: -e 's|-lc_r|${PTHREAD_CFLAGS} ${PTHREAD_LIBS}|' post-install: - @${SED} -e 's,%%X11BASE%%,${X11BASE},g' ${MSG_FILE} > ${PKGMESSAGE} @${CAT} ${PKGMESSAGE} .include diff --git a/chinese/chinput3/files/pkg-message.in b/chinese/chinput3/files/pkg-message.in new file mode 100644 index 000000000000..acc0298d882f --- /dev/null +++ b/chinese/chinput3/files/pkg-message.in @@ -0,0 +1,10 @@ +------------------------------------------------------------------------------- +Please check the following files: + %%X11BASE%%/lib/X11/locale/zh_CN/XI18N_OBJS +If not exist, copy %%X11BASE%%/lib/X11/locale/zh/XI18N_OBJS to it. + +Remember to set environment varible XMODIFIERS: + csh/tcsh: setenv XMODIFIERS @im=Chinput + sh/bash: export XMODIFIERS='@im=Chinput' +and set LANG, LC_CTYPE to zh_CN.EUC. +------------------------------------------------------------------------------- diff --git a/chinese/chinput3/pkg-message b/chinese/chinput3/pkg-message deleted file mode 100644 index acc0298d882f..000000000000 --- a/chinese/chinput3/pkg-message +++ /dev/null @@ -1,10 +0,0 @@ -------------------------------------------------------------------------------- -Please check the following files: - %%X11BASE%%/lib/X11/locale/zh_CN/XI18N_OBJS -If not exist, copy %%X11BASE%%/lib/X11/locale/zh/XI18N_OBJS to it. - -Remember to set environment varible XMODIFIERS: - csh/tcsh: setenv XMODIFIERS @im=Chinput - sh/bash: export XMODIFIERS='@im=Chinput' -and set LANG, LC_CTYPE to zh_CN.EUC. -------------------------------------------------------------------------------- diff --git a/chinese/mplayer-fonts/Makefile b/chinese/mplayer-fonts/Makefile index 3a542cbcba41..ea65f6cba3e6 100644 --- a/chinese/mplayer-fonts/Makefile +++ b/chinese/mplayer-fonts/Makefile @@ -23,6 +23,8 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libiconv.so.3:${PORTSDIR}/converters/libiconv \ USE_BZIP2= yes WRKSRC= ${WRKDIR}/${SUBFONT_DISTNAME} PLIST_SUB+= MF=${MPLAYER_FONTDIR:S,${LOCALBASE}/,,g} +PKGMESSAGE= ${WRKDIR}/pkg-message +SUB_FILES= pkg-message SUBFONT_DISTNAME= subfont-c-0.90pre6 MPLAYER_FONTDIR= ${LOCALBASE}/share/mplayer/fonts/chinese diff --git a/chinese/mplayer-fonts/files/pkg-message.in b/chinese/mplayer-fonts/files/pkg-message.in new file mode 100644 index 000000000000..1d74c7c7d256 --- /dev/null +++ b/chinese/mplayer-fonts/files/pkg-message.in @@ -0,0 +1,8 @@ +=========================================================================== + To use these fonts, add the following line into $HOME/.mplayer/config + + unicode=1 + + and make a symbolic link of %%PREFIX%%/share/mplayer/fonts/chinese/${FONT} + as $HOME/.mplayer/font +=========================================================================== diff --git a/chinese/mplayer-fonts/pkg-message b/chinese/mplayer-fonts/pkg-message deleted file mode 100644 index b641bd5b2842..000000000000 --- a/chinese/mplayer-fonts/pkg-message +++ /dev/null @@ -1,8 +0,0 @@ -=========================================================================== - To use these fonts, add the following line into $HOME/.mplayer/config - - unicode=1 - - and make a symbolic link of $PREFIX/share/mplayer/fonts/chinese/${FONT} - as $HOME/.mplayer/font -=========================================================================== diff --git a/chinese/pyDict/Makefile b/chinese/pyDict/Makefile index 14b224d2483f..efda8d3fd13f 100644 --- a/chinese/pyDict/Makefile +++ b/chinese/pyDict/Makefile @@ -25,6 +25,8 @@ SHAREMODE= 644 DICTDIR= ${PREFIX}/lib/X11/pyDict DOCDIR= ${PREFIX}/share/doc/pyDict USE_REINPLACE= yes +PKGMESSAGE= ${WRKDIR}/pkg-message +USE_SUBFILES= pkg-message .include diff --git a/chinese/pyDict/files/pkg-message.in b/chinese/pyDict/files/pkg-message.in new file mode 100644 index 000000000000..9f572dd8cba5 --- /dev/null +++ b/chinese/pyDict/files/pkg-message.in @@ -0,0 +1,8 @@ + +--------------------------------------------------------- +If you experience problems displaying Chinese, first make +sure that you have correct locale settings, then copy +%%PREFIX%%/lib/X11/pyDict/gtkrc.zh_TW.big5.sample to +~/.gtkrc.zh_TW.big5 and try again. +--------------------------------------------------------- + diff --git a/chinese/pyDict/pkg-message b/chinese/pyDict/pkg-message deleted file mode 100644 index 1f735c1dc1bb..000000000000 --- a/chinese/pyDict/pkg-message +++ /dev/null @@ -1,8 +0,0 @@ - ---------------------------------------------------------- -If you experience problems displaying Chinese, first make -sure that you have correct locale settings, then copy -/usr/X11R6/lib/X11/pyDict/gtkrc.zh_TW.big5.sample to -~/.gtkrc.zh_TW.big5 and try again. ---------------------------------------------------------- - diff --git a/chinese/xsim/Makefile b/chinese/xsim/Makefile index 087d2d03556b..c2bcfa8f131d 100644 --- a/chinese/xsim/Makefile +++ b/chinese/xsim/Makefile @@ -22,6 +22,8 @@ USE_REINPLACE= yes USE_XLIB= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-cn-locale=eucCN +PKGMESSAGE= ${WRKDIR}/pkg-message +SUB_FILES= pkg-message xsim.sh .include @@ -39,10 +41,9 @@ post-patch: @${REINPLACE_CMD} "s/-O2/${CFLAGS}/g" ${WRKSRC}/configure post-install: - @${SED} "s|%%PREFIX%%|${PREFIX}|g" <${FILESDIR}/xsim.sh \ - >${PREFIX}/bin/xsim && ${CHMOD} 555 ${PREFIX}/bin/xsim + ${INSTALL_DATA} ${WRKDIR}/xsim.sh ${PREFIX}/bin/xsim @${MKDIR} ${DATADIR}/dat @${CP} -R ${WRKDIR}/usr/local/xsim/dat/* ${DATADIR}/dat - @${SED} -e 's,%%X11BASE%%,${X11BASE},g' < ${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} .include diff --git a/chinese/xsim/files/pkg-message.in b/chinese/xsim/files/pkg-message.in new file mode 100644 index 000000000000..2962664fe98c --- /dev/null +++ b/chinese/xsim/files/pkg-message.in @@ -0,0 +1,16 @@ +------------------------------------------------------------------------------- +Please check the following files: + %%X11BASE%%/lib/X11/locale/zh_CN/XI18N_OBJS +If not exist, copy %%X11BASE%%/lib/X11/locale/zh/XI18N_OBJS to it. + +If you got the message: + XSIM: Failed opening share library function: Undefined symbol "__XlcEucLoader" +Comment + XLC common/xlocale _XlcEucLoader # XLC_open +in %%X11BASE%%/lib/X11/locale/zh_CN/XI18N_OBJS + +Remember to set environment varible XMODIFIERS: + csh/tcsh: setenv XMODIFIERS @im=XSIM + sh/bash: export XMODIFIERS='@im=XSIM' +and set LANG, LC_CTYPE to zh_CN.eucCN. +------------------------------------------------------------------------------- diff --git a/chinese/xsim/files/xsim.sh b/chinese/xsim/files/xsim.sh deleted file mode 100644 index 115ec73f9ce0..000000000000 --- a/chinese/xsim/files/xsim.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -# Install user settings directory if it does not exist -if [ ! -d ${HOME}/.xsim ] -then - mkdir ${HOME}/.xsim - cp %%PREFIX%%/share/xsim/dat/* ${HOME}/.xsim/ - sed "/^DICT_LOCAL/s|%%PREFIX%%/share/xsim/dat|${HOME}/.xsim|g" \ - %%PREFIX%%/etc/xsimrc > ${HOME}/.xsim/xsimrc -fi - -# Start xsim -exec %%PREFIX%%/share/xsim/bin/xsim $* diff --git a/chinese/xsim/files/xsim.sh.in b/chinese/xsim/files/xsim.sh.in new file mode 100644 index 000000000000..115ec73f9ce0 --- /dev/null +++ b/chinese/xsim/files/xsim.sh.in @@ -0,0 +1,13 @@ +#!/bin/sh + +# Install user settings directory if it does not exist +if [ ! -d ${HOME}/.xsim ] +then + mkdir ${HOME}/.xsim + cp %%PREFIX%%/share/xsim/dat/* ${HOME}/.xsim/ + sed "/^DICT_LOCAL/s|%%PREFIX%%/share/xsim/dat|${HOME}/.xsim|g" \ + %%PREFIX%%/etc/xsimrc > ${HOME}/.xsim/xsimrc +fi + +# Start xsim +exec %%PREFIX%%/share/xsim/bin/xsim $* diff --git a/chinese/xsim/pkg-message b/chinese/xsim/pkg-message deleted file mode 100644 index 2962664fe98c..000000000000 --- a/chinese/xsim/pkg-message +++ /dev/null @@ -1,16 +0,0 @@ -------------------------------------------------------------------------------- -Please check the following files: - %%X11BASE%%/lib/X11/locale/zh_CN/XI18N_OBJS -If not exist, copy %%X11BASE%%/lib/X11/locale/zh/XI18N_OBJS to it. - -If you got the message: - XSIM: Failed opening share library function: Undefined symbol "__XlcEucLoader" -Comment - XLC common/xlocale _XlcEucLoader # XLC_open -in %%X11BASE%%/lib/X11/locale/zh_CN/XI18N_OBJS - -Remember to set environment varible XMODIFIERS: - csh/tcsh: setenv XMODIFIERS @im=XSIM - sh/bash: export XMODIFIERS='@im=XSIM' -and set LANG, LC_CTYPE to zh_CN.eucCN. -------------------------------------------------------------------------------- -- cgit