diff options
author | Andreas Hüttel <dilfridge@gentoo.org> | 2012-05-01 22:43:34 +0000 |
---|---|---|
committer | Andreas Hüttel <dilfridge@gentoo.org> | 2012-05-01 22:43:34 +0000 |
commit | c94e9d39969db4b14c8c37b75bb9ed82d50c8bbd (patch) | |
tree | 92eb489c0a83ae5380a92bc49e267b565dbd41e0 /app-text | |
parent | initial commit (diff) | |
download | historical-c94e9d39969db4b14c8c37b75bb9ed82d50c8bbd.tar.gz historical-c94e9d39969db4b14c8c37b75bb9ed82d50c8bbd.tar.bz2 historical-c94e9d39969db4b14c8c37b75bb9ed82d50c8bbd.zip |
Add symlink for poppler-data integration, bug 409361
Package-Manager: portage-2.2.0_alpha101/cvs/Linux x86_64
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/ghostscript-gpl/ChangeLog | 8 | ||||
-rw-r--r-- | app-text/ghostscript-gpl/Manifest | 23 | ||||
-rw-r--r-- | app-text/ghostscript-gpl/ghostscript-gpl-9.05-r1.ebuild | 223 |
3 files changed, 247 insertions, 7 deletions
diff --git a/app-text/ghostscript-gpl/ChangeLog b/app-text/ghostscript-gpl/ChangeLog index f8f1e9ec1001..abcd9e35debb 100644 --- a/app-text/ghostscript-gpl/ChangeLog +++ b/app-text/ghostscript-gpl/ChangeLog @@ -1,6 +1,12 @@ # 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.137 2012/04/26 21:11:46 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.138 2012/05/01 22:43:34 dilfridge Exp $ + +*ghostscript-gpl-9.05-r1 (01 May 2012) + + 01 May 2012; Andreas K. Huettel <dilfridge@gentoo.org> + +ghostscript-gpl-9.05-r1.ebuild: + Add symlink for poppler-data integration, bug 409361 26 Apr 2012; Alexis Ballier <aballier@gentoo.org> ghostscript-gpl-9.05.ebuild: diff --git a/app-text/ghostscript-gpl/Manifest b/app-text/ghostscript-gpl/Manifest index e0d8f20dfddd..2eddba0f3efc 100644 --- a/app-text/ghostscript-gpl/Manifest +++ b/app-text/ghostscript-gpl/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 +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 @@ -10,13 +10,24 @@ DIST gsdjvu-1.5.tar.gz 207583 RMD160 010be2cd791d5e2814c1f6554150bfd7c34222c0 SH EBUILD ghostscript-gpl-9.04-r4.ebuild 6125 RMD160 fc9b4e874c8ceacbd2b631ad8c91b9f3ce15642f SHA1 33575fa94912a26cf62984a4b2ad1e6cec6408bd SHA256 4329932925338f3afd50d6391299fef1857e1ed954dfad1de2c74dfa27fd708a EBUILD ghostscript-gpl-9.04-r5.ebuild 6102 RMD160 749e7a5738b7c8ca40ac292d21361de22126569d SHA1 611ecd569188ec6eab94e03a18efdc2358ca0b19 SHA256 97dbb2d4906da8f8b958ecd5ed7d47ad0d3f73bfea429a63b277ed7d4fe240c3 EBUILD ghostscript-gpl-9.04-r6.ebuild 6185 RMD160 c71781dd7379d2aba538b336e068fb07fef224da SHA1 a2bfd97ae5d1184dab888e6a9609c901b23ac443 SHA256 a3e45eace36577310af5c6232ffaf66c17fd6bea03a02ffd95aabf28672f39dc +EBUILD ghostscript-gpl-9.05-r1.ebuild 6573 RMD160 95371baf2542bb9f0e34c82f97cf44b619f8af3f SHA1 518a515f80f98fdae75d70be1b369ff03c7f8db4 SHA256 17806eba979a1051d05b11ca859c52f59ee17bae70c129c34a218e2eff93ffd1 EBUILD ghostscript-gpl-9.05.ebuild 6429 RMD160 7683f47dfdeece536176dbebcea69b3bbaac64fa SHA1 4026ad18731e64ea800b815f53299f90e2c5d221 SHA256 3b245a8c216b20b9c882aa6b54a32badac31ef0a0d7cfa10f069c8d432f0d505 -MISC ChangeLog 24964 RMD160 f1c6380fa894db21b5245b5f14a1fd3a3a901863 SHA1 756d081b98aeb8af1fc4ddbc20c15fae0ea87b1c SHA256 564fa458e523091ba054f509192f27deb6b05bad76f13d918b484aaf7d4bba4e +MISC ChangeLog 25153 RMD160 d1e3a577b704fca99ed64b78e0a04dd45f59006e SHA1 42001a94a157de15e1ef9c916a717ff375ec8ef2 SHA256 7065f4711edeb515cea430f12fd485a00e360272615955c60c81e627cb9a05b9 MISC metadata.xml 281 RMD160 021f72140851af4f6b5fd892d1c5ab485ebce970 SHA1 4b5de22d7f9078ea8935cb5616c73540f8ef4aab SHA256 8f54c529127270fee6cdc9e4db328d9403ff2183d2ce21317932c17fd58ad0d0 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.19 (GNU/Linux) +Version: GnuPG v2.0.17 (GNU/Linux) -iEYEARECAAYFAk+ZuhgACgkQvFcC4BYPU0q0mgCdE673T7G1DAs2pNQn+2mBQFAv -bigAn0kKxs7rdsTicwCy0KjanXh/V1Za -=g4u3 +iQIcBAEBCgAGBQJPoGc1AAoJENwGBM22xffeOGYP/1BcHdecCa8WYEAF/r29ALa0 +Sb9Fnl3F7dYJ7Sg+UflRVbILOPNp0Iasn2zVrYaj29CGL+yqEYahFR3ooQHPg8JW +OEznwRwA9AAYaOJNeJUxGYg4hQx2cs7AL1W5plNY6mCvECtY6mHOU+1Hmh7fgBQf +3+JiNy7xJez2l8qTDOxeXvdjZTp0pgIzqnAXuKLOEsPZA+YuJ+UKCoVxD3qj77Yk +OKbAO5WFxhmSxgOU3To1jzxL+fW5JvcCcJGZqZAmmaVIMKmyKehzA56bFaHC2w5e +fJg6aQxuClicOS0ysjp4GBTh8ZlSM1pIvz3r1IyTN/7RyrHWUSYhGcvBJ+rbXj28 +rK9S3WgEre6AnDX2GrnzSDCWnYBCM/PnNOdFE0CGZSQ2jrjH7LNWFoEJVP0GIaQy +ddMb+lHMnXh0e8lnwLNhCkkfKkwq3N+tv4FpvD+Kn2+Q8DkMU0njwGsPm5ThDQo8 +7WjSEVy4KhQUJzV24qnBP4E8O7Wd6y7xWwn4hvXQVvTKVIQtjtp+mmHD9QgZNdas +Z+vT4jqOyriie9qvsHIFA0+duHvepbwoyhe4/wQvwDM9OJSmfVI7hDU4vmsYJ6Ja +/Nw8SGgDBagtnlLujD4pOnddEsoGIW6TQusv4MeDuRlt0GMCbwFOtLTSzCWQwIbD +90AqzNqrI5iD1itSVMMd +=z+mP -----END PGP SIGNATURE----- diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.05-r1.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.05-r1.ebuild new file mode 100644 index 000000000000..ff6f4971cade --- /dev/null +++ b/app-text/ghostscript-gpl/ghostscript-gpl-9.05-r1.ebuild @@ -0,0 +1,223 @@ +# 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-r1.ebuild,v 1.1 2012/05/01 22:43:34 dilfridge 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="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~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.5-r1 + >=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 + + # install the CMaps from poppler-data properly, bug 409361 + dosym /usr/share/poppler/cMaps /usr/share/ghostscript/${PVM}/Resource/CMap + + use static-libs || find "${D}" -name '*.la' -delete +} |