Bug 185341 - games/tornado: Update MASTER_SITES and WWW: line
Summary: games/tornado: Update MASTER_SITES and WWW: line
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-30 21:10 UTC by tkato432
Modified: 2014-01-25 17:00 UTC (History)
0 users

See Also:


Attachments
file.diff (7.91 KB, patch)
2013-12-30 21:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-12-30 21:10:09 UTC
- Update MASTER_SITES and WWW: line
- Support CC/CFLAGS properly
- Support ncurses USES macro

New file:
pkg-install

Remove file:
files/patch-aa
files/patch-ab
files/patch-ac
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2014-01-23 15:48:19 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2014-01-25 16:58:53 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2014-01-25 16:58:54 UTC
Author: miwi
Date: Sat Jan 25 16:58:46 2014
New Revision: 341059
URL: http://svnweb.freebsd.org/changeset/ports/341059
QAT: https://qat.redports.org/buildarchive/r341059/

Log:
  - Update MASTER_SITES and WWW: line
  - Support CC/CFLAGS properly
  - Support ncurses USES macro
  - Stage support
  
  PR:		185341
  Submitted by:	Ports Fury

Added:
  head/games/tornado/pkg-install   (contents, props changed)
Deleted:
  head/games/tornado/files/
Modified:
  head/games/tornado/Makefile
  head/games/tornado/pkg-descr
  head/games/tornado/pkg-plist

Modified: head/games/tornado/Makefile
==============================================================================
--- head/games/tornado/Makefile	Sat Jan 25 16:57:05 2014	(r341058)
+++ head/games/tornado/Makefile	Sat Jan 25 16:58:46 2014	(r341059)
@@ -3,18 +3,58 @@
 
 PORTNAME=	tornado
 PORTVERSION=	1.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	games
-MASTER_SITES=	http://kiza.kcore.de/media/software/${PORTNAME}/
+MASTER_SITES=	https://kiza.eu/media/software/tornado/
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A curses-based game of weather destruction
+COMMENT=	Ccurses-based game of weather destruction
 
-MAN6=		tornado.6
-MANLANG=	"" de fr it nl no ru
+LICENSE=	GPLv2 # (or later)
 
-USES=		gettext
-USE_GMAKE=	yes
+USES=		gettext gmake ncurses
+
+CFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib -lintl
+
+post-patch:
+.for i in Makefile Makefile.inc
+	@${REINPLACE_CMD} -e \
+		'/^CC/s| =| ?=| ; \
+		 /^MAKE/s| =| ?=| ; \
+		 /^LDFLAGS/s| =| +=| ; \
+		 /^PREFIX/s| =| ?=| ; \
+		 /^LOCALEPATH/s|/usr/local|$$(PREFIX)| ; \
+		 /^CFLAGS/s| =| +=| ; \
+		 s|-O2||' ${WRKSRC}/${i}
+.endfor
+	@${REINPLACE_CMD} -e \
+		's|/usr/local|PREFIX|' ${WRKSRC}/doc/man/tornado.6.in
+.for i in de fr it nl no ru
+	@${REINPLACE_CMD} -e \
+		's|/usr/local|PREFIX|' ${WRKSRC}/doc/man/${i}/tornado.6.${i}.in
+.endfor
+
+post-build:
+	@${LN} -sf tornado.scores ${WRKSRC}/tornado.scores.init
+
+do-install:
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} tornado \
+		${STAGEDIR}${PREFIX}/bin)
+	(cd ${WRKSRC}/doc/man && ${INSTALL_MAN} tornado.6 \
+		${STAGEDIR}${MAN6PREFIX}/man/man6)
+.for i in de fr it nl no ru
+	@${MKDIR} ${STAGEDIR}${MAN6PREFIX}/man/${i}/man6
+	(cd ${WRKSRC}/doc/man/${i} && ${INSTALL_MAN} tornado.6 \
+		${STAGEDIR}${MAN6PREFIX}/man/${i}/man6)
+.endfor
+.for i in de es fr it nl no pt ru
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${i}/LC_MESSAGES
+	(cd ${WRKSRC}/po && ${INSTALL_DATA} ${i}.mo \
+		${STAGEDIR}${PREFIX}/share/locale/${i}/LC_MESSAGES/tornado.mo)
+.endfor
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	(cd ${WRKSRC} && ${INSTALL_DATA} tornado.scores.init \
+		${STAGEDIR}${DATADIR})
 
-NO_STAGE=	yes
 .include <bsd.port.mk>

Modified: head/games/tornado/pkg-descr
==============================================================================
--- head/games/tornado/pkg-descr	Sat Jan 25 16:57:05 2014	(r341058)
+++ head/games/tornado/pkg-descr	Sat Jan 25 16:58:46 2014	(r341059)
@@ -1,6 +1,6 @@
-A clone of an old C64 game.  The object is to destroy your opponent's
-house with the power of weather, before they do the same to you.  Play
+A clone of an old C64 game. The object is to destroy your opponent's
+house with the power of weather, before they do the same to you. Play
 against the computer AI, or against another player locally or over the
 network.
 
-WWW: http://kiza.kcore.de/software/tornado/
+WWW: https://kiza.eu/software/tornado/

Added: head/games/tornado/pkg-install
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/tornado/pkg-install	Sat Jan 25 16:58:46 2014	(r341059)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+FILE=/var/games/tornado.scores
+[ "$2" != "POST-INSTALL" -o -f "$FILE" ] && exit 0
+
+echo "===>   Creating initial high score file $FILE"
+install -o root -g games -m 664 ${PKG_PREFIX}/share/tornado/tornado.scores.init $FILE

Modified: head/games/tornado/pkg-plist
==============================================================================
--- head/games/tornado/pkg-plist	Sat Jan 25 16:57:05 2014	(r341058)
+++ head/games/tornado/pkg-plist	Sat Jan 25 16:58:46 2014	(r341059)
@@ -1,14 +1,21 @@
 bin/tornado
-share/games/tornado.scores
+man/de/man6/tornado.6.gz
+man/fr/man6/tornado.6.gz
+man/it/man6/tornado.6.gz
+man/man6/tornado.6.gz
+man/nl/man6/tornado.6.gz
+man/no/man6/tornado.6.gz
+man/ru/man6/tornado.6.gz
 share/locale/de/LC_MESSAGES/tornado.mo
 share/locale/es/LC_MESSAGES/tornado.mo
 share/locale/fr/LC_MESSAGES/tornado.mo
 share/locale/it/LC_MESSAGES/tornado.mo
 share/locale/nl/LC_MESSAGES/tornado.mo
 share/locale/no/LC_MESSAGES/tornado.mo
-share/locale/ru/LC_MESSAGES/tornado.mo
 share/locale/pt/LC_MESSAGES/tornado.mo
-@dirrmtry share/games
+share/locale/ru/LC_MESSAGES/tornado.mo
+%%DATADIR%%/tornado.scores.init
+@dirrm %%DATADIR%%
 @dirrmtry man/ru/man6
 @dirrmtry man/ru
 @dirrmtry man/no/man6
@@ -21,3 +28,4 @@ share/locale/pt/LC_MESSAGES/tornado.mo
 @dirrmtry man/fr
 @dirrmtry man/de/man6
 @dirrmtry man/de
+@unexec if cmp -s %D/%%DATADIR%%/tornado.scores.init /var/games/tornado.scores; then rm -f /var/games/tornado.scores; else true; fi
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"