On Mon, Jan 14, 2008 at 03:32:52PM -0800, Jeremy Evans wrote: > On 11/14 08:56, Landry Breuil wrote: > > On Tue, Nov 13, 2007 at 02:38:38PM -0800, Jeremy Evans wrote: > > > This diff adds a no_x11 flavor to textproc/xpdf. This is necessary if > > > you want to use the pdftotext program without X being installed. This > > > patch is the same is one sent last week, update to -current for the > > > recent security patch to xpdf. > > > > > > Tested on i386. Please test and commit. > > > > We (bernd and i) had a look at your previous patch, and it seems to make > > more sense to have a multi-packages with xpdf-main and xpdf-utils, the > > latter > > containing what corresponds to your no_x11 flavor. > > An updated diff should appear soon, there is only a little issue about > > upgrading from xpdf to xpdf-main+xpdf-utils which leads to conflicts. > > I agree, multi-packages make more sense. I'm not sure if you had time > to work on a diff, so I prepared one. It is attached. Hopefully we can > work out the upgrade conflicts.
Ah, yes, bernd@ sent me a diff a while ago about this one, with a @pkgpath marker to solve the update/conflicts. It also moves pdftops to -main package, i'm not sure if it's needed.. and -main doesn't run_depends on -utils. xpdf users, what do you think about it ? Is it worth making this MULTI_PACKAGES ? Attached diff needs comments and feedback. Landry > > Thanks, > Jeremy > Index: Makefile > =================================================================== > RCS file: /cvs/ports/textproc/xpdf/Makefile,v > retrieving revision 1.57 > diff -u -r1.57 Makefile > --- Makefile 9 Nov 2007 07:15:12 -0000 1.57 > +++ Makefile 14 Jan 2008 23:27:50 -0000 > @@ -1,9 +1,11 @@ > # $OpenBSD: Makefile,v 1.57 2007/11/09 07:15:12 bernd Exp $ > > -COMMENT= PDF viewer for X11 > +COMMENT-main= PDF viewer for X11 > +COMMENT-utils= PDF conversion tools > > DISTNAME= xpdf-3.02 > -PKGNAME= xpdf-3.02pl2 > +PKGNAME-main= xpdf-main-3.02pl2p0 > +PKGNAME-utils= xpdf-utils-3.02pl2 > CATEGORIES= textproc x11 > > MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \ > @@ -12,6 +14,7 @@ > PATCHFILES= xpdf-3.02pl1.patch xpdf-3.02pl2.patch > PATCH_DIST_STRIP=-p1 > > +MULTI_PACKAGES= -main -utils > HOMEPAGE= http://www.foolabs.com/xpdf/ > > LIB_DEPENDS+= t1.>=3::devel/t1lib > @@ -22,8 +25,8 @@ > PERMIT_PACKAGE_FTP= Yes > PERMIT_DISTFILES_CDROM= Yes > PERMIT_DISTFILES_FTP= Yes > -WANTLIB= ICE SM X11 Xext Xp Xpm Xt c freetype m pthread \ > - stdc++ z > +WANTLIB-utils= c pthread stdc++ freetype z m > +WANTLIB-main= ${WANTLIB-utils} ICE SM X11 Xext Xp Xpm Xt > > USE_X11= Yes > USE_GMAKE= Yes > Index: pkg/DESCR > =================================================================== > RCS file: pkg/DESCR > diff -N pkg/DESCR > --- pkg/DESCR 15 Dec 2003 21:55:33 -0000 1.6 > +++ /dev/null 1 Jan 1970 00:00:00 -0000 > @@ -1,3 +0,0 @@ > -Xpdf is an open source viewer for Portable Document Format (PDF) files. > -The Xpdf project also includes a PDF text extractor, PDF-to-PostScript > -converter, and various other utilities. > Index: pkg/DESCR-main > =================================================================== > RCS file: pkg/DESCR-main > diff -N pkg/DESCR-main > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ pkg/DESCR-main 14 Jan 2008 23:27:50 -0000 > @@ -0,0 +1 @@ > +Xpdf is an open source viewer for Portable Document Format (PDF) files. > Index: pkg/DESCR-utils > =================================================================== > RCS file: pkg/DESCR-utils > diff -N pkg/DESCR-utils > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ pkg/DESCR-utils 14 Jan 2008 23:27:50 -0000 > @@ -0,0 +1,3 @@ > +These are various command line tools distributed by the Xpdf project, > +including a PDF text extractor, PDF-to-PostScript converter, and other > +utilities. > Index: pkg/PLIST > =================================================================== > RCS file: pkg/PLIST > diff -N pkg/PLIST > --- pkg/PLIST 15 Sep 2004 18:44:09 -0000 1.9 > +++ /dev/null 1 Jan 1970 00:00:00 -0000 > @@ -1,19 +0,0 @@ > [EMAIL PROTECTED] $OpenBSD: PLIST,v 1.9 2004/09/15 18:44:09 espie Exp $ > -bin/pdffonts > -bin/pdfimages > -bin/pdfinfo > -bin/pdftoppm > -bin/pdftops > -bin/pdftotext > -bin/xpdf > [EMAIL PROTECTED] man/man1/pdffonts.1 > [EMAIL PROTECTED] man/man1/pdfimages.1 > [EMAIL PROTECTED] man/man1/pdfinfo.1 > [EMAIL PROTECTED] man/man1/pdftoppm.1 > [EMAIL PROTECTED] man/man1/pdftops.1 > [EMAIL PROTECTED] man/man1/pdftotext.1 > [EMAIL PROTECTED] man/man1/xpdf.1 > [EMAIL PROTECTED] man/man5/xpdfrc.5 > -share/examples/xpdf/ > -share/examples/xpdf/xpdfrc > [EMAIL PROTECTED] ${SYSCONFDIR}/xpdfrc > Index: pkg/PLIST-main > =================================================================== > RCS file: pkg/PLIST-main > diff -N pkg/PLIST-main > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ pkg/PLIST-main 14 Jan 2008 23:27:50 -0000 > @@ -0,0 +1,5 @@ > [EMAIL PROTECTED] $OpenBSD$ > +bin/pdftoppm > +bin/xpdf > [EMAIL PROTECTED] man/man1/pdftoppm.1 > [EMAIL PROTECTED] man/man1/xpdf.1 > Index: pkg/PLIST-utils > =================================================================== > RCS file: pkg/PLIST-utils > diff -N pkg/PLIST-utils > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ pkg/PLIST-utils 14 Jan 2008 23:27:50 -0000 > @@ -0,0 +1,15 @@ > [EMAIL PROTECTED] $OpenBSD: PLIST,v 1.9 2004/09/15 18:44:09 espie Exp $ > +bin/pdffonts > +bin/pdfimages > +bin/pdfinfo > +bin/pdftops > +bin/pdftotext > [EMAIL PROTECTED] man/man1/pdffonts.1 > [EMAIL PROTECTED] man/man1/pdfimages.1 > [EMAIL PROTECTED] man/man1/pdfinfo.1 > [EMAIL PROTECTED] man/man1/pdftops.1 > [EMAIL PROTECTED] man/man1/pdftotext.1 > [EMAIL PROTECTED] man/man5/xpdfrc.5 > +share/examples/xpdf/ > +share/examples/xpdf/xpdfrc > [EMAIL PROTECTED] ${SYSCONFDIR}/xpdfrc
=================================================================== RCS file: /home/OpenBSD/cvs/ports/textproc/xpdf/Makefile,v retrieving revision 1.57 diff -u -p -r1.57 Makefile --- Makefile 9 Nov 2007 07:15:12 -0000 1.57 +++ Makefile 23 Dec 2007 15:42:37 -0000 @@ -1,9 +1,13 @@ # $OpenBSD: Makefile,v 1.57 2007/11/09 07:15:12 bernd Exp $ -COMMENT= PDF viewer for X11 +COMMENT-main= PDF viewer for X11 +COMMENT-utils= PDF utils for the console -DISTNAME= xpdf-3.02 -PKGNAME= xpdf-3.02pl2 +VERSION= 3.02 +PATCHLEVEL= pl2 +DISTNAME= xpdf-${VERSION} +PKGNAME-main= xpdf-${VERSION}${PATCHLEVEL}p0 +PKGNAME-utils= xpdf-utils-${VERSION}${PATCHLEVEL} CATEGORIES= textproc x11 MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \ @@ -14,16 +18,21 @@ PATCH_DIST_STRIP=-p1 HOMEPAGE= http://www.foolabs.com/xpdf/ -LIB_DEPENDS+= t1.>=3::devel/t1lib -RUN_DEPENDS+= ::print/ghostscript/gnu-fonts +LIB_DEPENDS-main= t1.>=3::devel/t1lib ${LIB_DEPENDS} +LIB_DEPENDS-utils= +RUN_DEPENDS-utils= ::print/ghostscript/gnu-fonts # GPL PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes -WANTLIB= ICE SM X11 Xext Xp Xpm Xt c freetype m pthread \ - stdc++ z +WANTLIB= c m pthread stdc++ z + +WANTLIB-main= ${WANTLIB} ICE SM X11 Xext Xp Xpm Xt freetype +WANTLIB-utils= ${WANTLIB} + +MULTI_PACKAGES= -main -utils USE_X11= Yes USE_GMAKE= Yes Index: patches/patch-Makefile_in =================================================================== RCS file: patches/patch-Makefile_in diff -N patches/patch-Makefile_in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-Makefile_in 12 Nov 2007 18:48:43 -0000 @@ -0,0 +1,17 @@ +$OpenBSD$ +--- Makefile.in.orig Mon Nov 12 19:48:32 2007 ++++ Makefile.in Mon Nov 12 19:48:32 2007 +@@ -94,13 +94,6 @@ install: dummy + $(INSTALL_DATA) $(srcdir)/doc/pdfimages.1 $(DESTDIR)@mandir@/man1/pdfimages.1 + -mkdir -p $(DESTDIR)@mandir@/man5 + $(INSTALL_DATA) $(srcdir)/doc/xpdfrc.5 $(DESTDIR)@mandir@/man5/xpdfrc.5 +- -mkdir -p $(DESTDIR)@sysconfdir@ +- @if test ! -f $(DESTDIR)@sysconfdir@/xpdfrc; then \ +- echo "$(INSTALL_DATA) $(srcdir)/doc/sample-xpdfrc $(DESTDIR)@sysconfdir@/xpdfrc"; \ +- $(INSTALL_DATA) $(srcdir)/doc/sample-xpdfrc $(DESTDIR)@sysconfdir@/xpdfrc; \ +- else \ +- echo "# not overwriting the existing $(DESTDIR)@sysconfdir@/xpdfrc"; \ +- fi + + clean: + -cd goo; $(MAKE) clean Index: pkg/DESCR =================================================================== RCS file: pkg/DESCR diff -N pkg/DESCR --- pkg/DESCR 15 Dec 2003 21:55:33 -0000 1.6 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,3 +0,0 @@ -Xpdf is an open source viewer for Portable Document Format (PDF) files. -The Xpdf project also includes a PDF text extractor, PDF-to-PostScript -converter, and various other utilities. Index: pkg/DESCR-main =================================================================== RCS file: pkg/DESCR-main diff -N pkg/DESCR-main --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/DESCR-main 15 Dec 2003 21:55:33 -0000 @@ -0,0 +1,3 @@ +Xpdf is an open source viewer for Portable Document Format (PDF) files. +The Xpdf project also includes a PDF text extractor, PDF-to-PostScript +converter, and various other utilities. Index: pkg/DESCR-utils =================================================================== RCS file: pkg/DESCR-utils diff -N pkg/DESCR-utils --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/DESCR-utils 12 Nov 2007 08:44:32 -0000 @@ -0,0 +1 @@ +This package contains various console utils from the Xpdf project. Index: pkg/PLIST =================================================================== RCS file: pkg/PLIST diff -N pkg/PLIST --- pkg/PLIST 15 Sep 2004 18:44:09 -0000 1.9 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,19 +0,0 @@ [EMAIL PROTECTED] $OpenBSD: PLIST,v 1.9 2004/09/15 18:44:09 espie Exp $ -bin/pdffonts -bin/pdfimages -bin/pdfinfo -bin/pdftoppm -bin/pdftops -bin/pdftotext -bin/xpdf [EMAIL PROTECTED] man/man1/pdffonts.1 [EMAIL PROTECTED] man/man1/pdfimages.1 [EMAIL PROTECTED] man/man1/pdfinfo.1 [EMAIL PROTECTED] man/man1/pdftoppm.1 [EMAIL PROTECTED] man/man1/pdftops.1 [EMAIL PROTECTED] man/man1/pdftotext.1 [EMAIL PROTECTED] man/man1/xpdf.1 [EMAIL PROTECTED] man/man5/xpdfrc.5 -share/examples/xpdf/ -share/examples/xpdf/xpdfrc [EMAIL PROTECTED] ${SYSCONFDIR}/xpdfrc Index: pkg/PLIST-main =================================================================== RCS file: pkg/PLIST-main diff -N pkg/PLIST-main --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/PLIST-main 12 Nov 2007 08:57:32 -0000 @@ -0,0 +1,12 @@ [EMAIL PROTECTED] $OpenBSD: PLIST,v 1.9 2004/09/15 18:44:09 espie Exp $ [EMAIL PROTECTED] textproc/xpdf +bin/pdftoppm +bin/pdftops +bin/xpdf [EMAIL PROTECTED] man/man1/pdftoppm.1 [EMAIL PROTECTED] man/man1/pdftops.1 [EMAIL PROTECTED] man/man1/xpdf.1 [EMAIL PROTECTED] man/man5/xpdfrc.5 +share/examples/xpdf/ +share/examples/xpdf/xpdfrc [EMAIL PROTECTED] ${SYSCONFDIR}/xpdfrc Index: pkg/PLIST-utils =================================================================== RCS file: pkg/PLIST-utils diff -N pkg/PLIST-utils --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/PLIST-utils 12 Nov 2007 08:50:51 -0000 @@ -0,0 +1,9 @@ [EMAIL PROTECTED] $OpenBSD$ +bin/pdffonts +bin/pdfimages +bin/pdfinfo +bin/pdftotext [EMAIL PROTECTED] man/man1/pdffonts.1 [EMAIL PROTECTED] man/man1/pdfimages.1 [EMAIL PROTECTED] man/man1/pdfinfo.1 [EMAIL PROTECTED] man/man1/pdftotext.1 !DSPAM:476e83d459763355765152!