summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-text/ghostscript-gpl/ChangeLog7
-rw-r--r--app-text/ghostscript-gpl/Manifest18
-rw-r--r--app-text/ghostscript-gpl/ghostscript-gpl-8.71-r3.ebuild194
3 files changed, 203 insertions, 16 deletions
diff --git a/app-text/ghostscript-gpl/ChangeLog b/app-text/ghostscript-gpl/ChangeLog
index 423ff22d0b96..d904cb66d084 100644
--- a/app-text/ghostscript-gpl/ChangeLog
+++ b/app-text/ghostscript-gpl/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-text/ghostscript-gpl
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.85 2010/03/26 12:47:42 spatz Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.86 2010/03/31 23:51:33 tgurr Exp $
+
+*ghostscript-gpl-8.71-r3 (31 Mar 2010)
+
+ 31 Mar 2010; Timo Gurr <tgurr@gentoo.org> +ghostscript-gpl-8.71-r3.ebuild:
+ Revbump with new patchset.
*ghostscript-gpl-8.71-r2 (26 Mar 2010)
diff --git a/app-text/ghostscript-gpl/Manifest b/app-text/ghostscript-gpl/Manifest
index 5ad9587e09a6..7737d0ff6c3e 100644
--- a/app-text/ghostscript-gpl/Manifest
+++ b/app-text/ghostscript-gpl/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
-
DIST acro5-cmaps-2001.tar.gz 631653 RMD160 c723afc2207157a434988b46bcf0a458281c29a4 SHA1 fbc8715eae880f59e2251ae8fa99f79fbcfbd3e5 SHA256 80abec481fd4b5e59ac3d3f5790542dbfabe3c9269a6ac17064160d6dab38ee4
DIST adobe-cmaps-200406.tar.gz 5001983 RMD160 284b943b3476f6f7e2bc49842fd027c6f7f57552 SHA1 b846292af4541d907dd9041e397c2f1d8c72a056 SHA256 0f397255506cda4b20e362ab5e3f6cdacba09e0a0cca7f4d93afd980977c5689
DIST ghostscript-8.64.tar.bz2 16921504 RMD160 565134dcfe1e823b435c3761461c5eb394bd633c SHA1 4c2a6e04145428d35da73fbc4db9c66a75e336e0 SHA256 012f7fec58480c728580836fec6f865588d8a33fe8ada7ae73b1f971440d02bb
@@ -9,22 +6,13 @@ DIST ghostscript-8.71.tar.gz 25240801 RMD160 efce74cf22cf99b2b1a145df466e79a86e3
DIST ghostscript-gpl-8.64-patchset-4.tar.bz2 12171 RMD160 5649eb8e2782c8cb147312917d3f8e4f283567d2 SHA1 36b229a1071116b05be3e17c04b521ded922919a SHA256 58f37993e52ec8182586effa1760e49369dfc8977895f2f0ef13d57263ef8954
DIST ghostscript-gpl-8.70-patchset-2.tar.bz2 5477 RMD160 c3488084bd5010d96d8c30170f271451666b1724 SHA1 ca8ddadb993a21747c4b58826d908d864d7b02ce SHA256 6b59dfe8c26a4efd6200c36ef114114027042049f9b10a4177997435ec3165c7
DIST ghostscript-gpl-8.71-patchset-1.tar.bz2 10581 RMD160 fb422b5037513e1c5400cb6134984d6c89046b81 SHA1 06329e5bfdc7bf0c2b590d50bc677095267d0427 SHA256 ec106afa0abb431ea74a452ff65863e686479bf1d8517b48402a71f8c33e3f91
+DIST ghostscript-gpl-8.71-patchset-2.tar.bz2 8600 RMD160 9646f4eb6da128d30dbffadfd8f068ccb74926d0 SHA1 09c10396bb5359c6274a1350a8de6839686399db SHA256 3b5bf99add3dac5a253d0ede12fd3fec4bbac6cce3bd1a0a674571f320853a57
DIST gsdjvu-1.3.tar.gz 204330 RMD160 a6d2326ba9098e801000b957ab5508e998e17be8 SHA1 67fcbd72ae229ff68a5d0cc482d4179e3957df61 SHA256 7702fd287cd881a8b1e7911f780c10f98e332b3a6cd93dd35b245d5816b09ca2
DIST gsdjvu-1.4.tar.gz 208611 RMD160 ecbb2fded61a29c4f49f852f99d106a0ba0eb48d SHA1 2650c85481de3aef66a4f7970d14a7dd36a1bc96 SHA256 7b5992f5203d662a7e03ce57d4a1b7a97990b0d3e09eb46ef1b4cb66d8d8c57d
EBUILD ghostscript-gpl-8.64-r3.ebuild 5567 RMD160 b60c7d8aacf28be202909a97578975e817962bed SHA1 d20fbb12defe85fafbf4bb22ae11ceb4ae21ddf1 SHA256 0f1e85db127407d2d7f223c268419b4c1404f4f2dc57afb3c0054326b2dd0e01
EBUILD ghostscript-gpl-8.70-r1.ebuild 5457 RMD160 88076a489ae14790beca13ee3828dc9b4912330e SHA1 61c7b01dcf96b530f08b7ab556e9de1db05c09d7 SHA256 30c961d0aa04bf87d66e511bdbb274018d5a7b0cb40ea7b67e17d9c11e161992
EBUILD ghostscript-gpl-8.71-r1.ebuild 5940 RMD160 a9db1567d7dea3fbab44c88070217cfa72be4c1f SHA1 fbb4f1e6d5d4dff2c7bad246a1209605fd595bfd SHA256 734e55eb8521dcc48b8ad8a0922ccff3bc48c249dafcc07f4aa432ae8567d350
EBUILD ghostscript-gpl-8.71-r2.ebuild 6016 RMD160 662b396efe96ec17952663726f1224ace7dffed4 SHA1 2367ceb7da57de71c6f4a8603700de69337e6734 SHA256 dc3ec06e6baf1a9e6212487aa513692ef56414f1a589e2a584505309336746d5
-MISC ChangeLog 16648 RMD160 38261c00c50d728bbc320a50e5346dfa0c80508d SHA1 4417854f8b9898942abfa80c14c46b96511b5278 SHA256 2b5233f7a13f1f209029d25d3bd332fe4b87de2b6eef648667432e02ae24bb80
+EBUILD ghostscript-gpl-8.71-r3.ebuild 6213 RMD160 62aa57946fcf1c2f2b0aee3d52824292c52293aa SHA1 6f7d905b7279fde6391b9d5d216e0ad44ccfa5a3 SHA256 9773ac617f4b4456cbfe32f97007e04831b48ad011dac41059720d065aedb99f
+MISC ChangeLog 16795 RMD160 246b5d50a32360de67951eccaed931ff1d82a94d SHA1 98fce769caf5faa68d42eff3c1c61f4131af9b91 SHA256 1a869e78cef146c812f6c9d79011c314df07b594ba13195fc25354cba53094b6
MISC metadata.xml 161 RMD160 1e5b1e42553c8869b93c4a5448e9a2a2ed9fe525 SHA1 209c6a46e4cdd891980115e42ba419e3799f8088 SHA256 7c85e6739a71f5bb23e8de36c88677d772946e61f7285892f7554e37bd2bca76
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.14 (GNU/Linux)
-
-iQEcBAEBCgAGBQJLrKz0AAoJEAWF714uGAc6kcsH/iF3w+sicLJYOeZC4Ibzp3qi
-Vg0RTxVaP8EOM/Vv3N+vGa/ijOfoueeIqfVKp3U3yoxI+bSo7eXB/cRez75c7vsN
-PMjoDPEvHAMDWuV4yWS6EqhU8Q3elCqptzQdIQWw9LiOqkJbDKPnQx/FrnYS81iq
-flSoZWChvS9VrDvJaqHP33lfKPwXMo3usrH5dYYlJI85lEQtA5zqxLTYoLdL8Srk
-v/lA0diSzS2zqVjr4dDi/oJ4+XgfFGjQHE4Ovyn0+8rdntCvUf1yBVTUJLYi5tRd
-doFZLS+04TpMyWdO3LKH439H5H7EAdSkiT0CPafr4pI3Dd+LZ33NtemZx5vHymY=
-=7Epn
------END PGP SIGNATURE-----
diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-8.71-r3.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-8.71-r3.ebuild
new file mode 100644
index 000000000000..91367ef7255c
--- /dev/null
+++ b/app-text/ghostscript-gpl/ghostscript-gpl-8.71-r3.ebuild
@@ -0,0 +1,194 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-8.71-r3.ebuild,v 1.1 2010/03/31 23:51:33 tgurr Exp $
+
+EAPI=2
+inherit autotools eutils versionator flag-o-matic
+
+DESCRIPTION="GPL Ghostscript - the most current Ghostscript, AFPL, relicensed."
+HOMEPAGE="http://ghostscript.com/"
+
+MY_P=${P/-gpl}
+GSDJVU_PV=1.4
+PVM=$(get_version_component_range 1-2)
+SRC_URI="!bindist? ( djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz ) )
+ mirror://sourceforge/ghostscript/${MY_P}.tar.gz
+ mirror://gentoo/${P}-patchset-2.tar.bz2"
+
+LICENSE="GPL-3 CPL-1.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
+IUSE="bindist cairo cups djvu gtk jpeg2k X"
+
+COMMON_DEPEND="app-text/libpaper
+ media-libs/fontconfig
+ >=media-libs/jpeg-6b
+ >=media-libs/libpng-1.2.42
+ >=media-libs/tiff-3.9.2
+ >=sys-libs/zlib-1.2.3
+ !bindist? ( djvu? ( app-text/djvu ) )
+ cairo? ( >=x11-libs/cairo-1.2.0 )
+ cups? ( >=net-print/cups-1.3.8 )
+ gtk? ( >=x11-libs/gtk+-2.0 )
+ jpeg2k? ( media-libs/jasper )
+ X? ( x11-libs/libXt x11-libs/libXext )
+ !app-text/ghostscript-gnu"
+
+DEPEND="${COMMON_DEPEND}
+ dev-util/pkgconfig"
+
+RDEPEND="${COMMON_DEPEND}
+ linguas_ja? ( media-fonts/kochi-substitute )
+ linguas_ko? ( media-fonts/baekmuk-fonts )
+ linguas_zh_CN? ( media-fonts/arphicfonts )
+ linguas_zh_TW? ( media-fonts/arphicfonts )
+ >=media-fonts/urw-fonts-2.4.9"
+
+S="${WORKDIR}/${MY_P}"
+
+LANGS="ja ko zh_CN zh_TW"
+for X in ${LANGS} ; do
+ IUSE="${IUSE} linguas_${X}"
+done
+
+src_prepare() {
+ # remove internal copies of expat, jasper, jpeg, libpng and zlib
+ rm -rf "${S}/expat"
+ rm -rf "${S}/jasper"
+ rm -rf "${S}/jpeg"
+ rm -rf "${S}/libpng"
+ rm -rf "${S}/tiff"
+ rm -rf "${S}/zlib"
+ # remove internal urw-fonts
+ rm -rf "${S}/Resource/Font"
+
+ # Fedora patches
+ # http://cvs.fedoraproject.org/viewvc/devel/ghostscript/
+ epatch "${WORKDIR}/patches/${PN}-8.61-multilib.patch"
+ epatch "${WORKDIR}/patches/${PN}-8.64-scripts.patch"
+ epatch "${WORKDIR}/patches/${PN}-8.64-noopt.patch"
+ epatch "${WORKDIR}/patches/${PN}-8.64-fPIC.patch"
+ epatch "${WORKDIR}/patches/${PN}-8.70-runlibfileifexists.patch"
+ epatch "${WORKDIR}/patches/${PN}-8.64-system-jasper.patch"
+ epatch "${WORKDIR}/patches/${PN}-8.64-pksmraw.patch"
+ epatch "${WORKDIR}/patches/${PN}-8.71-jbig2dec-nullderef.patch"
+ epatch "${WORKDIR}/patches/${PN}-8.71-CVE-2009-4270.patch"
+ epatch "${WORKDIR}/patches/${PN}-8.71-vsnprintf.patch"
+ epatch "${WORKDIR}/patches/${PN}-8.71-pdftoraster-exit.patch"
+ epatch "${WORKDIR}/patches/${PN}-8.71-ldflags.patch"
+ epatch "${WORKDIR}/patches/${PN}-8.71-pdf2dsc.patch"
+ epatch "${WORKDIR}/patches/${PN}-8.71-cups-realloc-color-depth.patch"
+ epatch "${WORKDIR}/patches/${PN}-8.71-tiff-fail-close.patch"
+ epatch "${WORKDIR}/patches/${PN}-8.71-tiff-default-strip-size.patch"
+ epatch "${WORKDIR}/patches/${PN}-8.71-tiff-fixes.patch"
+
+ if use bindist && use djvu ; then
+ ewarn "You have bindist in your USE, djvu support will NOT be compiled!"
+ ewarn "See http://djvu.sourceforge.net/gsdjvu/COPYING for details on licensing issues."
+ fi
+
+ if ! use bindist && use djvu ; then
+ unpack gsdjvu-${GSDJVU_PV}.tar.gz
+ cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}"
+ cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}/base"
+ epatch "${WORKDIR}/patches/${PN}-8.64-gsdjvu-1.3.patch"
+ cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}/lib"
+ cp "${S}/base/contrib.mak" "${S}/base/contrib.mak.gsdjvu"
+ grep -q djvusep "${S}/base/contrib.mak" || \
+ cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}/base/contrib.mak"
+
+ # install ps2utf8.ps, bug #197818
+ sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' "${S}/base/unixinst.mak" \
+ || die "sed failed"
+ fi
+
+ if ! use gtk ; then
+ sed -i "s:\$(GSSOX)::" base/*.mak || die "gsx sed failed"
+ sed -i "s:.*\$(GSSOX_XENAME)$::" base/*.mak || die "gsxso sed failed"
+ fi
+
+ # search path fix
+ sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVM}/$(get_libdir):" \
+ -e 's:$(gsdir)/fonts:/usr/share/fonts/default/ghostscript/:' \
+ -e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \
+ -e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \
+ -e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \
+ base/Makefile.in base/*.mak || die "sed failed"
+
+ # http://repos.archlinux.org/wsvn/packages/ghostscript/trunk/libpng14.patch
+ sed -i \
+ -e 's:png_check_sig:png_sig_cmp:' \
+ "${S}"/{,base,jbig2dec}/configure.ac || die
+
+ cd "${S}"
+ eautoreconf
+
+ cd "${S}/jbig2dec"
+ eautoreconf
+
+ cd "${S}/ijs"
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable cairo) \
+ $(use_enable cups) \
+ $(use_enable gtk) \
+ $(use_with jpeg2k jasper) \
+ $(use_with X x) \
+ --disable-compile-inits \
+ --enable-dynamic \
+ --enable-fontconfig \
+ --with-drivers=ALL \
+ --with-ijs \
+ --with-jbig2dec \
+ --with-libpaper
+
+ if ! use bindist && use djvu ; then
+ sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' Makefile
+ fi
+
+ cd "${S}/ijs"
+ econf || die "ijs econf failed"
+}
+
+src_compile() {
+ emake -j1 so all || die "emake failed"
+
+ cd "${S}/ijs"
+ emake || die "ijs emake failed"
+}
+
+src_install() {
+ # parallel install is broken, bug #251066
+ emake -j1 DESTDIR="${D}" install-so install || die "emake install failed"
+
+ if ! use bindist && use djvu ; then
+ dobin gsdjvu || die "dobin gsdjvu install failed"
+ fi
+
+ # remove gsc in favor of gambit, bug #253064
+ rm -rf "${D}/usr/bin/gsc"
+
+ rm -rf "${D}/usr/share/doc/${PF}/html/"{README,PUBLIC}
+ dodoc doc/README || die "dodoc install failed"
+
+ cd "${S}/ijs"
+ emake DESTDIR="${D}" install || die "emake ijs install failed"
+
+ # Rename an original cidfmap to cidfmap.GS
+ mv "${D}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS}
+
+ # Install our own cidfmap to allow the separated cidfmap
+ insinto "/usr/share/ghostscript/${PVM}/Resource/Init"
+ doins "${WORKDIR}/fontmaps/CIDFnmap" || die "doins CIDFnmap failed"
+ doins "${WORKDIR}/fontmaps/cidfmap" || die "doins cidfmap failed"
+ for X in ${LANGS} ; do
+ if use linguas_${X} ; then
+ doins "${WORKDIR}/fontmaps/cidfmap.${X}" || die "doins cidfmap.${X} failed"
+ fi
+ done
+
+ dosym /usr/share/fonts/urw-fonts /usr/share/fonts/default/ghostscript || die
+}