svn commit: r335194 - in head/graphics/viewnior: . files
Rusmir Dusko
nemysis at FreeBSD.org
Fri Nov 29 16:47:04 UTC 2013
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 at gmx.ch
+# Created by: nemysis <nemysis at gmx.ch>
# $FreeBSD$
PORTNAME= viewnior
@@ -7,43 +7,33 @@ PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://cloud.github.com/downloads/xsisqox/Viewnior/
-MAINTAINER= nemysis at gmx.ch
+MAINTAINER= nemysis at 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%%
- at dirrmtry share/icons/hicolor/scalable/apps
- at dirrmtry share/icons/hicolor/scalable
- at dirrmtry share/icons/hicolor/48x48/apps
- at dirrmtry share/icons/hicolor/48x48
- at dirrmtry share/icons/hicolor/32x32/apps
- at dirrmtry share/icons/hicolor/32x32
- at dirrmtry share/icons/hicolor/24x24/apps
- at dirrmtry share/icons/hicolor/24x24
- at dirrmtry share/icons/hicolor/22x22/apps
- at dirrmtry share/icons/hicolor/22x22
- at dirrmtry share/icons/hicolor/16x16/apps
- at dirrmtry share/icons/hicolor/16x16
- at dirrmtry share/icons/hicolor
- at dirrmtry share/icons
%%NLS%%@dirrmtry share/locale/oc/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/oc
More information about the svn-ports-head
mailing list