summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-08-18 22:08:06 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-08-18 22:08:06 +0000
commite8e4852aa7b295462d4efb228062a4ec82d9cabd (patch)
tree896568601b82757cc064827ec8ea6ea250c2d01f /games
parent- Update to 1.13.8 (diff)
- Update to 0.6.5
PR: 126596 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=218795
Diffstat (limited to 'games')
-rw-r--r--games/typespeed/Makefile22
-rw-r--r--games/typespeed/distinfo6
-rw-r--r--games/typespeed/pkg-descr2
-rw-r--r--games/typespeed/pkg-plist5
4 files changed, 28 insertions, 7 deletions
diff --git a/games/typespeed/Makefile b/games/typespeed/Makefile
index 22794da72ac2..986fb6f45999 100644
--- a/games/typespeed/Makefile
+++ b/games/typespeed/Makefile
@@ -6,14 +6,15 @@
#
PORTNAME= typespeed
-PORTVERSION= 0.6.4
+PORTVERSION= 0.6.5
CATEGORIES= games
-MASTER_SITES= http://tobias.eyedacor.org/typespeed/ \
- CRITICAL
+MASTER_SITES= SF \
+ http://tobias.eyedacor.org/typespeed/
MAINTAINER= ports@FreeBSD.org
COMMENT= Test your typing speed, and get your fingers\' CPS
+USE_GNOME= gnometarget
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-highscoredir="/var/games/typespeed"
@@ -28,6 +29,14 @@ SUB_FILES= pkg-install pkg-deinstall
SUB_LIST= SCOREDIR="${SCOREDIR}" SCOREFILE="${SCOREFILE}" WRKSRC="${WRKSRC}"
MAN1= typespeed.1
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|\(/etc\)|${PREFIX}\1|' \
${WRKSRC}/src/pathnames.h
@@ -44,6 +53,13 @@ do-install:
${MKDIR} ${DATADIR}/words
${FIND} ${WRKSRC}/words/ -name "words.*" -type f \
-exec ${INSTALL_DATA} {} ${DATADIR}/words \;
+.if !defined(WITHOUT_NLS)
+.for i in de_DE fr_FR it
+ ${MKDIR} ${PREFIX}/share/locale/${i}/LC_MESSAGES
+ ${INSTALL_DATA} ${WRKSRC}/po/${i}.gmo \
+ ${PREFIX}/share/locale/${i}/LC_MESSAGES/typespeed.mo
+.endfor
+.endif
post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
diff --git a/games/typespeed/distinfo b/games/typespeed/distinfo
index 59e1d29f819b..b18461a853b5 100644
--- a/games/typespeed/distinfo
+++ b/games/typespeed/distinfo
@@ -1,3 +1,3 @@
-MD5 (typespeed-0.6.4.tar.gz) = fb55b92ad7e29a1a6a7a3e1ca383d5e2
-SHA256 (typespeed-0.6.4.tar.gz) = 80eafbbdb87720d6ca57bfbd3f5eaa5b66c1f2a4ec3a4a5ce9b0e01335a02644
-SIZE (typespeed-0.6.4.tar.gz) = 250596
+MD5 (typespeed-0.6.5.tar.gz) = 578102b418c7df84903d3e90df2e7483
+SHA256 (typespeed-0.6.5.tar.gz) = 5c860385ceed8a60f13217cc0192c4c2b4705c3e80f9866f7d72ff306eb72961
+SIZE (typespeed-0.6.5.tar.gz) = 254170
diff --git a/games/typespeed/pkg-descr b/games/typespeed/pkg-descr
index f4d061275f0b..abecccf41e82 100644
--- a/games/typespeed/pkg-descr
+++ b/games/typespeed/pkg-descr
@@ -5,7 +5,7 @@ Typespeed's idea is ripped from ztspeed (a dos game made by Zorlim). Idea
of the game should be clear to anyone, just type and type it fast, or be a
lewser.
-WWW: http://ls.purkki.org/typespeed/
+WWW: http://tobias.eyedacor.org/typespeed/
- Suleiman Souhlal
refugee@vt.edu
diff --git a/games/typespeed/pkg-plist b/games/typespeed/pkg-plist
index 5ac129b6e3c6..f4393df8c0d1 100644
--- a/games/typespeed/pkg-plist
+++ b/games/typespeed/pkg-plist
@@ -3,6 +3,9 @@ bin/typespeed-hs-conv
@unexec if cmp -s %D/etc/typespeedrc %D/etc/typespeedrc.dist; then rm -f %D/etc/typespeedrc; fi
etc/typespeedrc.dist
@exec [ -f %B/typespeedrc ] || cp %B/%f %B/typespeedrc
+%%NLS%%share/locale/de_DE/LC_MESSAGES/typespeed.mo
+%%NLS%%share/locale/fr_FR/LC_MESSAGES/typespeed.mo
+%%NLS%%share/locale/it/LC_MESSAGES/typespeed.mo
%%DATADIR%%/words/words.csharp
%%DATADIR%%/words/words.csharp_with_operators
%%DATADIR%%/words/words.dos
@@ -19,3 +22,5 @@ etc/typespeedrc.dist
%%DATADIR%%/words/words.unix
@dirrm %%DATADIR%%/words
@dirrm %%DATADIR%%
+%%NLS%%@dirrmtry share/locale/de_DE/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/de_DE