aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-06-06 18:09:05 +0800
committerbapt <bapt@FreeBSD.org>2014-06-06 18:09:05 +0800
commit054566ebd107ea89239a26acbab296ea8081ada9 (patch)
treecff2e8a8417a16526fc55aed7e4c2889768bb8aa
parent0f5a5cd3681d2b51fb93e2f8b6c01e3069fe5350 (diff)
downloadfreebsd-ports-gnome-054566ebd107ea89239a26acbab296ea8081ada9.tar.gz
freebsd-ports-gnome-054566ebd107ea89239a26acbab296ea8081ada9.tar.zst
freebsd-ports-gnome-054566ebd107ea89239a26acbab296ea8081ada9.zip
Support stage [1]
While here: - USES=desktop-file-utils - Use options helpers PR: 189680 Submitted by: Matthieu Volat
-rw-r--r--graphics/epdfview/Makefile37
-rw-r--r--graphics/epdfview/pkg-plist1
2 files changed, 12 insertions, 26 deletions
diff --git a/graphics/epdfview/Makefile b/graphics/epdfview/Makefile
index 2f03c104943e..18b89a8280bb 100644
--- a/graphics/epdfview/Makefile
+++ b/graphics/epdfview/Makefile
@@ -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@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>
diff --git a/graphics/epdfview/pkg-plist b/graphics/epdfview/pkg-plist
index 5850378e5c2f..298d0b25c2db 100644
--- a/graphics/epdfview/pkg-plist
+++ b/graphics/epdfview/pkg-plist
@@ -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