Bug 179327 - [PATCH] games/gtktetcolor: Update to 0.6.5pre3, fix port
Summary: [PATCH] games/gtktetcolor: Update to 0.6.5pre3, fix port
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: Rusmir Dusko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-05 11:40 UTC by nemysis
Modified: 2013-11-22 22:20 UTC (History)
1 user (show)

See Also:


Attachments
gtktetcolor-0.6.5.p3.patch (3.43 KB, patch)
2013-06-05 11:40 UTC, nemysis
no flags Details | Diff
gtktetcolor.diff (3.84 KB, patch)
2013-06-29 18:00 UTC, nemysis
no flags Details | Diff
gtktetcolor.diff (3.61 KB, patch)
2013-07-14 19:53 UTC, nemysis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2013-06-05 11:40:01 UTC
- Update to 0.6.5pre3
- Fix port
- Trim master sites
- Change Icon
- Add dependencies for BZIP2 and desktop
- Trim new Uses
- Add docs
- Add NLS Options
- Add OptionsNG
- Trim Desktop entry file
- Fix mtree, pkg-plist

Generated and tested manually, tested with port test and with RedPorts, sent with FreeBSD Port Tools 0.99_7 (mode: change, diff: ports)

How-To-Repeat: 
http://portsmon.freebsd.org/portoverview.py?category=games&portname=gtktetcolor

Build log

https://redports.org/buildarchive/20130604103900-48119/
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-05 11:40:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->beech

beech@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 nemysis 2013-06-29 18:00:29 UTC
Site not more exist

http://canopus.iacp.dvo.ru/~panov/gtktetcolor/


- Trim NLS
- Update WWW
Comment 3 nemysis 2013-07-14 19:53:47 UTC
- Update to 0.6.5pre3
- Trim master sites
- Change Icon
- USES desktop-file-utils gmake pkgconfig
- Add docs
- Add DOCS NLS Option
- Trim REINPLACE_CMD
- Trim Desktop entry file
- Trim pkg-plist


Can't give build log, because RedPorts not works for me at the time.

https://redports.org/buildarchive/20130714180900-5884/

/usr/ports/Mk/bsd.port.mk", line 1505: Could not find /usr/ports/Mk/Uses/gmake.mk
Comment 4 Rusmir Dusko freebsd_committer freebsd_triage 2013-10-22 01:34:59 UTC
Responsible Changed
From-To: beech->nemysis

I'll take it.
Comment 5 dfilter service freebsd_committer freebsd_triage 2013-11-22 22:12:48 UTC
Author: nemysis
Date: Fri Nov 22 22:12:39 2013
New Revision: 334621
URL: http://svnweb.freebsd.org/changeset/ports/334621

Log:
  - Update to 0.6.5pre3
  - Change master sites
  - Pass maintainership to submitter
  - Add USES desktop-file-utils
  - Support STAGEDIR and add OPTIONS_SUB
  - Add DOCS
  - Add DOCS and NLS Options
  - Change REINPLACE_CMD
  
  PR:		ports/179327
  Submitted by:	nemysis <nemysis@gmx.ch>
  Approved by:	pawel / wg (mentors, implicit)

Modified:
  head/games/gtktetcolor/Makefile
  head/games/gtktetcolor/distinfo   (contents, props changed)
  head/games/gtktetcolor/pkg-plist   (contents, props changed)

Modified: head/games/gtktetcolor/Makefile
==============================================================================
--- head/games/gtktetcolor/Makefile	Fri Nov 22 22:10:53 2013	(r334620)
+++ head/games/gtktetcolor/Makefile	Fri Nov 22 22:12:39 2013	(r334621)
@@ -2,30 +2,55 @@
 # $FreeBSD$
 
 PORTNAME=	gtktetcolor
-PORTVERSION=	0.6.4
-PORTREVISION=	11
+DISTVERSION=	0.6.5pre3
 CATEGORIES=	games gnome
-MASTER_SITES=	SUNSITE/games \
-		http://canopus.iacp.dvo.ru/~panov/gtktetcolor/
+MASTER_SITES=	ftp://canopus.iacp.dvo.ru/pub/Games/gtktetcolor/ \
+		SF/nemysisfreebsdp/games/${PORTNAME}/:icons
+DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+		${PORTNAME}.png:icons
+EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	nemysis@FreeBSD.org
 COMMENT=	Game for GNOME that resembles well-known Tetris and Columns
 
 LICENSE=	GPLv2 GPLv3
 LICENSE_COMB=	dual
 
