Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2013 16:43:11 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r312588 - head/print/qpdfview
Message-ID:  <201302191643.r1JGhBNN078722@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Tue Feb 19 16:43:11 2013
New Revision: 312588
URL: http://svnweb.freebsd.org/changeset/ports/312588

Log:
  - Update to version 0.4
  - Add optional support for DjVu and PostScript
  
  While here:
  - Respect CFLAGS, CXXFLAGS
  - Fix WWW line, convert tab -> space
  
  PR:		ports/176244
  Submitted by:	Veniamin Gvozdikov <g.veniamin@googlemail.com> (maintainer)

Modified:
  head/print/qpdfview/Makefile
  head/print/qpdfview/distinfo
  head/print/qpdfview/pkg-descr
  head/print/qpdfview/pkg-plist

Modified: head/print/qpdfview/Makefile
==============================================================================
--- head/print/qpdfview/Makefile	Tue Feb 19 16:36:34 2013	(r312587)
+++ head/print/qpdfview/Makefile	Tue Feb 19 16:43:11 2013	(r312588)
@@ -2,10 +2,9 @@
 # $FreeBSD$
 
 PORTNAME=	qpdfview
-PORTVERSION=	0.3.7
+PORTVERSION=	0.4
 CATEGORIES=	print
-MASTER_SITES=	https://launchpadlibrarian.net/125207295/
-DISTNAME=	${PORTNAME}-${PORTVERSION}beta1
+MASTER_SITES=	https://launchpadlibrarian.net/131409309/
 
 MAINTAINER=	g.veniamin@googlemail.com
 COMMENT=	Tabbed PDF viewer using the poppler library
@@ -15,15 +14,49 @@ LICENSE=	GPLv2
 LIB_DEPENDS=	poppler-qt4:${PORTSDIR}/graphics/poppler-qt4 \
 		cups:${PORTSDIR}/print/cups-client
 
-USE_QT4=	corelib dbus gui moc_build qmake_build rcc sql svg xml
+USE_QT4=	corelib dbus gui moc_build qmake_build rcc_build sql sql-sqlite3_run \
+		svg xml
+QMAKEFLAGS+=	QMAKE_CFLAGS_RELEASE="" QMAKE_CXXFLAGS_RELEASE=""
+
+DATADIR=	${PREFIX}/share/${PORTNAME}
 
 MAN1=		${PORTNAME}.1
 
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE=	DJVU PDF PS
+DJVU_DESC=	DjVu support
+PS_DESC=	PostScript support
+OPTIONS_DEFAULT=	PDF
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDJVU}
+PLIST_SUB+=	DJVU=""
+LIB_DEPENDS+=	djvulibre:${PORTSDIR}/graphics/djvulibre
+.else
+QMAKEFLAGS+=	"CONFIG+=without_djvu"
+PLIST_SUB+=	DJVU="@comment "
+.endif
+
+.if ${PORT_OPTIONS:MPDF}
+PLIST_SUB+=	PDF=""
+.else
+QMAKEFLAGS+=	"CONFIG+=without_pdf"
+PLIST_SUB+=	PDF="@comment "
+.endif
+
+.if ${PORT_OPTIONS:MPS}
+PLIST_SUB+=	PS=""
+LIB_DEPENDS+=	spectre:${PORTSDIR}/print/libspectre
+.else
+QMAKEFLAGS+=	"CONFIG+=without_ps"
+PLIST_SUB+=	PS="@comment "
+.endif
+
 pre-configure:
 	${REINPLACE_CMD} -e 's#/usr#${PREFIX}#g;s#${PREFIX}/share/man#${PREFIX}/man#g' \
 		${WRKSRC}/${PORTNAME}.pri
 
 do-configure:
-	cd ${WRKSRC} && ${QMAKE} ${QMAKEFLAGS}
-.include <bsd.port.post.mk>
+	cd ${WRKSRC} && ${QMAKE} ${QMAKEFLAGS} ${PORTNAME}.pro
+
+.include <bsd.port.mk>

Modified: head/print/qpdfview/distinfo
==============================================================================
--- head/print/qpdfview/distinfo	Tue Feb 19 16:36:34 2013	(r312587)
+++ head/print/qpdfview/distinfo	Tue Feb 19 16:43:11 2013	(r312588)
@@ -1,2 +1,2 @@
-SHA256 (qpdfview-0.3.7beta1.tar.gz) = 4541ea36c985bb1442329f7726fc430a93db2e364b6c303d975fc8b2d974cdce
-SIZE (qpdfview-0.3.7beta1.tar.gz) = 359083
+SHA256 (qpdfview-0.4.tar.gz) = 6191e6ae15f228bce9ac0c58dd5032122fa2986d50f7585859cd64a7fd2b5499
+SIZE (qpdfview-0.4.tar.gz) = 396479

Modified: head/print/qpdfview/pkg-descr
==============================================================================
--- head/print/qpdfview/pkg-descr	Tue Feb 19 16:36:34 2013	(r312587)
+++ head/print/qpdfview/pkg-descr	Tue Feb 19 16:43:11 2013	(r312588)
@@ -1,3 +1,3 @@
 qpdfview is a tabbed PDF viewer using the poppler library.
 
-WWW:	https://launchpad.net/qpdfview
+WWW: https://launchpad.net/qpdfview

Modified: head/print/qpdfview/pkg-plist
==============================================================================
--- head/print/qpdfview/pkg-plist	Tue Feb 19 16:36:34 2013	(r312587)
+++ head/print/qpdfview/pkg-plist	Tue Feb 19 16:43:11 2013	(r312588)
@@ -1,4 +1,7 @@
 bin/qpdfview
+%%DJVU%%lib/qpdfview/libqpdfview_djvu.so
+%%PDF%%lib/qpdfview/libqpdfview_pdf.so
+%%PS%%lib/qpdfview/libqpdfview_ps.so
 share/applications/qpdfview.desktop
 %%DATADIR%%/help.html
 %%DATADIR%%/qpdfview.svg
@@ -11,11 +14,15 @@ share/applications/qpdfview.desktop
 %%DATADIR%%/qpdfview_el.qm
 %%DATADIR%%/qpdfview_en_GB.qm
 %%DATADIR%%/qpdfview_es.qm
+%%DATADIR%%/qpdfview_eu.qm
 %%DATADIR%%/qpdfview_fi.qm
 %%DATADIR%%/qpdfview_fr.qm
 %%DATADIR%%/qpdfview_he.qm
 %%DATADIR%%/qpdfview_hr.qm
+%%DATADIR%%/qpdfview_id.qm
 %%DATADIR%%/qpdfview_it.qm
+%%DATADIR%%/qpdfview_ky.qm
+%%DATADIR%%/qpdfview_ms.qm
 %%DATADIR%%/qpdfview_my.qm
 %%DATADIR%%/qpdfview_pl.qm
 %%DATADIR%%/qpdfview_pt_BR.qm
@@ -26,5 +33,6 @@ share/applications/qpdfview.desktop
 %%DATADIR%%/qpdfview_ug.qm
 %%DATADIR%%/qpdfview_uk.qm
 %%DATADIR%%/qpdfview_zh_CN.qm
-@dirrmtry share/applications
 @dirrm %%DATADIR%%
+@dirrmtry share/applications
+@dirrmtry lib/qpdfview



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