summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Gurr <tgurr@gentoo.org>2012-02-09 01:47:54 +0000
committerTimo Gurr <tgurr@gentoo.org>2012-02-09 01:47:54 +0000
commitaf33135ceb124a1b93af7f2079f06582b22b41d2 (patch)
tree1c9dc34f45ad0c6a1b4b8625930811e392b9b1fe /app-text/ghostscript-gpl
parentStable for HPPA (bug #401229). (diff)
downloadhistorical-af33135ceb124a1b93af7f2079f06582b22b41d2.tar.gz
historical-af33135ceb124a1b93af7f2079f06582b22b41d2.tar.bz2
historical-af33135ceb124a1b93af7f2079f06582b22b41d2.zip
Version bump. Still favor jasper instead of openjpeg for now.
Package-Manager: portage-2.2.0_alpha85/cvs/Linux x86_64
Diffstat (limited to 'app-text/ghostscript-gpl')
-rw-r--r--app-text/ghostscript-gpl/ChangeLog7
-rw-r--r--app-text/ghostscript-gpl/Manifest25
-rw-r--r--app-text/ghostscript-gpl/ghostscript-gpl-9.05.ebuild220
3 files changed, 230 insertions, 22 deletions
diff --git a/app-text/ghostscript-gpl/ChangeLog b/app-text/ghostscript-gpl/ChangeLog
index d75dc15ffc5f..31e58a2de8de 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-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.132 2012/02/01 21:15:56 dilfridge Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.133 2012/02/09 01:47:54 tgurr Exp $
+
+*ghostscript-gpl-9.05 (09 Feb 2012)
+
+ 09 Feb 2012; Timo Gurr <tgurr@gentoo.org> +ghostscript-gpl-9.05.ebuild:
+ Version bump. Still favor jasper instead of openjpeg for now.
*ghostscript-gpl-9.04-r6 (01 Feb 2012)
diff --git a/app-text/ghostscript-gpl/Manifest b/app-text/ghostscript-gpl/Manifest
index 70dfd6f2546c..1da2e0951a29 100644
--- a/app-text/ghostscript-gpl/Manifest
+++ b/app-text/ghostscript-gpl/Manifest
@@ -1,29 +1,12 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
-
DIST ghostscript-9.04.tar.bz2 29869900 RMD160 916bcacac247241fcf6ba02e90dc7e28040ba65e SHA1 df9c9e1924038da071d0ffbaddf42a75ecbc1e83 SHA256 f82c20b44ad3c204e2b78afbcd03a32dd523d26f5e18bf4508f3dfcbbfd30bc4
+DIST ghostscript-9.05.tar.bz2 28279634 RMD160 27935f60083b788b2793b19ee42f3663082ba084 SHA1 1a54a846e90ae95b5307f4f0459d044b9597d8cf SHA256 0f41212af3a5a552ab2302cd90606dc8245be34490a699726dc95ed3cd89ceac
DIST ghostscript-gpl-9.04-patchset-3.tar.bz2 7760 RMD160 43a38afd1e8de506db70a58d0fa3168dba3c3a6e SHA1 03b27dad2e4cbec045f2264885bf366526e2db00 SHA256 b3c20adc111b8ddf3bc7d60a01fa1b31eadb9d6d9eb8ac474d9aa1604bd51b6f
DIST ghostscript-gpl-9.04-patchset-4.tar.bz2 10850 RMD160 6e5b7bfd791c075bed15efa5255fbcf943d07837 SHA1 a0688d44141f5a3b174ebf4773f967c48919bbfe SHA256 7e0e89b7f87fc6b5f082a073115d36a7d5632ddbb91fa01d5beea15689800441
+DIST ghostscript-gpl-9.05-patchset-1.tar.bz2 4480 RMD160 bdaf9dbd59d0445a0ee6049c487ae872bda260fa SHA1 bf2cbe0668af57c5edd700650e861ad5579b8f0e SHA256 30e31b11e72a115ee2cd3d01f6a638bc808427bc9579e8c9e1f84b073a19fa9f
DIST gsdjvu-1.5.tar.gz 207583 RMD160 010be2cd791d5e2814c1f6554150bfd7c34222c0 SHA1 c7d0677dae5fe644cf3d714c04b3c2c343906342 SHA256 d4f01d605ff086835005e79d5fcead2def8aafafc106e170dc5f2dc618593ab4
EBUILD ghostscript-gpl-9.04-r4.ebuild 6117 RMD160 5c82a9973d8918e5e5e46ea39b690c28951d4979 SHA1 fbbe3d1c1e70443f76caf1a390832a7d37175be1 SHA256 4749b60717f3793e97b343561a4505a32ff16cee5fb0801a3a194f7e81b613a1
EBUILD ghostscript-gpl-9.04-r5.ebuild 6094 RMD160 08b4c3d8ed61d9a831f0f777b841caf26a72f240 SHA1 c44f6347a778262bff8783c78f252cd865bd817e SHA256 f91c187c086ddb373c15cae118c09dfa9e3d0b9a70f38708b4aa53834b533581
EBUILD ghostscript-gpl-9.04-r6.ebuild 6177 RMD160 ee9c60ba83f3cd5388414e4249afb74022d41416 SHA1 74fe9f1cdad3d51f4fbfbc41177786d2165b118f SHA256 01ce9e2e1d233b5103b921245417de94dd228ce870f5e749169e29c46af29fb8
-MISC ChangeLog 24134 RMD160 a5ed0d165d28a465e45b1529dd0c2e7bfdf19c38 SHA1 4d6468b020ff366c036520e56ceb5265096d246a SHA256 3d795bd987fdb424bbf63a9ffd69904b82112bb7f47344a703bcba3b8636e9d4
+EBUILD ghostscript-gpl-9.05.ebuild 6376 RMD160 c33b3b9dac06d27c31eb6c4ed7e64334d67eaea5 SHA1 1d3ec68cfc84b1e1753829a328ccb478abc31ab3 SHA256 a59656fa93c48e39ac090b36f07e7e22f5698820359ac6d51e3c9cad1e7b6d53
+MISC ChangeLog 24306 RMD160 28e44eec42bf968f1826d99fc6b74f31fc7f5535 SHA1 d1dc45b4235a909aa81f714969d6c825c6c7393a SHA256 8d68d1dbee8d068d4fcde8c1391185d18a19901dd4bb062881ada2152dff8cf6
MISC metadata.xml 281 RMD160 021f72140851af4f6b5fd892d1c5ab485ebce970 SHA1 4b5de22d7f9078ea8935cb5616c73540f8ef4aab SHA256 8f54c529127270fee6cdc9e4db328d9403ff2183d2ce21317932c17fd58ad0d0
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.17 (GNU/Linux)
-
-iQIcBAEBCgAGBQJPKaviAAoJENwGBM22xffepNsP/2yI1RvPtQxxfAY0iPncNGTd
-YDdVkjz8wO0m6wItQ6SkRgHFCT2kukuO2n/scN9oDP2OACZ0mfh3Iad2bOVJYocF
-skxgGDaS/vrysvebWSDToaXbpKjLzlZFjAH+jqfQFEjWLoJbCs8YuBQVC6uyNKrD
-k4gv+uyn9SeLaI92YY+f+zuhhQUdvalyMEzL5UirgY+JaNWwDDAgqXqnDe3kPmI0
-kJLfRNQWyy6C9t5ULiYwbr/r6QUp54d7iIcP4tdHLF8b6UJFnDqe1DvYqtN6Awzy
-tI7JGzWZwO7YiDIBsr+MP8ptNV37C+BykJIHoJDyOKflZZC//ihcz1u9KTh32gyq
-fdXlTL8LDewBXaIDWvPNIH7Z2Hbts7nOmH1S8KTtC403POyDAX3jDllwvkyoxRHB
-QUokG5lXNEsMkHpPK91PluT1liTngag2U+hMzaHDypY/bNVeP5p/ksjXD3ZvwLC6
-lFd2KQhzI3iuuw+XTuy0p0OL9GylSLSNxVVtdwX+5pMoMguL8ILyeJZWzldqch0X
-WS15av3avYt8/M/IYyjxBEl+fA+tR5tjkHxeF4CnFYVvfsx1+BWFxogMqm+4bxn0
-ndCC45H7dy6CroOMkGCYjrOZ6VSF4Xe5aS4ZDpv6kGQPLh+Yz8sgvyC1cFQdVf/v
-l2YohvnELdoI2h+KmKhO
-=ff5V
------END PGP SIGNATURE-----
diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.05.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.05.ebuild
new file mode 100644
index 000000000000..8233a7456d48
--- /dev/null
+++ b/app-text/ghostscript-gpl/ghostscript-gpl-9.05.ebuild
@@ -0,0 +1,220 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-9.05.ebuild,v 1.1 2012/02/09 01:47:54 tgurr Exp $
+
+EAPI=3
+
+inherit autotools eutils versionator flag-o-matic
+
+DESCRIPTION="Ghostscript is an interpreter for the PostScript language and for PDF"
+HOMEPAGE="http://ghostscript.com/"
+
+MY_P=${P/-gpl}
+GSDJVU_PV=1.5
+PVM=$(get_version_component_range 1-2)
+SRC_URI="
+ mirror://sourceforge/ghostscript/${MY_P}.tar.bz2
+ mirror://gentoo/${P}-patchset-1.tar.bz2
+ !bindist? ( djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz ) )"
+
+LICENSE="GPL-3 CPL-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~ppc ~s390 ~sh ~x86 ~sparc-fbsd ~x86-fbsd"
+IUSE="bindist cups dbus djvu gtk idn jpeg2k static-libs X"
+
+COMMON_DEPEND="
+ app-text/libpaper
+ media-libs/fontconfig
+ >=media-libs/freetype-2.4.2:2
+ media-libs/jbig2dec
+ media-libs/lcms:2
+ media-libs/libpng:0
+ media-libs/tiff:0
+ >=sys-libs/zlib-1.2.3
+ virtual/jpeg
+ !bindist? ( djvu? ( app-text/djvu ) )
+ cups? ( >=net-print/cups-1.3.8 )
+ dbus? ( sys-apps/dbus )
+ gtk? ( x11-libs/gtk+:2 )
+ idn? ( net-dns/libidn )
+ jpeg2k? ( media-libs/jasper )
+ X? ( x11-libs/libXt x11-libs/libXext )"
+
+DEPEND="${COMMON_DEPEND}
+ dev-util/pkgconfig"
+
+RDEPEND="${COMMON_DEPEND}
+ >=app-text/poppler-data-0.4.4
+ >=media-fonts/urw-fonts-2.4.9
+ 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/gnu-gs-fonts-std
+ !!media-fonts/gnu-gs-fonts-other
+"
+
+S="${WORKDIR}/${MY_P}"
+
+LANGS="ja ko zh_CN zh_TW"
+for X in ${LANGS} ; do
+ IUSE="${IUSE} linguas_${X}"
+done
+
+pkg_setup() {
+ 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
+}
+
+src_prepare() {
+ # remove internal copies of various libraries
+ rm -rf "${S}"/expat
+ rm -rf "${S}"/freetype
+ rm -rf "${S}"/jasper
+ rm -rf "${S}"/jbig2dec
+ rm -rf "${S}"/jpeg
+ rm -rf "${S}"/lcms{,2}
+ rm -rf "${S}"/libpng
+ rm -rf "${S}"/openjpeg
+ rm -rf "${S}"/tiff
+ rm -rf "${S}"/zlib
+ # remove internal urw-fonts
+ rm -rf "${S}"/Resource/Font
+ # remove internal CMaps (CMaps from poppler-data are used instead)
+ rm -rf "${S}"/Resource/CMap
+
+ # apply various patches, many borrowed from Fedora
+ # http://pkgs.fedoraproject.org/gitweb/?p=ghostscript.git
+ EPATCH_SUFFIX="patch" EPATCH_FORCE="yes"
+ EPATCH_SOURCE="${WORKDIR}/patches/"
+ epatch
+
+ 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-gsdjvu/gsdjvu-1.3-${PN}-8.64.patch"
+ epatch "${WORKDIR}/patches-gsdjvu/gsdjvu-1.5-${PN}-9.05.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: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:" \
+ -e 's:-L$(BINDIR):$(LDFLAGS) &:g' \
+ base/Makefile.in base/*.mak || die "sed failed"
+
+ cd "${S}"
+ eautoreconf
+
+ cd "${S}/ijs"
+ eautoreconf
+}
+
+src_configure() {
+ local FONTPATH
+ for path in \
+ /usr/share/fonts/urw-fonts \
+ /usr/share/fonts/Type1 \
+ /usr/share/fonts \
+ /usr/share/poppler/cMap/Adobe-CNS1 \
+ /usr/share/poppler/cMap/Adobe-GB1 \
+ /usr/share/poppler/cMap/Adobe-Japan1 \
+ /usr/share/poppler/cMap/Adobe-Japan2 \
+ /usr/share/poppler/cMap/Adobe-Korea1
+ do
+ FONTPATH="$FONTPATH${FONTPATH:+:}$path"
+ done
+
+ econf \
+ --enable-dynamic \
+ --enable-freetype \
+ --enable-fontconfig \
+ --disable-compile-inits \
+ --disable-openjpeg \
+ --with-drivers=ALL \
+ --with-fontpath="$FONTPATH" \
+ --with-ijs \
+ --with-jbig2dec \
+ --with-libpaper \
+ --with-system-libtiff \
+ --without-luratech \
+ $(use_enable cups) \
+ $(use_enable dbus) \
+ $(use_enable gtk) \
+ $(use_with cups install-cups) \
+ $(use_with cups pdftoraster) \
+ $(use_with idn libidn) \
+ $(use_with jpeg2k jasper) \
+ $(use_with X x)
+
+ 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 \
+ --enable-shared \
+ $(use_enable static-libs static)
+}
+
+src_compile() {
+ emake -j1 so all || die "emake failed"
+
+ cd "${S}/ijs"
+ emake || die "ijs emake failed"
+}
+
+src_install() {
+ # workaround: -j1 -> see bug #356303
+ emake -j1 DESTDIR="${D}" install-so install || die "emake install failed"
+
+ # workaround: some printer drivers still require pstoraster, bug #383831
+ use cups && dosym /usr/libexec/cups/filter/gstoraster /usr/libexec/cups/filter/pstoraster
+ # workaround: do the same for pstopxl as of gs 9.05
+ use cups && dosym /usr/libexec/cups/filter/gstopxl /usr/libexec/cups/filter/pstopxl
+
+ 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/GS9_Color_Management.pdf || die "dodoc install failed"
+
+ cd "${S}/ijs"
+ emake DESTDIR="${D}" install || die "emake ijs install failed"
+
+ # rename the original cidfmap to cidfmap.GS
+ mv "${D}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die
+
+ # install our own cidfmap to handle CJK fonts
+ 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
+
+ use static-libs || find "${D}" -name '*.la' -delete
+}