Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Dec 2012 04:00:51 +0000 (UTC)
From:      Beech Rintoul <beech@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r308409 - head/misc/gonvert
Message-ID:  <201212070400.qB740pfo003688@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: beech
Date: Fri Dec  7 04:00:51 2012
New Revision: 308409
URL: http://svnweb.freebsd.org/changeset/ports/308409

Log:
  Feature safe: yes
  - OptionsNG, added license, changed comment, NLS.
  - Pass maintainership to submitter.
  
  PR:		ports/174082
  Submitted by:	nemysis <nemysis@gmx.ch>

Modified:
  head/misc/gonvert/Makefile
  head/misc/gonvert/pkg-descr
  head/misc/gonvert/pkg-plist

Modified: head/misc/gonvert/Makefile
==============================================================================
--- head/misc/gonvert/Makefile	Fri Dec  7 01:46:37 2012	(r308408)
+++ head/misc/gonvert/Makefile	Fri Dec  7 04:00:51 2012	(r308409)
@@ -8,18 +8,30 @@
 
 PORTNAME=	gonvert
 PORTVERSION=	0.2.25
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	misc python gnome
 MASTER_SITES=	http://www.unihedron.com/projects/gonvert/downloads/
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A conversion utility that allows conversion between many units
+MAINTAINER=	nemysis@gmx.ch
+COMMENT=	Conversion utility that allows conversion between many units
+
+LICENSE=	GPLv2
 
 USE_GNOME=	pygtk2
 USE_PYTHON=	yes
-USE_GETTEXT=	yes
 NO_BUILD=	yes
 
+PORTDOCS=	CHANGELOG FAQ README THANKS TODO
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USE_GETTEXT=	yes
+PLIST_SUB+=	NLS=""
+.else
+PLIST_SUB+=	NLS="@comment "
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!/usr/bin/env python|g ; \
 		 s|/usr/share|${PREFIX}/share|g ; \
@@ -35,14 +47,16 @@ do-install:
 	${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${DATADIR}/pixmaps
 	@${MKDIR} ${PREFIX}/share/pixmaps
 	${LN} -sf ${DATADIR}/pixmaps/gonvert.png ${PREFIX}/share/pixmaps
+
+.if ${PORT_OPTIONS:MNLS}
 	@${MKDIR} ${PREFIX}/share/locale/pl/LC_MESSAGES
 	${INSTALL_DATA} ${WRKSRC}/i18n/pl_messages.gmo \
 		${PREFIX}/share/locale/pl/LC_MESSAGES/gonvert.mo
-.if !defined(NOPORTDOCS)
+.endif
+
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-.for file in CHANGELOG FAQ README THANKS TODO
-	${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
-.endfor
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>

Modified: head/misc/gonvert/pkg-descr
==============================================================================
--- head/misc/gonvert/pkg-descr	Fri Dec  7 01:46:37 2012	(r308408)
+++ head/misc/gonvert/pkg-descr	Fri Dec  7 04:00:51 2012	(r308409)
@@ -1,15 +1,16 @@
 gonvert is a conversion utility that allows conversion between many units
-like CGS, Ancient, Imperial with many categories like length, mass,
-numbers, etc. All units converted values shown at once as you type. Easy
-to add/change your own units.
+like CGS, Ancient, Imperial with many categories like length, mass, numbers,
+etc. All units converted values shown at once as you type. Easy to add/change
+your own units.
 
 Features:
 
-   - 38 categories, 698 units.
-   - All units converted values shown at once as you type. 
-   - Descriptions for many units. 
-   - Sort Units or values. 
-   - Fully OPEN source so that you can add your own custom calculations
-     and descriptions. 
+    - 51 categories, 981 units. See the entire list here.
+    - All units converted values shown at once as you type.
+    - Descriptions for many units.
+    - Sort by Unit Name, Value, or Unit symbol.
+    - Find Units.
+    - Fully OPEN source so that you can add your own custom calculations
+      and descriptions.
 
 WWW: http://www.unihedron.com/projects/gonvert/

Modified: head/misc/gonvert/pkg-plist
==============================================================================
--- head/misc/gonvert/pkg-plist	Fri Dec  7 01:46:37 2012	(r308408)
+++ head/misc/gonvert/pkg-plist	Fri Dec  7 04:00:51 2012	(r308409)
@@ -1,16 +1,10 @@
 bin/gonvert
 share/applications/gonvert.desktop
-%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
-%%PORTDOCS%%%%DOCSDIR%%/FAQ
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/THANKS
-%%PORTDOCS%%%%DOCSDIR%%/TODO
 %%DATADIR%%/gonvert.glade
-%%DATADIR%%/pixmaps/gonvert.png
 %%DATADIR%%/pixmaps/gonvert-icon_alternative.png
-share/locale/pl/LC_MESSAGES/gonvert.mo
+%%DATADIR%%/pixmaps/gonvert.png
+%%NLS%%share/locale/pl/LC_MESSAGES/gonvert.mo
 share/pixmaps/gonvert.png
 @dirrm %%DATADIR%%/pixmaps
 @dirrm %%DATADIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
 @dirrmtry share/applications



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