aboutsummaryrefslogtreecommitdiff
path: root/chinese/p5-Lingua-ZH-TaBE
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2004-01-15 08:20:51 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2004-01-15 08:20:51 +0000
commit59336fe39cef4e06b739e9f918a21c8796bf7a11 (patch)
treeb0bbc36f0e374dd7911a11d6300d6ca68d57d356 /chinese/p5-Lingua-ZH-TaBE
parent798308e61705c5d49ce3e7b740092753e10e51a1 (diff)
downloadports-59336fe39cef4e06b739e9f918a21c8796bf7a11.tar.gz
ports-59336fe39cef4e06b739e9f918a21c8796bf7a11.zip
Notes
Diffstat (limited to 'chinese/p5-Lingua-ZH-TaBE')
-rw-r--r--chinese/p5-Lingua-ZH-TaBE/Makefile26
-rw-r--r--chinese/p5-Lingua-ZH-TaBE/distinfo2
-rw-r--r--chinese/p5-Lingua-ZH-TaBE/pkg-descr4
-rw-r--r--chinese/p5-Lingua-ZH-TaBE/pkg-plist2
4 files changed, 27 insertions, 7 deletions
diff --git a/chinese/p5-Lingua-ZH-TaBE/Makefile b/chinese/p5-Lingua-ZH-TaBE/Makefile
index a45d51674396..a656a44d7601 100644
--- a/chinese/p5-Lingua-ZH-TaBE/Makefile
+++ b/chinese/p5-Lingua-ZH-TaBE/Makefile
@@ -7,20 +7,36 @@
#
PORTNAME= Lingua-ZH-TaBE
-PORTVERSION= 0.03
+PORTVERSION= 0.04
CATEGORIES= chinese perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
-MASTER_SITE_SUBDIR= ../by-authors/id/A/AU/AUTRIJUS
+MASTER_SITE_SUBDIR= Lingua
PKGNAMEPREFIX= p5-
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= clsung@dragon2.net
COMMENT= Chinese processing via libtabe
LIB_DEPENDS= tabe.2:${PORTSDIR}/chinese/libtabe
PERL_CONFIGURE= yes
+WITH_DB?= db3
+CONFIGURE_ARGS= DB="${WITH_DB}"
-MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
-MAN3= Lingua::ZH::TaBE.3
+.if ${WITH_DB} == "db2"
+LIB_DEPENDS+= db2.0:${PORTSDIR}/databases/db2
+.elif ${WITH_DB} == "db4"
+LIB_DEPENDS+= db4.0:${PORTSDIR}/databases/db4
+.else
+LIB_DEPENDS+= db3.3:${PORTSDIR}/databases/db3
+.endif
+
+MAN3= Lingua::ZH::TaBE.3
+
+pre-fetch:
+ @${ECHO} ""
+ @${ECHO} "You may specify db version to use:"
+ @${ECHO} ""
+ @${ECHO} " WITH_DB=db_version (Default db3)."
+ @${ECHO} ""
.include <bsd.port.mk>
diff --git a/chinese/p5-Lingua-ZH-TaBE/distinfo b/chinese/p5-Lingua-ZH-TaBE/distinfo
index 04fd19aecb5a..03247c939915 100644
--- a/chinese/p5-Lingua-ZH-TaBE/distinfo
+++ b/chinese/p5-Lingua-ZH-TaBE/distinfo
@@ -1 +1 @@
-MD5 (Lingua-ZH-TaBE-0.03.tar.gz) = dfe59b7b81b18e9b819fede0edb1be96
+MD5 (Lingua-ZH-TaBE-0.04.tar.gz) = c3f6d1963519f54ba4d362955701e670
diff --git a/chinese/p5-Lingua-ZH-TaBE/pkg-descr b/chinese/p5-Lingua-ZH-TaBE/pkg-descr
index cb915de0f231..8e5363429ec8 100644
--- a/chinese/p5-Lingua-ZH-TaBE/pkg-descr
+++ b/chinese/p5-Lingua-ZH-TaBE/pkg-descr
@@ -2,3 +2,7 @@ This module is a Perl interface to the TaBE (Taiwan and Big5 Encoding)
library, an unified interface and library dealing with Chinese words,
phrases, sentences, and phonetic symbols; it is intended to be used as
the foundation of Chinese text processing.
+
+WWW: http://search.cpan.org/dist/Lingua-ZH-TaBE/
+
+Author: Autrijus <autrijus@autrijus.org>
diff --git a/chinese/p5-Lingua-ZH-TaBE/pkg-plist b/chinese/p5-Lingua-ZH-TaBE/pkg-plist
index 661f677710b0..24f46aff424d 100644
--- a/chinese/p5-Lingua-ZH-TaBE/pkg-plist
+++ b/chinese/p5-Lingua-ZH-TaBE/pkg-plist
@@ -2,8 +2,8 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/ZH/TaBE/TaBE.bs
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/ZH/TaBE/TaBE.so
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/ZH/TaBE/.packlist
-@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Lingua/ZH
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/ZH/TaBE
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/ZH
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/Lingua/ZH 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/Lingua 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua 2>/dev/null || true