[32602] trunk/dports/graphics/xpdf/Portfile
ricci at macports.org
ricci at macports.org
Tue Jan 8 16:11:45 PST 2008
Revision: 32602
http://trac.macosforge.org/projects/macports/changeset/32602
Author: ricci at macports.org
Date: 2008-01-08 16:11:44 -0800 (Tue, 08 Jan 2008)
Log Message:
-----------
add xpdf-3.02pl1.patch and xpdf-3.02pl2.patch (from upstream), includes security fixes
remove 'cd' command
bump revision
make port lint happier
Modified Paths:
--------------
trunk/dports/graphics/xpdf/Portfile
Modified: trunk/dports/graphics/xpdf/Portfile
===================================================================
--- trunk/dports/graphics/xpdf/Portfile 2008-01-08 22:25:44 UTC (rev 32601)
+++ trunk/dports/graphics/xpdf/Portfile 2008-01-09 00:11:44 UTC (rev 32602)
@@ -1,8 +1,10 @@
# $Id$
+
PortSystem 1.0
+
name xpdf
version 3.02
-revision 1
+revision 2
description Xpdf is a viewer for PDF files.
long_description \
Xpdf is a viewer for Portable Document Format \
@@ -11,11 +13,10 @@
maintainers nomaintainer
categories graphics print
-platforms darwin
+platforms darwin
homepage http://www.foolabs.com/xpdf/
master_sites \
- ftp://ftp.foolabs.com/pub/xpdf/ \
ftp://ftp.funet.fi/pub/TeX/CTAN/support/xpdf/ \
ftp://ctan.unsw.edu.au/tex-archive/support/xpdf/ \
ftp://ftp.tex.ac.uk/tex-archive/support/xpdf/ \
@@ -27,20 +28,37 @@
ftp://ftp.ntnu.no/pub/tex/CTAN/support/xpdf/ \
ftp://www.dnsbalance.ring.gr.jp/pub/text/CTAN/support/xpdf/ \
http://www.t.ring.gr.jp/archives/text/CTAN/support/xpdf/ \
- ftp://ftp.chg.ru/pub/TeX/CTAN/support/xpdf/
+ ftp://ftp.chg.ru/pub/TeX/CTAN/support/xpdf/ \
+ ftp://ftp.foolabs.com/pub/xpdf/
-checksums md5 599dc4cc65a07ee868cf92a667a913d2
+## checksums md5 599dc4cc65a07ee868cf92a667a913d2
+set xpdfmain ${distname}${extract.suffix}
+distfiles ${xpdfmain} \
+ xpdf-3.02pl1.patch \
+ xpdf-3.02pl2.patch
+
+checksums ${xpdfmain} md5 599dc4cc65a07ee868cf92a667a913d2 \
+ xpdf-3.02pl1.patch 877118786dfe27d1b7aa5a6759cc6e45 \
+ xpdf-3.02pl2.patch 3a5cb165ae66781e0b21e6219ae06795
+extract.only ${xpdfmain}
+
depends_lib lib:libX11.6:XFree86 lib:libfreetype.6:freetype \
port:libpaper port:openmotif port:t1lib
depends_run path:${prefix}/share/ghostscript/fonts:ghostscript
patchfiles xpdf-3.02-salvage-your-eye.patch
+
+pre-patch {
+ system "cd ${workpath} && patch -p0 < ${distpath}/xpdf-3.02pl1.patch"
+ system "cd ${workpath} && patch -p0 < ${distpath}/xpdf-3.02pl2.patch"
+}
+
post-patch {
- cd ${worksrcpath}
+## cd ${worksrcpath}
reinplace "s|/usr/local|${prefix}|g" \
- doc/sample-xpdfrc xpdf/GlobalParams.cc
+ ${worksrcpath}/doc/sample-xpdfrc ${worksrcpath}/xpdf/GlobalParams.cc
}
configure.args \
@@ -65,7 +83,7 @@
configure.cflags-append "-I/usr/X11R6/include"
configure.cppflags-append "-I/usr/X11R6/include"
configure.ldflags-append "-lz"
-
+
variant a4 {
configure.args-append --enable-a4-paper
}
@@ -101,5 +119,5 @@
ui_msg " \
Xpdf language support packages are also available at \
http://www.foolabs.com/xpdf/download.html"
-}
-
+}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080108/1d9266dd/attachment.html
More information about the macports-changes
mailing list