Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Nov 2013 18:39:28 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r333146 - head/misc/gonvert
Message-ID:  <201311071839.rA7IdSSS006031@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Thu Nov  7 18:39:28 2013
New Revision: 333146
URL: http://svnweb.freebsd.org/changeset/ports/333146

Log:
  - Update to 0.2.34
  - Change maintainer email to @FreeBSD.org
  - Add DOCS and NLS Options
  - Support STAGEDIR and add OPTIONS_SUB
  
  Approved by:	pawel / wg (mentors, implicit)

Modified:
  head/misc/gonvert/Makefile
  head/misc/gonvert/distinfo

Modified: head/misc/gonvert/Makefile
==============================================================================
--- head/misc/gonvert/Makefile	Thu Nov  7 17:56:46 2013	(r333145)
+++ head/misc/gonvert/Makefile	Thu Nov  7 18:39:28 2013	(r333146)
@@ -2,11 +2,11 @@
 # $FreeBSD$
 
 PORTNAME=	gonvert
-PORTVERSION=	0.2.33
+PORTVERSION=	0.2.34
 CATEGORIES=	misc python gnome
 MASTER_SITES=	http://www.unihedron.com/projects/gonvert/downloads/
 
-MAINTAINER=	nemysis@gmx.ch
+MAINTAINER=	nemysis@FreeBSD.org
 COMMENT=	Conversion utility that allows conversion between many units
 
 LICENSE=	GPLv2
@@ -17,15 +17,14 @@ NO_BUILD=	yes
 
 PORTDOCS=	CHANGELOG FAQ README THANKS TODO
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS NLS
 
-.if ${PORT_OPTIONS:MNLS}
-USES+=		gettext
-PLIST_SUB+=	NLS=""
-.else
-PLIST_SUB+=	NLS="@comment "
-.endif
+OPTIONS_SUB=	yes
+
+NLS_CONFIGURE_ENABLE=	nls
+NLS_USES=	gettext
+
+.include <bsd.port.options.mk>
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!/usr/bin/env python|g ; \
@@ -33,23 +32,22 @@ post-patch:
 		 s|/\.\./pixmaps/|/pixmaps/|g' ${WRKSRC}/gonvert
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/gonvert ${PREFIX}/bin
-	${INSTALL_DATA} ${WRKSRC}/gonvert.desktop ${PREFIX}/share/applications
-	@${MKDIR} ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/gonvert.glade ${DATADIR}
-	@${MKDIR} ${DATADIR}/pixmaps
-	${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${DATADIR}/pixmaps
-	${LN} -sf ${DATADIR}/pixmaps/gonvert.png ${PREFIX}/share/pixmaps
+	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+	@${MKDIR} ${STAGEDIR}${DESKTOPDIR}
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.glade ${STAGEDIR}${DATADIR}
+	@${MKDIR} ${STAGEDIR}${DATADIR}/pixmaps
+	${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${STAGEDIR}${DATADIR}/pixmaps/
+	${LN} -sf ${DATADIR}/pixmaps/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
 
 .if ${PORT_OPTIONS:MNLS}
-	@${MKDIR} ${PREFIX}/share/locale/pl/LC_MESSAGES
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/pl/LC_MESSAGES
 	${INSTALL_DATA} ${WRKSRC}/i18n/pl_messages.gmo \
-		${PREFIX}/share/locale/pl/LC_MESSAGES/gonvert.mo
+		${STAGEDIR}${PREFIX}/share/locale/pl/LC_MESSAGES/gonvert.mo
 .endif
 
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/misc/gonvert/distinfo
==============================================================================
--- head/misc/gonvert/distinfo	Thu Nov  7 17:56:46 2013	(r333145)
+++ head/misc/gonvert/distinfo	Thu Nov  7 18:39:28 2013	(r333146)
@@ -1,2 +1,2 @@
-SHA256 (gonvert-0.2.33.tar.gz) = 64bca246019e3704912a962f7d8f54bfadca78b746d8b08935c7ed456af52c27
-SIZE (gonvert-0.2.33.tar.gz) = 124208
+SHA256 (gonvert-0.2.34.tar.gz) = deed2542bed898f1202b6e9a55f7bbd27714ffb94985c0cdf034823bfb2832f4
+SIZE (gonvert-0.2.34.tar.gz) = 124341



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311071839.rA7IdSSS006031>