Version Bump. Closes bugs #104107 and #96301.
authorLuis Medinas <metalgod@gentoo.org>
Mon, 5 Sep 2005 04:32:20 +0000 (04:32 +0000)
committerLuis Medinas <metalgod@gentoo.org>
Mon, 5 Sep 2005 04:32:20 +0000 (04:32 +0000)
Package-Manager: portage-2.0.51.22-r2

app-text/xpdf/ChangeLog
app-text/xpdf/Manifest
app-text/xpdf/files/digest-xpdf-3.01 [new file with mode: 0644]
app-text/xpdf/files/xpdf-3.01-crash.patch [new file with mode: 0644]
app-text/xpdf/xpdf-3.01.ebuild [new file with mode: 0644]

index d995eff5a233208cf4f3297a02fd32cb815964a9..523e3521b9cddabf6db67d2b9b208332a1a3e52d 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for app-text/xpdf
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/xpdf/ChangeLog,v 1.89 2005/08/12 21:05:42 kloeri Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/xpdf/ChangeLog,v 1.90 2005/09/05 04:32:20 metalgod Exp $
+
+*xpdf-3.01 (05 Sep 2005)
+
+  05 Sep 2005; Luis Medinas <metalgod@gentoo.org>
+  +files/xpdf-3.01-crash.patch, +xpdf-3.01.ebuild:
+  Version Bump. Closes bugs #104107 and #96301.
 
   12 Aug 2005; Bryan Ã˜stergaard <kloeri@gentoo.org> xpdf-3.00-r10.ebuild:
   Stable on ia64, bug 99769.
index 3a364e0104a9b6cf0605d1d1dc561540c0b71e23..a3b0db3445b5e9b38ebb0a090ab1f5ca9d5e1c16 100644 (file)
@@ -1,33 +1,36 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 0e303cf49620828eff323b0251d0141c xpdf-3.00-r8.ebuild 3622
+MD5 3bd8ca4c18653799f4a6c15743f0b0e5 ChangeLog 10999
 MD5 26b4b081d538c195dc39bcb2ec8e6f3a metadata.xml 161
-MD5 4baf6cdd9480cd938afaede8334c7a72 xpdf-3.00-r10.ebuild 3909
+MD5 0e303cf49620828eff323b0251d0141c xpdf-3.00-r8.ebuild 3622
 MD5 4dfde9229c0dfade67d4d1669cf11210 xpdf-3.00-r9.ebuild 3860
-MD5 646241ef7fe3ff7e7781dae5d2acb25f ChangeLog 10821
-MD5 a0e8c344d40384d23af93a7b7a2adba7 files/xpdf-3.00-fonts.patch 399
-MD5 8221707abac9c48b486b8c2b9bc7a7a0 files/xpdf-3.00-empty-bookmark.patch 373
+MD5 4baf6cdd9480cd938afaede8334c7a72 xpdf-3.00-r10.ebuild 3909
+MD5 b4f3da45bbeaba31ec7b311488a4b3f3 xpdf-3.01.ebuild 3487
 MD5 ec978d9450f061ea49ee697b39d545bf files/digest-xpdf-3.00-r8 767
-MD5 f200f24c7cfa6061337dc6c0e03f36b9 files/xpdf-3.00-nodrm.diff 1049
-MD5 37f0b42aad269cb5896773b47b1d83ac files/xpdf-3.00-truetype-new.diff.gz 1271
 MD5 ec978d9450f061ea49ee697b39d545bf files/digest-xpdf-3.00-r9 767
-MD5 1ca86139c360680d756c771b7c6c8647 files/xpdf-3.00-freetype-2.1.7.patch 2743
-MD5 9a40ac2946ebb4599602f43e10f88786 files/xpdf-3.00-scroll-opts.patch.bz2 1869
-MD5 8aec20a56895c25a8c2c35c16211d731 files/xpdf-3.00-security-can-2005-2097.patch 1612
 MD5 41c050cd5c7ccdcf1676a6852c7a35ed files/xpdf-3.00-PathScanner.patch.bz2 1003
-MD5 2fce5bedd61300fad1566a41f991a782 files/xpdf-goo-sizet.patch 1424
-MD5 a21a0caeb7356fb3e68e5db195a505e9 files/xpdfrc.1 1587
-MD5 c3d50c3fb232fe51c2ae06ff1f530d49 files/xpdf-3.00-overflow.patch.bz2 2097
 MD5 3df9058a9971c09627e71dad6b056244 files/xpdf-3.00-core.patch.bz2 271
+MD5 8221707abac9c48b486b8c2b9bc7a7a0 files/xpdf-3.00-empty-bookmark.patch 373
+MD5 a0e8c344d40384d23af93a7b7a2adba7 files/xpdf-3.00-fonts.patch 399
+MD5 1ca86139c360680d756c771b7c6c8647 files/xpdf-3.00-freetype-2.1.7.patch 2743
 MD5 e07939dc8546a450c5d8aca6263ad8ee files/xpdf-3.00-gcc41.patch 890
