Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2013 16:47:04 +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: r335194 - in head/graphics/viewnior: . files
Message-ID:  <201311291647.rATGl45k019419@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Fri Nov 29 16:47:03 2013
New Revision: 335194
URL: http://svnweb.freebsd.org/changeset/ports/335194

Log:
  - Change Makefile header
  - Change maintainer email to @FreeBSD.org
  - USES shared-mime-info instead of misc/shared-mime-info
  - Add DOCS Option
  - Support STAGEDIR and add OPTIONS_SUB
  - Use REINPLACE_CMD instead of simple patches
  - Change pkg-plist, remove mtree
  
  Approved by:	pawel / wg (mentors, implicit)

Deleted:
  head/graphics/viewnior/files/
Modified:
  head/graphics/viewnior/Makefile
  head/graphics/viewnior/pkg-plist

Modified: head/graphics/viewnior/Makefile
==============================================================================
--- head/graphics/viewnior/Makefile	Fri Nov 29 16:17:10 2013	(r335193)
+++ head/graphics/viewnior/Makefile	Fri Nov 29 16:47:03 2013	(r335194)
@@ -1,4 +1,4 @@
-# Created by: nemysis@gmx.ch
+# Created by: nemysis <nemysis@gmx.ch>
 # $FreeBSD$
 
 PORTNAME=	viewnior
@@ -7,43 +7,33 @@ PORTREVISION=	2
 CATEGORIES=	graphics
 MASTER_SITES=	http://cloud.github.com/downloads/xsisqox/Viewnior/
 
-MAINTAINER=	nemysis@gmx.ch
+MAINTAINER=	nemysis@FreeBSD.org
 COMMENT=	Fast and simple image viewer
 
 LICENSE=	GPLv3
 
-BUILD_DEPENDS=	update-mime-database:${PORTSDIR}/misc/shared-mime-info
-RUN_DEPENDS=	update-mime-database:${PORTSDIR}/misc/shared-mime-info
-
-GNU_CONFIGURE=	yes
-USES=		gmake pkgconfig
+USES=		gmake pkgconfig shared-mime-info
 USE_AUTOTOOLS=	autoconf
+GNU_CONFIGURE=	yes
 USE_GNOME=	glib20 gtk20
 INSTALLS_ICONS=	yes
 
-MAN1=		viewnior.1
-
 PORTDOCS=	AUTHORS ChangeLog NEWS README TODO
 
-OPTIONS_DEFINE=	NLS
-OPTIONS_DEFAULT=	NLS
+OPTIONS_DEFINE=	DOCS NLS
+OPTIONS_SUB=	yes
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+NLS_CONFIGURE_ENABLE=	nls
+NLS_USES=	gettext
 
-.if ${PORT_OPTIONS:MNLS}
-USES+=		gettext
-PLIST_SUB+=	NLS=""
-.else
-CONFIGURE_ARGS+=	--disable-nls
-PLIST_SUB+=	NLS="@comment "
-.endif
+post-patch:
+	@${REINPLACE_CMD} -e 's|$$(prefix)/$$(DATADIRNAME)/locale|$$(datarootdir)/locale|' \
+		${WRKSRC}/po/Makefile.in.in
 
 post-install:
-	${INSTALL_MAN} ${WRKSRC}/man/${MAN1} ${MAN1PREFIX}/man/man1
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
+	${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
+
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/graphics/viewnior/pkg-plist
==============================================================================
--- head/graphics/viewnior/pkg-plist	Fri Nov 29 16:17:10 2013	(r335193)
+++ head/graphics/viewnior/pkg-plist	Fri Nov 29 16:47:03 2013	(r335194)
@@ -1,4 +1,12 @@
 bin/viewnior
+man/man1/viewnior.1.gz
+share/applications/viewnior.desktop
+share/icons/hicolor/16x16/apps/viewnior.png
+share/icons/hicolor/22x22/apps/viewnior.png
+share/icons/hicolor/24x24/apps/viewnior.png
+share/icons/hicolor/32x32/apps/viewnior.png
+share/icons/hicolor/48x48/apps/viewnior.png
+share/icons/hicolor/scalable/apps/viewnior.svg
 %%NLS%%share/locale/bg/LC_MESSAGES/viewnior.mo
 %%NLS%%share/locale/cs/LC_MESSAGES/viewnior.mo
 %%NLS%%share/locale/da/LC_MESSAGES/viewnior.mo
@@ -25,13 +33,6 @@ bin/viewnior
 %%NLS%%share/locale/tr/LC_MESSAGES/viewnior.mo
 %%NLS%%share/locale/uk/LC_MESSAGES/viewnior.mo
 %%NLS%%share/locale/zh_CN/LC_MESSAGES/viewnior.mo
-share/applications/viewnior.desktop
-share/icons/hicolor/16x16/apps/viewnior.png
-share/icons/hicolor/22x22/apps/viewnior.png
-share/icons/hicolor/24x24/apps/viewnior.png
-share/icons/hicolor/32x32/apps/viewnior.png
-share/icons/hicolor/48x48/apps/viewnior.png
-share/icons/hicolor/scalable/apps/viewnior.svg
 %%DATADIR%%/pixmaps/object-flip-horizontal.png
 %%DATADIR%%/pixmaps/object-flip-vertical.png
 %%DATADIR%%/pixmaps/object-rotate-left.png
@@ -40,19 +41,5 @@ share/icons/hicolor/scalable/apps/viewni
 %%DATADIR%%/vnr-preferences-dialog.ui
 @dirrm %%DATADIR%%/pixmaps
 @dirrm %%DATADIR%%
-@dirrmtry share/icons/hicolor/scalable/apps
-@dirrmtry share/icons/hicolor/scalable
-@dirrmtry share/icons/hicolor/48x48/apps
-@dirrmtry share/icons/hicolor/48x48
-@dirrmtry share/icons/hicolor/32x32/apps
-@dirrmtry share/icons/hicolor/32x32
-@dirrmtry share/icons/hicolor/24x24/apps
-@dirrmtry share/icons/hicolor/24x24
-@dirrmtry share/icons/hicolor/22x22/apps
-@dirrmtry share/icons/hicolor/22x22
-@dirrmtry share/icons/hicolor/16x16/apps
-@dirrmtry share/icons/hicolor/16x16
-@dirrmtry share/icons/hicolor
-@dirrmtry share/icons
 %%NLS%%@dirrmtry share/locale/oc/LC_MESSAGES
 %%NLS%%@dirrmtry share/locale/oc



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