aboutsummaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2009-12-18 02:06:31 +0000
committerXin LI <delphij@FreeBSD.org>2009-12-18 02:06:31 +0000
commitb9d2b2648be58820702ce782bdc7200fdad1f32b (patch)
treeebf31d48efe6f00610f5719e4cd3cebde5a1d158 /chinese
parent46c4e0a5e2d896926a3473a1b7a9fe1e86a283a3 (diff)
downloadports-b9d2b2648be58820702ce782bdc7200fdad1f32b.tar.gz
ports-b9d2b2648be58820702ce782bdc7200fdad1f32b.zip
Notes
Diffstat (limited to 'chinese')
-rw-r--r--chinese/Makefile1
-rw-r--r--chinese/fortune/Makefile33
-rw-r--r--chinese/fortune/distinfo3
-rw-r--r--chinese/fortune/pkg-descr5
-rw-r--r--chinese/fortune/pkg-plist38
5 files changed, 80 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile
index a59165c41eb3..e21e92bb8148 100644
--- a/chinese/Makefile
+++ b/chinese/Makefile
@@ -39,6 +39,7 @@
SUBDIR += firebird
SUBDIR += fireflyttf
SUBDIR += font-std
+ SUBDIR += fortune
SUBDIR += fortunetw
SUBDIR += fqterm
SUBDIR += gb2jis
diff --git a/chinese/fortune/Makefile b/chinese/fortune/Makefile
new file mode 100644
index 000000000000..a931ea44e359
--- /dev/null
+++ b/chinese/fortune/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: zh-fortune
+# Date created: 17 Dec 2009
+# Whom: Ju Pengfei
+#
+# $FreeBSD$
+#
+
+PORTNAME= fortune
+PORTVERSION= 1.2.2
+CATEGORIES= chinese
+MASTER_SITES= GOOGLE_CODE
+PKGNAMEPREFIX= zh-
+DISTNAME= fortune-mod-zh-${PORTVERSION}
+
+MAINTAINER= jupengfei@gmail.com
+COMMENT= A very classic fortune file in Chinese
+
+RUN_DEPENDS= bash:${PORTSDIR}/shells/bash \
+ autob5:${PORTSDIR}/chinese/autoconvert
+
+PROJECTHOST= chinese-fortune
+NO_BUILD= yes
+USE_GMAKE= yes
+USE_BZIP2= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|/bin/bash|${LOCALBASE}/bin/bash|" \
+ -e "s|/usr/bin/fortune|/usr/games/fortune|" \
+ ${WRKSRC}/src/fortune-zh
+ @${REINPLACE_CMD} -e "s|/usr/|${PREFIX}/|" \
+ ${WRKSRC}/src/Makefile
+
+.include <bsd.port.mk>
diff --git a/chinese/fortune/distinfo b/chinese/fortune/distinfo
new file mode 100644
index 000000000000..926d5a6318b1
--- /dev/null
+++ b/chinese/fortune/distinfo
@@ -0,0 +1,3 @@
+MD5 (fortune-mod-zh-1.2.2.tar.bz2) = 4a5e3ea8c58c30c4bf319c524b52cee8
+SHA256 (fortune-mod-zh-1.2.2.tar.bz2) = 79298e2f78094489e8108f608f53216924aa2e928452d0d2a3ce91ad74ca457b
+SIZE (fortune-mod-zh-1.2.2.tar.bz2) = 304978
diff --git a/chinese/fortune/pkg-descr b/chinese/fortune/pkg-descr
new file mode 100644
index 000000000000..5b3c56bd3462
--- /dev/null
+++ b/chinese/fortune/pkg-descr
@@ -0,0 +1,5 @@
+This package contains classcial Chinese poems and
+quotes from other classical Chinese literatures,
+like novels, fictions and so on.
+
+WWW: http://code.google.com/p/chinese-fortune
diff --git a/chinese/fortune/pkg-plist b/chinese/fortune/pkg-plist
new file mode 100644
index 000000000000..861b233162f8
--- /dev/null
+++ b/chinese/fortune/pkg-plist
@@ -0,0 +1,38 @@
+bin/fortune-sc
+bin/fortune-tc
+bin/fortune-zh
+%%DATADIR%%/zh/caigentan
+%%DATADIR%%/zh/caigentan.dat
+%%DATADIR%%/zh/caigentan.u8
+%%DATADIR%%/zh/dao
+%%DATADIR%%/zh/dao.dat
+%%DATADIR%%/zh/dao.u8
+%%DATADIR%%/zh/joke
+%%DATADIR%%/zh/joke.dat
+%%DATADIR%%/zh/joke.u8
+%%DATADIR%%/zh/lunyu
+%%DATADIR%%/zh/lunyu.dat
+%%DATADIR%%/zh/lunyu.u8
+%%DATADIR%%/zh/maoshici
+%%DATADIR%%/zh/maoshici.dat
+%%DATADIR%%/zh/maoshici.u8
+%%DATADIR%%/zh/maoyulu
+%%DATADIR%%/zh/maoyulu.dat
+%%DATADIR%%/zh/maoyulu.u8
+%%DATADIR%%/zh/proverb
+%%DATADIR%%/zh/proverb.dat
+%%DATADIR%%/zh/proverb.u8
+%%DATADIR%%/zh/song100
+%%DATADIR%%/zh/song100.dat
+%%DATADIR%%/zh/song100.u8
+%%DATADIR%%/zh/songproses
+%%DATADIR%%/zh/songproses.dat
+%%DATADIR%%/zh/songproses.u8
+%%DATADIR%%/zh/tang300
+%%DATADIR%%/zh/tang300.dat
+%%DATADIR%%/zh/tang300.u8
+%%DATADIR%%/zh/zengguang
+%%DATADIR%%/zh/zengguang.dat
+%%DATADIR%%/zh/zengguang.u8
+@dirrm %%DATADIR%%/zh
+@dirrm %%DATADIR%%