aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/fortune
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-12-18 10:06:31 +0800
committerdelphij <delphij@FreeBSD.org>2009-12-18 10:06:31 +0800
commit27a670efd1767cebfbbf6286df18d2d50730a87f (patch)
tree0cbeb10b3453ee4fc1caffb6069211db6af9f045 /chinese/fortune
parente5ecdf9610ef9599c3506d348db6008de1a10c0f (diff)
downloadfreebsd-ports-gnome-27a670efd1767cebfbbf6286df18d2d50730a87f.tar.gz
freebsd-ports-gnome-27a670efd1767cebfbbf6286df18d2d50730a87f.tar.zst
freebsd-ports-gnome-27a670efd1767cebfbbf6286df18d2d50730a87f.zip
New port: chinese/fortune A very classic fortune file in Chinese
PR: ports/141712 Submitted by: Ju Pengfei <jupengfei gmail com>
Diffstat (limited to 'chinese/fortune')
-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
4 files changed, 79 insertions, 0 deletions
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%%