Date: Wed, 6 Apr 2005 16:10:55 +0800 (CST) From: Rong-En Fan <rafan@infor.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/79596: [MAINTAINER] chinese/dictd-database: update to 1.6 Message-ID: <200504060810.j368AtCZ069446@svm.csie.ntu.edu.tw> Resent-Message-ID: <200504060820.j368K76X094007@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 79596 >Category: ports >Synopsis: [MAINTAINER] chinese/dictd-database: update to 1.6 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Apr 06 08:20:04 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Rong-En Fan >Release: FreeBSD 5.3-STABLE i386 >Organization: NTU CSIE >Environment: System: FreeBSD svm.csie.ntu.edu.tw 5.3-STABLE FreeBSD 5.3-STABLE #0: Sat Jan 8 21:21:15 CST >Description: - Update to 1.6, also unbreak it! Main change is removing building process. So, it can avoid the unknown ``invalid locale'' problems on package clusters :-( Removed file(s): - files/patch-aa - files/patch-ac Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- dictd-database-1.6.patch begins here --- diff -ruN --exclude=CVS /usr/ports/chinese/dictd-database/Makefile /home/rafan/tmp/ports/dictd-database/Makefile --- /usr/ports/chinese/dictd-database/Makefile Mon Mar 28 03:06:53 2005 +++ /home/rafan/tmp/ports/dictd-database/Makefile Wed Apr 6 16:06:36 2005 @@ -6,7 +6,7 @@ # PORTNAME= dictd-database -PORTVERSION= 1.5 +PORTVERSION= 1.6 CATEGORIES= chinese textproc MASTER_SITES= ftp://freebsd.csie.ntu.edu.tw/users/rafan/ \ ftp://freebsd.sinica.edu.tw/pub/statue/dictd-database/ @@ -15,29 +15,32 @@ MAINTAINER= rafan@infor.org COMMENT= A Chinese <-> English dictd words database -BUILD_DEPENDS= ${LOCALBASE}/bin/dictfmt:${PORTSDIR}/textproc/dictfmt \ - ${LOCALBASE}/bin/dictzip:${PORTSDIR}/net/dictd +RUN_DEPENDS= ${LOCALBASE}/sbin/dictd:${PORTSDIR}/net/dictd -BROKEN= Does not build - -USE_LIBTOOL_VER= 13 -USE_GMAKE= yes -USE_PERL5_BUILD=yes -USE_REINPLACE= yes +NO_BUILD= yes MSG_FILE= ${PKGDIR}/pkg-message PKGMESSAGE= ${WRKSRC}/pkg-message -post-patch: - @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/configure +DICTFILES= cedict pydict moecomp netterm + +do-install: + ${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE} + @${MKDIR} ${PREFIX}/lib/dict + for f in ${DICTFILES}; do \ + ${INSTALL_DATA} ${WRKSRC}/$${f}.dict.dz ${PREFIX}/lib/dict; \ + ${INSTALL_DATA} ${WRKSRC}/$${f}.index ${PREFIX}/lib/dict; \ + done post-install: - @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE} + @${ECHO} + @${CAT} ${PKGMESSAGE} + @${ECHO} .include <bsd.port.pre.mk> .if ${OSVERSION} < 502110 -BUILD_DEPENDS+= ${LOCALBASE}/share/locale/zh_TW.UTF-8/LC_CTYPE:${PORTSDIR}/misc/utf8locale +RUN_DEPENDS+= ${LOCALBASE}/share/locale/zh_TW.UTF-8/LC_CTYPE:${PORTSDIR}/misc/utf8locale .endif .include <bsd.port.post.mk> diff -ruN --exclude=CVS /usr/ports/chinese/dictd-database/distinfo /home/rafan/tmp/ports/dictd-database/distinfo --- /usr/ports/chinese/dictd-database/distinfo Fri Mar 11 10:52:25 2005 +++ /home/rafan/tmp/ports/dictd-database/distinfo Wed Apr 6 15:51:46 2005 @@ -1,2 +1,2 @@ -MD5 (dict-zh-1.5.tar.gz) = 0f1afe9a123700aa6a2441d7128e11d9 -SIZE (dict-zh-1.5.tar.gz) = 8544336 +MD5 (dict-zh-1.6.tar.gz) = 34fbd4a0bd9fe28e6a8dd2a191ce1583 +SIZE (dict-zh-1.6.tar.gz) = 14928494 diff -ruN --exclude=CVS /usr/ports/chinese/dictd-database/files/patch-aa /home/rafan/tmp/ports/dictd-database/files/patch-aa --- /usr/ports/chinese/dictd-database/files/patch-aa Fri Mar 11 10:52:25 2005 +++ /home/rafan/tmp/ports/dictd-database/files/patch-aa Thu Jan 1 08:00:00 1970 @@ -1,11 +0,0 @@ ---- Makefile.in.orig Wed Nov 28 02:53:55 2001 -+++ Makefile.in Fri Jul 19 02:15:58 2002 -@@ -75,7 +75,7 @@ - (cd $$subdir && $(MAKE)) || exit 1; \ - done - --all:: $(EXES) -+all:: $(EXES) db - - db :: $(DATABASES) - diff -ruN --exclude=CVS /usr/ports/chinese/dictd-database/files/patch-ac /home/rafan/tmp/ports/dictd-database/files/patch-ac --- /usr/ports/chinese/dictd-database/files/patch-ac Fri Mar 11 10:52:25 2005 +++ /home/rafan/tmp/ports/dictd-database/files/patch-ac Thu Jan 1 08:00:00 1970 @@ -1,13 +0,0 @@ ---- configure.orig Sun Oct 14 10:16:23 2001 -+++ configure Sun Oct 14 10:16:55 2001 -@@ -542,8 +542,8 @@ - - - --prefix=/usr --datadir=/usr/lib -+prefix=%%PREFIX%% -+datadir=%%PREFIX%%/lib - - echo Configuring for dict-misc - echo . diff -ruN --exclude=CVS /usr/ports/chinese/dictd-database/pkg-message /home/rafan/tmp/ports/dictd-database/pkg-message --- /usr/ports/chinese/dictd-database/pkg-message Fri Mar 11 10:52:25 2005 +++ /home/rafan/tmp/ports/dictd-database/pkg-message Wed Apr 6 16:07:22 2005 @@ -4,15 +4,15 @@ dictd_flags="--locale zh_TW.UTF-8" -And, you also need adding the following to PREFIX/etc/dictd.conf: +And, you also need adding the following to %%PREFIX%%/etc/dictd.conf: -database moecomp { data "PREFIX/lib/dict/moecomp.dict.dz" - index "PREFIX/lib/dict/moecomp.index" } -database netterm { data "PREFIX/lib/dict/netterm.dict.dz" - index "PREFIX/lib/dict/netterm.index" } -database pydict { data "PREFIX/lib/dict/pydict.dict.dz" - index "PREFIX/lib/dict/pydict.index" } -database cedict { data "PREFIX/lib/dict/cedict.dict.dz" - index "PREFIX/lib/dict/cedict.index" } +database moecomp { data "%%PREFIX%%/lib/dict/moecomp.dict.dz" + index "%%PREFIX%%/lib/dict/moecomp.index" } +database netterm { data "%%PREFIX%%/lib/dict/netterm.dict.dz" + index "%%PREFIX%%/lib/dict/netterm.index" } +database pydict { data "%%PREFIX%%/lib/dict/pydict.dict.dz" + index "%%PREFIX%%/lib/dict/pydict.index" } +database cedict { data "%%PREFIX%%/lib/dict/cedict.dict.dz" + index "%%PREFIX%%/lib/dict/cedict.index" } ***************************************************************************** --- dictd-database-1.6.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504060810.j368AtCZ069446>