Bug 179286 - [PATCH] games/gno3dtet: Fix typo, add dependencies, NLS, OptionsNG
Summary: [PATCH] games/gno3dtet: Fix typo, add dependencies, NLS, OptionsNG
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-04 02:50 UTC by nemysis
Modified: 2014-03-22 16:20 UTC (History)
1 user (show)

See Also:


Attachments
gno3dtet-1.96.1_11.patch (2.33 KB, patch)
2013-06-04 02:50 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-04 02:50:00 UTC
- Fix typo
- Add dependencies for pkgconfig and desktop
- Add NLS Options
- Add OptionsNG
- Trim pkg-plist

Generated with FreeBSD Port Tools 0.99_7 (mode: change, diff: ports)

How-To-Repeat: 
Build log

https://redports.org/buildarchive/20130603225201-15138/
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-04 02:50:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->beech

beech@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 Thomas Abthorpe freebsd_committer freebsd_triage 2014-01-10 03:39:43 UTC
Responsible Changed
From-To: beech->nemysis

Submitter is committer
Comment 3 Rusmir Dusko freebsd_committer freebsd_triage 2014-03-22 16:01:10 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2014-03-22 16:17:55 UTC
Author: nemysis
Date: Sat Mar 22 16:17:51 2014
New Revision: 348799
URL: http://svnweb.freebsd.org/changeset/ports/348799
QAT: https://qat.redports.org/buildarchive/r348799/

Log:
  - Bump PORTREVISION for dependency change
  - Add license (GPLv2)
  - Use tabulator instead of whitespace
  - Remove run-autotools:: according to bsd.autotools.mk
  - Add NLS Option, add REINPLACE and install conditional
  - Add OPTIONS_SUB
  - Add dependency for devel/gettext
  - Change REINPLACE, cosmetical changes
  
  PR:		ports/179286
  Submitted by:	nemysis (self)

Modified:
  head/games/gno3dtet/Makefile
  head/games/gno3dtet/pkg-plist

Modified: head/games/gno3dtet/Makefile
==============================================================================
--- head/games/gno3dtet/Makefile	Sat Mar 22 15:43:33 2014	(r348798)
+++ head/games/gno3dtet/Makefile	Sat Mar 22 16:17:51 2014	(r348799)
@@ -3,7 +3,7 @@
 
 PORTNAME=	gno3dtet
 PORTVERSION=	1.96.1
-PORTREVISION=	11
+PORTREVISION=	12
 CATEGORIES=	games gnome
 MASTER_SITES=	http://eseb.net/ftp/gno3dtet/
 EXTRACT_SUFX=	.tgz
@@ -11,9 +11,11 @@ EXTRACT_SUFX=	.tgz
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	GNOME version of the classic 3D-ified T*tris
 
+LICENSE=	GPLv2
+
 EXTRACT_DEPENDS=	intltoolize:${PORTSDIR}/textproc/intltool
 
-USES=        pathfix gmake pkgconfig
+USES=		pathfix gmake pkgconfig
 USE_GNOME=	gnomeprefix intlhack libgnomeui librsvg2
 USE_AUTOTOOLS=	autoheader automake aclocal autoconf
 ACLOCAL_ARGS=	-I m4 -I ${ACLOCAL_DIR} -I ${LOCALBASE}/share/aclocal
@@ -22,15 +24,23 @@ CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 INSTALLS_OMF=	yes
 
-run-autotools:: run-autotools-aclocal run-autotools-autoheader \
-		run-autotools-automake run-autotools-autoconf
+OPTIONS_DEFINE=	NLS
+OPTIONS_SUB=	yes
+
+NLS_USES=	gettext
+
+.include <bsd.port.options.mk>
 
 post-extract:
 	@cd ${WRKSRC} && ${LOCALBASE}/bin/intltoolize -c -f
 
 post-patch:
-	@${REINPLACE_CMD} -e '/LIBTOOL/d ; \
-		 s|gnome-games|gno3dtet|g' ${WRKSRC}/configure.in
+	@${REINPLACE_CMD} -e '/LIBTOOL/d; \
+		s|gnome-games|gno3dtet|' ${WRKSRC}/configure.in
+
+.if ! ${PORT_OPTIONS:MNLS}
+	@${REINPLACE_CMD} -e '/^always_built_SUBDIRS/s|po||' ${WRKSRC}/Makefile.am
+.endif
 
 pre-configure:
 	@${INSTALL_SCRIPT} ${AUTOMAKE_DIR}/mkinstalldirs ${WRKSRC}

Modified: head/games/gno3dtet/pkg-plist
==============================================================================
--- head/games/gno3dtet/pkg-plist	Sat Mar 22 15:43:33 2014	(r348798)
+++ head/games/gno3dtet/pkg-plist	Sat Mar 22 16:17:51 2014	(r348799)
@@ -23,7 +23,7 @@ share/sounds/gno3dtet/new.wav
 share/sounds/gno3dtet/pause.wav
 share/sounds/gno3dtet/score.wav
 share/sounds/gno3dtet/screwd.wav
-share/locale/fr/LC_MESSAGES/gno3dtet.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gno3dtet.mo
 @dirrm share/sounds/gno3dtet
 @dirrm share/omf/gno3dtet
 @dirrm share/gnome/help/gno3dtet/C
_______________________________________________
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"