svn commit: r356757 - head/graphics/epdfview
Baptiste Daroussin
bapt at FreeBSD.org
Fri Jun 6 10:09:06 UTC 2014
Author: bapt
Date: Fri Jun 6 10:09:05 2014
New Revision: 356757
URL: http://svnweb.freebsd.org/changeset/ports/356757
QAT: https://qat.redports.org/buildarchive/r356757/
Log:
Support stage [1]
While here:
- USES=desktop-file-utils
- Use options helpers
PR: 189680
Submitted by: Matthieu Volat
Modified:
head/graphics/epdfview/Makefile
head/graphics/epdfview/pkg-plist
Modified: head/graphics/epdfview/Makefile
==============================================================================
--- head/graphics/epdfview/Makefile Fri Jun 6 09:47:40 2014 (r356756)
+++ head/graphics/epdfview/Makefile Fri Jun 6 10:09:05 2014 (r356757)
@@ -3,50 +3,36 @@
PORTNAME= epdfview
PORTVERSION= 0.1.8
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= graphics print gnome
MASTER_SITES= http://trac.emma-soft.com/epdfview/chrome/site/releases/ \
http://mirror.slitaz.org/sources/packages/e/
MAINTAINER= sylvio at FreeBSD.org
-COMMENT= A lightweight PDF document viewer
+COMMENT= Lightweight PDF document viewer
LICENSE= GPLv2
BUILD_DEPENDS= cppunit-config:${PORTSDIR}/devel/cppunit
LIB_DEPENDS= libpoppler-glib.so:${PORTSDIR}/graphics/poppler-glib
-USE_BZIP2= yes
GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
-USES= iconv gmake pkgconfig
+USES= desktop-file-utils iconv gmake pkgconfig tar:bzip2
USE_GNOME= gtk20 intlhack
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= CUPS NLS
+OPTIONS_SUB= yes
-MAN1= epdfview.1
+CUPS_CONFIGURE_WITH= cups
+CUPS_LIB_DEPENDS= libcups.so:${PORTSDIR}/print/cups-client
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MCUPS}
-CONFIGURE_ARGS+=--with-cups
-LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-client
-.else
-CONFIGURE_ARGS+=--without-cups
-.endif
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-.else
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
+NLS_USES= gettext
+NLS_CPPFLAGS= -I${LOCALBASE}/include
+NLS_LDFLAGS= -L${LOCALBASE}/lib
+NLS_CONFIGURE_ENABLE= nls
post-patch:
@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
@@ -54,7 +40,6 @@ post-patch:
post-install:
${REINPLACE_CMD} -e 's,Icon.*,Icon=${DATADIR}/pixmaps/icon_epdfview-48.png,' ${WRKSRC}/data/${PORTNAME}.desktop
- ${INSTALL_DATA} ${WRKSRC}/data/${PORTNAME}.desktop ${PREFIX}/share/applications/
- @-update-desktop-database
+ ${INSTALL_DATA} ${WRKSRC}/data/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/
.include <bsd.port.mk>
Modified: head/graphics/epdfview/pkg-plist
==============================================================================
--- head/graphics/epdfview/pkg-plist Fri Jun 6 09:47:40 2014 (r356756)
+++ head/graphics/epdfview/pkg-plist Fri Jun 6 10:09:05 2014 (r356757)
@@ -1,4 +1,5 @@
bin/epdfview
+man/man1/epdfview.1.gz
%%NLS%%share/locale/ar/LC_MESSAGES/epdfview.mo
%%NLS%%share/locale/ca/LC_MESSAGES/epdfview.mo
%%NLS%%share/locale/cs/LC_MESSAGES/epdfview.mo
More information about the svn-ports-head
mailing list