Bug 176244 - [update]: print/qpdfview up to 0.4
Summary: [update]: print/qpdfview up to 0.4
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-18 15:30 UTC by Veniamin
Modified: 2013-02-19 16:50 UTC (History)
0 users

See Also:


Attachments
file.diff (3.35 KB, patch)
2013-02-18 15:30 UTC, Veniamin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Veniamin 2013-02-18 15:30:00 UTC
Update to latest version with support djvu and post script.
Comment 1 dfilter service freebsd_committer freebsd_triage 2013-02-19 16:43:25 UTC
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
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 2 Pawel Pekala freebsd_committer freebsd_triage 2013-02-19 16:43:40 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!