Bug 136615 - [update] converters/pdf2djvu: update to 0.5.9
Summary: [update] converters/pdf2djvu: update to 0.5.9
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: Rong-En Fan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-09 14:20 UTC by Frank W. Josellis
Modified: 2009-08-08 17:10 UTC (History)
0 users

See Also:


Attachments
pdf2djvu.patch (2.93 KB, patch)
2009-07-09 14:20 UTC, Frank W. Josellis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frank W. Josellis 2009-07-09 14:20:04 UTC
Update 0.4.12 -> 0.5.9

Added files:
files/patch-configure

NOTE: This version optionally uses GraphicsMagick for foreground color
reduction, see the pdf2djvu manpage. I didn't care about this, I leave
it to the maintainer to decide whether GraphicsMagick should be included
as an optional dependency for pdf2djvu.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-07-09 14:20:14 UTC
Maintainer of converters/pdf2djvu,

Please note that PR ports/136615 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/136615

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2009-07-09 14:20:15 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Frank W. Josellis 2009-07-26 09:21:11 UTC
Meanwhile pdf2djvu 0.5.10 has been released.

Moreover, I tried the foreground color reduction with GraphicsMagick 1.3.5 
and it didn't work (anyway, its use is not recommended according to the 
pdf2djvu manpage). So it's safe for the moment to have the GraphicsMagick 
support completely disabled.

The below patch provides an update 0.4.12 -> 0.5.10 and builds without 
GraphicsMagick dependency.


--- patch begins here ---
diff -Nur pdf2djvu.BAK/Makefile pdf2djvu/Makefile
--- pdf2djvu.BAK/Makefile	2009-07-08 14:15:04.000000000 +0200
+++ pdf2djvu/Makefile	2009-07-26 09:10:22.000000000 +0200
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	pdf2djvu
-PORTVERSION=	0.4.12
-PORTREVISION=	3
+PORTVERSION=	0.5.10
 CATEGORIES=	converters
 MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
 DISTNAME=	${PORTNAME}_${PORTVERSION}${EXTRACT_SUFFIX}
@@ -17,14 +16,14 @@
 
 BUILD_DEPENDS=	${LOCALBASE}/include/pstreams/pstream.h:${PORTSDIR}/devel/pstreams
 LIB_DEPENDS=	poppler.4:${PORTSDIR}/graphics/poppler
+LIB_DEPENDS+=	djvulibre.22:${PORTSDIR}/graphics/djvulibre-nox11
 
+GNU_CONFIGURE=	yes
+CONFIGURE_ENV=	LIBS=${PTHREAD_LIBS}
 USE_GMAKE=	yes
-PLIST_FILES=	bin/pdf2djvu
 
-LIB_DEPENDS+=	djvulibre.22:${PORTSDIR}/graphics/djvulibre-nox11
-
-MAKE_ENV=	LDLIBS="${LDFLAGS} ${PTHREAD_LIBS}"
-MAN1=	pdf2djvu.1
+PLIST_FILES=	bin/pdf2djvu
+MAN1=		pdf2djvu.1
 MANCOMPRESSED=	no
 
 WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}
diff -Nur pdf2djvu.BAK/distinfo pdf2djvu/distinfo
--- pdf2djvu.BAK/distinfo	2008-09-22 11:59:29.000000000 +0200
+++ pdf2djvu/distinfo	2009-07-26 09:10:22.000000000 +0200
@@ -1,3 +1,3 @@
-MD5 (pdf2djvu_0.4.12.tar.gz) = af325766614f58e7373c26c6d45f04e4
-SHA256 (pdf2djvu_0.4.12.tar.gz) = 819b1427a74d90ebda8971b670a9f03d6fd5d8a9ae03dbf48c91ebaf5a769a19
-SIZE (pdf2djvu_0.4.12.tar.gz) = 55798
+MD5 (pdf2djvu_0.5.10.tar.gz) = 83f43a712a7c560d484045c3e791b104
+SHA256 (pdf2djvu_0.5.10.tar.gz) = dde12c8f4af0c7cc78eef28fcc810b055ca1c74761786bce482a307a9b1dce70
+SIZE (pdf2djvu_0.5.10.tar.gz) = 213490
diff -Nur pdf2djvu.BAK/files/patch-configure pdf2djvu/files/patch-configure
--- pdf2djvu.BAK/files/patch-configure	1970-01-01 01:00:00.000000000 +0100
+++ pdf2djvu/files/patch-configure	2009-07-26 09:10:22.000000000 +0200
@@ -0,0 +1,24 @@
+--- configure.orig	2009-07-12 12:59:06.000000000 +0200
++++ configure	2009-07-26 09:04:22.000000000 +0200
+@@ -2971,9 +2971,9 @@
+ printf 'P1 3 3 0 0 0 0 0 0 0 0 0 0' > conftest.458086.pbm
+ "$djvulibre_bin_path/cjb2" conftest.458086.pbm conftest.458086.p1.djvu
+ "$djvulibre_bin_path/cjb2" conftest.458086.pbm conftest.458086.p2.djvu
+-printf 'AT&TFORM\0\0\0\x35DJVMDIRM\0\0\0\x29\x01\0\x02\xff\xff\xc6\xbf\x8a' > conftest.458086.djvu
+-printf '\x1f\xeb\x4b\xff\x40\x8e\x37\x86\x3f\x6c\xbe\x78\x02\x3c\x93\x9b' >> conftest.458086.djvu
+-printf '\x17\x57\x16\x67\x1d\x7a\xeb\x57\xf8\xf3\x7e\x64\x32\x42\x88\xd2\x4f' >> conftest.458086.djvu
++printf 'AT&TFORM\0\0\0\065DJVMDIRM\0\0\0\051\001\0\002\377\377\306\277\212' > conftest.458086.djvu
++printf '\037\353\113\377\100\216\067\206\077\154\276\170\002\074\223\233' >> conftest.458086.djvu
++printf '\027\127\026\147\035\172\353\127\370\363\176\144\062\102\210\322\117' >> conftest.458086.djvu
+ printf '(bookmarks ("" ""))' > conftest.458086.outline
+ "$djvulibre_bin_path/djvused" -s -e 'set-outline conftest.458086.outline' conftest.458086.djvu
+ if ! "$djvulibre_bin_path/djvused" -e print-outline conftest.458086.djvu | grep '(bookmarks' > /dev/null
+@@ -3173,7 +3173,7 @@
+ fi
+ 
+ 
+-
++pkg_failed=untried; echo "disabled"
+ if test $pkg_failed = yes; then
+ 
+ if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
--- patch ends here ---
Comment 4 Rong-En Fan freebsd_committer freebsd_triage 2009-08-08 14:43:59 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rafan

I'll take it.
Comment 5 Rong-En Fan freebsd_committer freebsd_triage 2009-08-08 17:04:58 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!
Comment 6 dfilter service freebsd_committer freebsd_triage 2009-08-08 17:05:06 UTC
rafan       2009-08-08 16:04:51 UTC

  FreeBSD ports repository

  Modified files:
    converters/pdf2djvu  Makefile distinfo 
  Added files:
    converters/pdf2djvu/files patch-configure 
  Log:
  - Update to 0.5.10
  
  PR:             ports/136615
  Submitted by:   Frank W. Josellis <frank at dynamical-systems.org>
  Approved by:    maintaimer timeout (2 weeks)
  
  Revision  Changes    Path
  1.11      +6 -7      ports/converters/pdf2djvu/Makefile
  1.4       +3 -3      ports/converters/pdf2djvu/distinfo
  1.1       +24 -0     ports/converters/pdf2djvu/files/patch-configure (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"