+MD5 f200f24c7cfa6061337dc6c0e03f36b9 files/xpdf-3.00-nodrm.diff 1049
+MD5 c3d50c3fb232fe51c2ae06ff1f530d49 files/xpdf-3.00-overflow.patch.bz2 2097
+MD5 dd4a7f876f8002dc835dab94f7fcefc1 files/xpdf-3.00-pl2.patch 1665
 MD5 ae2950dd45961a041a23aae7f740815b files/xpdf-3.00-pl3.patch 356
+MD5 9a40ac2946ebb4599602f43e10f88786 files/xpdf-3.00-scroll-opts.patch.bz2 1869
+MD5 37f0b42aad269cb5896773b47b1d83ac files/xpdf-3.00-truetype-new.diff.gz 1271
+MD5 2fce5bedd61300fad1566a41f991a782 files/xpdf-goo-sizet.patch 1424
+MD5 a21a0caeb7356fb3e68e5db195a505e9 files/xpdfrc.1 1587
+MD5 8aec20a56895c25a8c2c35c16211d731 files/xpdf-3.00-security-can-2005-2097.patch 1612
 MD5 ec978d9450f061ea49ee697b39d545bf files/digest-xpdf-3.00-r10 767
-MD5 dd4a7f876f8002dc835dab94f7fcefc1 files/xpdf-3.00-pl2.patch 1665
+MD5 8bcdee9af356073f2e0dd88071379148 files/xpdf-3.01-crash.patch 1057
+MD5 fb31167789c80b1a01d773fc5108c356 files/digest-xpdf-3.01 767
 -----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2 (GNU/Linux)
+Version: GnuPG v1.4.1 (GNU/Linux)
 
-iD8DBQFC/sChgIKl8Uu19MoRAsAaAJ9WreEg2deyl590852Jy4v7rDlBYgCbBd40
-T+U3qKpLdSVUHFIZ/P3Yqwo=
-=jufF
+iD8DBQFDG9fGwUpWvClEHQoRAoxhAJsFwQKG8nQnuYOcCCzfezVlY5IF5ACfegVi
+nGXF/+32ZlV1IYwf7qs+miY=
+=EXgh
 -----END PGP SIGNATURE-----