-USES=        pathfix gmake pkgconfig
+USE_BZIP2=	yes
+USES=		desktop-file-utils gmake pathfix pkgconfig
 USE_GNOME=	gnomeprefix intlhack libgnomeui
 GNU_CONFIGURE=	yes
 
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-NO_STAGE=	yes
+PORTDOCS=	AUTHORS ChangeLog NEWS README TODO
+
+OPTIONS_DEFINE=	DOCS NLS
+OPTIONS_SUB=	yes
+
+NLS_USES=	gettext
+
+.include <bsd.port.options.mk>
+
 post-patch:
-	@${REINPLACE_CMD} -e \
-		's|games\.games|games:games|g' ${WRKSRC}/Makefile.in
+	@${REINPLACE_CMD} \
+		-e 's|games.games|root.games|' \
+		-e 's|scoredir = $$(localstatedir)/games|scoredir = /var/games|' \
+		${WRKSRC}/Makefile.in
 	@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
 		's|-D.*_DISABLE_DEPRECATED||g'
+	@${REINPLACE_CMD} -e 's|^Icon.*|Icon=${PORTNAME}|' \
+		${WRKSRC}/src/gtktetcolor.desktop.in
+
+.if ! ${PORT_OPTIONS:MNLS}
+	@${REINPLACE_CMD} -e '/^SUBDIRS/s|po||g' ${WRKSRC}/Makefile.in
+.endif
+
+post-install:
+	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
+
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/games/gtktetcolor/distinfo
==============================================================================
--- head/games/gtktetcolor/distinfo	Fri Nov 22 22:10:53 2013	(r334620)
+++ head/games/gtktetcolor/distinfo	Fri Nov 22 22:12:39 2013	(r334621)
@@ -1,2 +1,4 @@
-SHA256 (gtktetcolor-0.6.4.tar.gz) = 1d70d9d4c87ab6f42366dc491e8a467dae01ce168d3bbf4b9fc5215227ce5628
-SIZE (gtktetcolor-0.6.4.tar.gz) = 198699
+SHA256 (gtktetcolor-0.6.5pre3.tar.bz2) = c11a02377d0ed83ef59e5dd1cf7ea82491bbdbfb19957e5bc2774b871e93b049
+SIZE (gtktetcolor-0.6.5pre3.tar.bz2) = 172629
+SHA256 (gtktetcolor.png) = 1dd71abedfe4a7878e5ce802b3e19f8fec795834c09bdc31f219a8dc8db76427
+SIZE (gtktetcolor.png) = 910

Modified: head/games/gtktetcolor/pkg-plist
==============================================================================
--- head/games/gtktetcolor/pkg-plist	Fri Nov 22 22:10:53 2013	(r334620)
+++ head/games/gtktetcolor/pkg-plist	Fri Nov 22 22:12:39 2013	(r334621)
@@ -1,13 +1,15 @@
 bin/gtktetcolor
 etc/sound/events/gtktetcolor.soundlist
 share/applications/gtktetcolor.desktop
-share/games/gtktetcolor.scores
+%%NLS%%share/locale/de/LC_MESSAGES/gtktetcolor.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gtktetcolor.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/gtktetcolor.mo
+share/pixmaps/gtktetcolor.png
 share/pixmaps/gtktetcolor.xpm
 share/sounds/gtktetcolor/bonus.wav
 share/sounds/gtktetcolor/gameover.wav
 share/sounds/gtktetcolor/linerem.wav
-share/locale/de/LC_MESSAGES/gtktetcolor.mo
-share/locale/fr/LC_MESSAGES/gtktetcolor.mo
-share/locale/ru/LC_MESSAGES/gtktetcolor.mo
+@unexec if [ -s /var/games/gtktetcolor.scores ] ; then rm -f /var/games/gtktetcolor.scores ; fi
+/var/games/gtktetcolor.scores
+@exec if [ ! -f /var/games/gtktetcolor.scores ] ; then cp -p /var/games/gtktetcolor.scores ; fi
 @dirrm share/sounds/gtktetcolor
-@dirrmtry share/games
_______________________________________________
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"
Comment 6 Rusmir Dusko freebsd_committer freebsd_triage 2013-11-22 22:14:30 UTC
State Changed
From-To: open->closed

Committed. Thanks!