aboutsummaryrefslogtreecommitdiff
path: root/chinese/fortunetw
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-04-02 19:02:00 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-04-02 19:02:00 +0000
commite26a2c24505cfe7ff4ea9a0c6c8fe60a6f89a39b (patch)
treeb39714ebbac35bd6e856e5710b8401fa13bcc6e6 /chinese/fortunetw
parentb97699137805458378dad4fbb14d9d4aedbbe8f2 (diff)
downloadports-e26a2c24505cfe7ff4ea9a0c6c8fe60a6f89a39b.tar.gz
ports-e26a2c24505cfe7ff4ea9a0c6c8fe60a6f89a39b.zip
- Update to 1.4
- Take maintainership Changes: - Convert to UTF-8 - Prepare *.dat
Notes
Notes: svn path=/head/; revision=349945
Diffstat (limited to 'chinese/fortunetw')
-rw-r--r--chinese/fortunetw/Makefile40
-rw-r--r--chinese/fortunetw/distinfo4
-rw-r--r--chinese/fortunetw/pkg-plist2
3 files changed, 13 insertions, 33 deletions
diff --git a/chinese/fortunetw/Makefile b/chinese/fortunetw/Makefile
index b037100f66ab..2eb411ef2e0a 100644
--- a/chinese/fortunetw/Makefile
+++ b/chinese/fortunetw/Makefile
@@ -2,42 +2,22 @@
# $FreeBSD$
PORTNAME= fortunetw
-PORTVERSION= 1.3
+PORTVERSION= 1.4
CATEGORIES= chinese
-MASTER_SITES= LOCAL/chinsan \
- http://chinsan2.twbbs.org/distfiles/
-DISTNAME= zh-fortunetw-${PORTVERSION}
+MASTER_SITES= LOCAL/sunpoet
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Classic fortune file in Taiwan
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Classic fortune file in Taiwan (UTF-8)
NO_BUILD= yes
+USES= tar:xz
-STRCMD= /usr/games/strfile
+FORTUNE= bsdchat folksong liuyong stephehchow tangshi xiaoxing yijing
do-install:
- ${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
- ${INSTALL_DATA} ${WRKSRC}/bsdchat ${STAGEDIR}${PREFIX}/share/games/fortune
- ${INSTALL_DATA} ${WRKSRC}/folksong ${STAGEDIR}${PREFIX}/share/games/fortune
- ${INSTALL_DATA} ${WRKSRC}/liuyong ${STAGEDIR}${PREFIX}/share/games/fortune
- ${INSTALL_DATA} ${WRKSRC}/stephehchow ${STAGEDIR}${PREFIX}/share/games/fortune
- ${INSTALL_DATA} ${WRKSRC}/tangshi ${STAGEDIR}${PREFIX}/share/games/fortune
- ${INSTALL_DATA} ${WRKSRC}/xiaoxing ${STAGEDIR}${PREFIX}/share/games/fortune
- ${INSTALL_DATA} ${WRKSRC}/yijing ${STAGEDIR}${PREFIX}/share/games/fortune
-
-pre-install:
-.if !exists(${STRCMD})
- @${ECHO_MSG} "Please install the games distribution"
- @${FALSE}
-.endif
-
-post-install:
- ${STRCMD} ${STAGEDIR}${PREFIX}/share/games/fortune/bsdchat
- ${STRCMD} ${STAGEDIR}${PREFIX}/share/games/fortune/folksong
- ${STRCMD} ${STAGEDIR}${PREFIX}/share/games/fortune/liuyong
- ${STRCMD} ${STAGEDIR}${PREFIX}/share/games/fortune/stephehchow
- ${STRCMD} ${STAGEDIR}${PREFIX}/share/games/fortune/tangshi
- ${STRCMD} ${STAGEDIR}${PREFIX}/share/games/fortune/xiaoxing
- ${STRCMD} ${STAGEDIR}${PREFIX}/share/games/fortune/yijing
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune/
+.for file in ${FORTUNE}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${WRKSRC}/${file}.dat ${STAGEDIR}${PREFIX}/share/games/fortune/
+.endfor
.include <bsd.port.mk>
diff --git a/chinese/fortunetw/distinfo b/chinese/fortunetw/distinfo
index 2f4f378a7317..7cbe1a00b545 100644
--- a/chinese/fortunetw/distinfo
+++ b/chinese/fortunetw/distinfo
@@ -1,2 +1,2 @@
-SHA256 (zh-fortunetw-1.3.tar.gz) = 64842320a319121b26b200b3d33c025b8a8b7691ed7df67b342f6c2fece53632
-SIZE (zh-fortunetw-1.3.tar.gz) = 101873
+SHA256 (fortunetw-1.4.tar.xz) = 172a67f1c3b926a67095ad527dedce59ebac7ab295e1ef50284e48ddb88c34b9
+SIZE (fortunetw-1.4.tar.xz) = 104076
diff --git a/chinese/fortunetw/pkg-plist b/chinese/fortunetw/pkg-plist
index cebb074fca9b..2699b77caaf7 100644
--- a/chinese/fortunetw/pkg-plist
+++ b/chinese/fortunetw/pkg-plist
@@ -13,4 +13,4 @@ share/games/fortune/xiaoxing.dat
share/games/fortune/yijing
share/games/fortune/yijing.dat
@dirrm share/games/fortune
-@dirrm share/games
+@dirrmtry share/games