diff --git a/app-text/xpdf/files/digest-xpdf-3.01 b/app-text/xpdf/files/digest-xpdf-3.01
new file mode 100644 (file)
index 0000000..a9aeca0
--- /dev/null
@@ -0,0 +1,12 @@
+MD5 e004c69c7dddef165d768b1362b44268 xpdf-3.01.tar.gz 599778
+MD5 67f05f65bc64bf022b36138c7c26746d xpdf-arabic.tar.gz 1058
+MD5 713659f0282b9e3d169390e246e5eb74 xpdf-chinese-simplified.tar.gz 756127
+MD5 5be730b859f8b01de569eb1bad188426 xpdf-chinese-traditional.tar.gz 698902
+MD5 21f57122247e2e2a63bfed4dc4f6c199 xpdf-cyrillic.tar.gz 1286
+MD5 2240a364b9c28ce09fd8c3107784ce40 xpdf-greek.tar.gz 1124
+MD5 438dd417517641cbb78a94facf2d938e xpdf-hebrew.tar.gz 1314
+MD5 57bb9359437583479b6670e75fa06c31 xpdf-japanese.tar.gz 430478
+MD5 10cd92e4eef065a6a26341d9a2a1b5c2 xpdf-korean.tar.gz 419081
+MD5 ac19ef990cd63afd2837c10dc7e1c3ab xpdf-latin2.tar.gz 1435
+MD5 9af495766ee4eaf3411d1fa74560f0ec xpdf-thai.tar.gz 1876
+MD5 f9233880805e3d8d2cf15a4fe679f25b xpdf-turkish.tar.gz 1140
diff --git a/app-text/xpdf/files/xpdf-3.01-crash.patch b/app-text/xpdf/files/xpdf-3.01-crash.patch
new file mode 100644 (file)
index 0000000..21e60b3
--- /dev/null
@@ -0,0 +1,34 @@
+--- xpdf-3.00/splash/Splash.cc.tn      2005-07-25 09:59:45.000000000 +0200
++++ xpdf-3.00/splash/Splash.cc 2005-07-25 10:00:58.000000000 +0200
+@@ -636,6 +641,11 @@
+ 
+   xPath = new SplashXPath(path, state->flatness, gTrue);
+   xPath->sort();
++  if (!&xPath->segs[0])
++  {
++    delete xPath;
++    return splashErrEmptyPath;
++  }
+   scanner = new SplashXPathScanner(xPath, eo);
+ 
+   // get the min and max x and y values
+--- xpdf-3.00/fofi/FoFiType1.cc.tn     2005-07-25 10:34:04.000000000 +0200
++++ xpdf-3.00/fofi/FoFiType1.cc        2005-07-25 10:41:37.000000000 +0200
+@@ -187,9 +187,14 @@
+           }
+         }
+       } else {
+-        if (strtok(buf, " \t") &&
+-            (p = strtok(NULL, " \t\n\r")) && !strcmp(p, "def")) {
+-          break;
++        p = strtok(buf, " \t\n\r");
++        if (p)
++        {
++          if (!strcmp(p, "def")) break;
++          if (!strcmp(p, "readonly")) break;
++          // the spec does not says this but i'm mantaining old xpdf behaviour that accepts "foo def" as end of the encoding array
++          p = strtok(buf, " \t\n\r");
++          if (p && !strcmp(p, "def")) break;
+         }
+       }
+       line = line1;
diff --git a/app-text/xpdf/xpdf-3.01.ebuild b/app-text/xpdf/xpdf-3.01.ebuild
new file mode 100644 (file)
index 0000000..8a8c435
--- /dev/null
@@ -0,0 +1,112 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/xpdf/xpdf-3.01.ebuild,v 1.1 2005/09/05 04:32:20 metalgod Exp $
+
+inherit eutils
+
+DESCRIPTION="An X Viewer for PDF Files"
+HOMEPAGE="http://www.foolabs.com/xpdf/"
+SRC_URI="ftp://ftp.foolabs.com/pub/xpdf/${P}.tar.gz
+       linguas_ar? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-arabic.tar.gz )
+       linguas_zh_CN? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-chinese-simplified.tar.gz )
+       linguas_zh_TW? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-chinese-traditional.tar.gz )
+       linguas_ru? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-cyrillic.tar.gz )
+       linguas_el? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-greek.tar.gz )
+       linguas_he? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-hebrew.tar.gz )
+       linguas_ja? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-japanese.tar.gz )
+       linguas_ko? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-korean.tar.gz )
+       linguas_la? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-latin2.tar.gz )
+       linguas_th? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-thai.tar.gz )
+       linguas_tr? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-turkish.tar.gz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="motif X"
+
+DEPEND="motif? ( !s390? ( virtual/x11
+       x11-libs/openmotif ) )
+       X? (
+               >=media-libs/freetype-2.0.5
+               media-libs/t1lib
+               virtual/ghostscript
+               virtual/x11 )"
+
+RDEPEND="${DEPEND}
+       linguas_ja? ( >=media-fonts/kochi-substitute-20030809-r3 )
+       linguas_zh_CN? ( >=media-fonts/arphicfonts-0.1-r2 )
+       linguas_zh_TW? ( >=media-fonts/arphicfonts-0.1-r2 )
+       linguas_ko? ( >=media-fonts/baekmuk-fonts-2.2 )
+       !app-text/xpdf-chinese-simplified
+       !app-text/xpdf-chinese-traditional
+       !app-text/xpdf-cyrillic
+       !app-text/xpdf-greek
+       !app-text/xpdf-japanese
+       !app-text/xpdf-korean
+       !app-text/xpdf-latin2
+       !app-text/xpdf-thai
+       !app-text/xpdf-turkish"
+PROVIDE="virtual/pdfviewer"
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       epatch ${FILESDIR}/${PN}-3.00-gcc41.patch
+       epatch ${FILESDIR}/${PN}-3.00-64bit.patch
+       epatch ${FILESDIR}/${PN}-3.01-crash.patch
+       autoconf
+}
+
+src_compile() {
+
+       local myconf
+       if use X; then
+               myconf="${myconf} --with-x --enable-freetype2 \
+               --with-freetype2-includes=/usr/include/freetype2"
+       else
+               myconf="${myconf} --without-x --without-freetype2-library"
+       fi
+
+       econf \
+               ${myconf} \
+               --enable-opi -enable-multithreaded  || die "Configure Failed"
+
+       emake || die "make failed"
+}
+
+src_install() {
+       make DESTDIR=${D} install || die "make install failed"
+       prepallman
+       dodoc README ANNOUNCE CHANGES
+       insinto /etc
+       newins ${FILESDIR}/xpdfrc.1 xpdfrc
+
+       # install languages, but not on ppc64 (produces crashes...)
+       if use !ppc64; then
+               use linguas_ar && install_lang turkish
+               use linguas_zh_CN && install_lang chinese-simplified
+               use linguas_zh_TW && install_lang chinese-traditional
+               use linguas_ru && install_lang cyrillic
+               use linguas_el && install_lang greek
+               use linguas_he && install_lang hebrew
+               use linguas_ja && install_lang japanese
+               use linguas_ko && install_lang korean
+               use linguas_la && install_lang latin2
+               use linguas_th && install_lang thai
+               use linguas_tr && install_lang turkish
+       fi
+}
+
+install_lang() {
+       cd ../xpdf-$1
+       sed 's,/usr/local/share/xpdf/,/usr/share/xpdf/,g' add-to-xpdfrc >> ${D}/etc/xpdfrc
+       insinto /usr/share/xpdf/$1
+       doins *.unicodeMap
+       doins *.cid*
+       insinto /usr/share/xpdf/$1/CMap
+       doins CMap/*
+}
+
+pkg_postinst() {
+       use motif || einfo "If you want to compile xpdf binary you have to set USE=motif"
+}