Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Nov 2013 21:26:32 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r332410 - head/cad/repsnapper
Message-ID:  <201311012126.rA1LQWxc058932@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Fri Nov  1 21:26:32 2013
New Revision: 332410
URL: http://svnweb.freebsd.org/changeset/ports/332410

Log:
  - Update from 2.2.0b3 to 2.3.0a4
  - Use options helpers
  - Add stage support
  
  PR:		ports/182887
  Submitted by:	Martin Dieringer <martin.dieringer@gmx.de> (maintainer)

Modified:
  head/cad/repsnapper/Makefile
  head/cad/repsnapper/distinfo
  head/cad/repsnapper/pkg-plist

Modified: head/cad/repsnapper/Makefile
==============================================================================
--- head/cad/repsnapper/Makefile	Fri Nov  1 21:21:40 2013	(r332409)
+++ head/cad/repsnapper/Makefile	Fri Nov  1 21:26:32 2013	(r332410)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	repsnapper
-PORTVERSION=	2.2.0b3
-PORTREVISION=	1
+PORTVERSION=	2.3.0a4
 CATEGORIES=	cad
 MASTER_SITES=	https://codeload.github.com/timschmidt/repsnapper/tar.gz/
 DISTNAME=	${PORTVERSION}
@@ -41,17 +40,12 @@ USE_GL=		gl
 USE_AUTOTOOLS=	automake libtool
 USE_XORG=	ice pixman sm x11 xau xcb xcomposite xcursor xdamage xdmcp \
 		xext xfixes xi xinerama xmu xrandr xrender xt xxf86vm
+INSTALLS_ICONS=	yes
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+=		gettext
-PLIST_SUB+=	NLS=""
-.else
-CONFIGURE_ARGS+=	--disable-nls
-PLIST_SUB+=	NLS="@comment "
-.endif
+OPTIONS_DEFINE=	NLS
+OPTIONS_SUB=	yes
+NLS_CONFIGURE_ENABLE=	nls
+NLS_USES=	gettext
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 INSTALL_TARGET=	install-strip
@@ -67,12 +61,9 @@ post-configure:
 		${WRKSRC}/po/Makefile
 
 post-install:
-	${MKDIR} ${PREFIX}/etc/xdg/repsnapper
+	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/xdg/repsnapper
 	${INSTALL_DATA} ${WRKSRC}/src/repsnapper.conf \
-		${PREFIX}/etc/xdg/repsnapper/repsnapper.conf.sample
-	@if [ ! -f ${PREFIX}/etc/xdg/repsnapper/repsnapper.conf ]; then \
-		${CP} -p ${PREFIX}/etc/xdg/repsnapper/repsnapper.conf.sample \
-			${PREFIX}/etc/xdg/repsnapper/repsnapper.conf ; \
-	fi
+		${STAGEDIR}${PREFIX}/etc/xdg/repsnapper/repsnapper.conf.sample
+
 
 .include <bsd.port.mk>

Modified: head/cad/repsnapper/distinfo
==============================================================================
--- head/cad/repsnapper/distinfo	Fri Nov  1 21:21:40 2013	(r332409)
+++ head/cad/repsnapper/distinfo	Fri Nov  1 21:26:32 2013	(r332410)
@@ -1,2 +1,2 @@
-SHA256 (repsnapper/2.2.0b3) = 2f55ce6bc19bba84bb6dbcda12f6546fa306fa163527d009ea8d730b85d80513
-SIZE (repsnapper/2.2.0b3) = 1314244
+SHA256 (repsnapper/2.3.0a4) = 5ec82eb6ea7db06d4d8acc82f3e3b01fdee5bf9006880ec34fe244dc96420d53
+SIZE (repsnapper/2.3.0a4) = 1310808

Modified: head/cad/repsnapper/pkg-plist
==============================================================================
--- head/cad/repsnapper/pkg-plist	Fri Nov  1 21:21:40 2013	(r332409)
+++ head/cad/repsnapper/pkg-plist	Fri Nov  1 21:26:32 2013	(r332410)
@@ -1,14 +1,14 @@
 bin/repsnapper
 @unexec if cmp -s %D/etc/xdg/repsnapper/repsnapper.conf.sample %D/etc/xdg/repsnapper/repsnapper.conf; then rm -f %D/etc/xdg/repsnapper/repsnapper.conf; fi
 etc/xdg/repsnapper/repsnapper.conf.sample
-@exec if [ ! -f %D/etc/xdg/repsnapper/repsnapper.conf ] ; then cp -p %D/%F %B/xdg/repsnapper/repsnapper.conf; fi
+@exec if [ ! -f %D/etc/xdg/repsnapper/repsnapper.conf ] ; then cp -p %D/%F %B/repsnapper.conf; fi
 share/applications/repsnapper.desktop
-share/locale/en_GB/LC_MESSAGES/repsnapper.mo
-share/locale/de_DE/LC_MESSAGES/repsnapper.mo
-share/repsnapper/repsnapper.ui
-share/repsnapper/repsnapper.svg
+%%NLS%%share/locale/en_GB/LC_MESSAGES/repsnapper.mo
+%%NLS%%share/locale/de_DE/LC_MESSAGES/repsnapper.mo
+%%DATADIR%%/repsnapper.ui
+%%DATADIR%%/repsnapper.svg
 share/icons/hicolor/scalable/apps/repsnapper.svg
 @dirrmtry etc/xdg/repsnapper
-@dirrmtry share/locale/de_DE/LC_MESSAGES
-@dirrmtry share/locale/de_DE
-@dirrm share/repsnapper
+%%NLS%%@dirrmtry share/locale/de_DE/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/de_DE
+@dirrm %%DATADIR%%



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