summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Gurr <tgurr@gentoo.org>2013-06-08 10:24:31 +0000
committerTimo Gurr <tgurr@gentoo.org>2013-06-08 10:24:31 +0000
commit6ba9efd41eb82316d31046b851bc2676cb316bd5 (patch)
treea858fd391b01bcca2850da0de9395dbcf5eeb04d /app-text
parentStable for ppc64, wrt bug #471392 (diff)
downloadhistorical-6ba9efd41eb82316d31046b851bc2676cb316bd5.tar.gz
historical-6ba9efd41eb82316d31046b851bc2676cb316bd5.tar.bz2
historical-6ba9efd41eb82316d31046b851bc2676cb316bd5.zip
Version bump, fixing bug #460798. EAPI5, slot-operators, new LICENSE.
Package-Manager: portage-2.2.0_alpha177/cvs/Linux x86_64 Manifest-Sign-Key: 0x5270BA51
Diffstat (limited to 'app-text')
-rw-r--r--app-text/ghostscript-gpl/ChangeLog7
-rw-r--r--app-text/ghostscript-gpl/Manifest26
-rw-r--r--app-text/ghostscript-gpl/ghostscript-gpl-9.07.ebuild231
3 files changed, 262 insertions, 2 deletions
diff --git a/app-text/ghostscript-gpl/ChangeLog b/app-text/ghostscript-gpl/ChangeLog
index b4e12cda7faf..d455b8189ccf 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-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.153 2013/05/02 02:03:32 tgurr Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.154 2013/06/08 10:24:12 tgurr Exp $
+
+*ghostscript-gpl-9.07 (07 Jun 2013)
+
+ 07 Jun 2013; Timo Gurr <tgurr@gentoo.org> +ghostscript-gpl-9.07.ebuild:
+ Version bump, fixing bug #460798. EAPI5, slot-operators, new LICENSE.
02 May 2013; Timo Gurr <tgurr@gentoo.org> ghostscript-gpl-9.06.ebuild:
Fix automake-1.13 compatibility, bug #467100.
diff --git a/app-text/ghostscript-gpl/Manifest b/app-text/ghostscript-gpl/Manifest
index f62f0cef8b54..bb1cf8ba8732 100644
--- a/app-text/ghostscript-gpl/Manifest
+++ b/app-text/ghostscript-gpl/Manifest
@@ -1,14 +1,38 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
DIST ghostscript-9.04.tar.bz2 29869900 SHA256 f82c20b44ad3c204e2b78afbcd03a32dd523d26f5e18bf4508f3dfcbbfd30bc4 SHA512 f4fd2b5d82a1f9aa918f21a85571f3684778be5b6fe868ae19165717b212aac99b515bb94e3589c3a01b7f836829a283da2162583d4d2dc3c7c267b1926a17ed WHIRLPOOL fdbff23bcbcab63877e9b6e3056af8c47d121103b41dc4774392b90ce7775737d31dfb80dd4e5a26a5caeeab7dbbfd2fb096cc928e8ecfa5feab81ff715dd9fc
DIST ghostscript-9.05.tar.bz2 28279634 SHA256 0f41212af3a5a552ab2302cd90606dc8245be34490a699726dc95ed3cd89ceac SHA512 4a83c42a73fdb5139f02d1b9c8364d0b0f24e8d2952a622f94a8398d71ced8839ee868562d0bf3be048e34cae5ab0adc5eb43d2fb50f5154fe186e8329257913 WHIRLPOOL b5eb32c3551a82bd740674288471c0f050e612ecb709e38339e5eb6d7691f11af760dbc37f6002cf99e969b9ecc2fa296e7a35d97f3e647f86e4e194a91e29e8
DIST ghostscript-9.06.tar.bz2 29246039 SHA256 05acd1b576899572ef8ecbc25637cf73cbd0be267e651732db3012db33088e04 SHA512 99f7a56316bf96d55c0cd7b07c0791ad4e6ee0d3a8f3bfa04ea28890ea9ed822ebcd7084cc8118cc38dc5def27c91c24eebc08a20a630463a9bf9d0193d0923b WHIRLPOOL a44e19c15440b3fa43233f05b3236ea6834a9f6ac2e7be5174685e6a377ad4a4e7a7cc58fa3df7072ed893d0d76e4bb83b0e890a2d8c45f496c753cb958c7b32
+DIST ghostscript-9.07.tar.bz2 27776111 SHA256 1e3ee857743bad34280a1186bd92bb486cd847ccd1a838919f82bc96f6687410 SHA512 7e075b82afd8057adb5b788d64e7bf6e1c769dd64acd74b8be13621504521ba088b3115984b0610967c1da6a54f6d824f7fef36b79264a949408912fc9a558d4 WHIRLPOOL e3331956a4a7d913031d88bb2d110e69c2ac1a77dfebff741bc18e51728e6786d79007c96ddce65e23e101aafeb1534e68922de6019c74d978294d62f70d4f62
DIST ghostscript-gpl-9.04-patchset-3.tar.bz2 7760 SHA256 b3c20adc111b8ddf3bc7d60a01fa1b31eadb9d6d9eb8ac474d9aa1604bd51b6f SHA512 d8565b04cfd90a064d32aaa241d4ab4e477a04458aec1a27f273ae61ed7dd064758d7c77f3926b9baf759855953e4e178ca4d83a25e652a9263b62f5ffb137ae WHIRLPOOL 659ccace6e08bc12b0006281b08b5b63bedbee6ded9efd6055c8c6d56d01ee39f10d1974de1dcc31b4bedbedab4e79cf4a088b05a56de7bed467caf3b0ee1ad7
DIST ghostscript-gpl-9.05-patchset-1.tar.bz2 4480 SHA256 30e31b11e72a115ee2cd3d01f6a638bc808427bc9579e8c9e1f84b073a19fa9f SHA512 f9613c07c7a67f8dab5b3e67530c9b2686cf5903ed541e659ecb1e0245b2bc85a18eb4a0a6c21e51c0575eaceabd68983c5a605924a53d9e3236c05534d88daf WHIRLPOOL 5fe85b045d0318308d217ed461362a029475bd0c529490aca5b21160bcd8c4cd7eba2807c42114dd42c25e2a01e58b708563547eb8d314e3c4f70b086689ad85
DIST ghostscript-gpl-9.05-patchset-2.tar.bz2 5525 SHA256 1deadf8ed034353ffc14230b66cd438774bd6def03e6f93943f5200bbd01695b SHA512 c14ee057c7c1769e4bc4b3c52d910172dd45524318d6278f8f62f3f4535160412010ad8d426f96ee6fdf24a662859e3079205b9250496d6d69943f3972065d0c WHIRLPOOL 2de3c1bb38aff30c572a2f8ffffb31029215fcd30e075256cae7fb71044a1a635c20df77ef043f20f5ddf91668b820ddbb8052ea43dc326f2af3ecacffbb9568
DIST ghostscript-gpl-9.06-patchset-1.tar.bz2 4887 SHA256 ddf952730a6eec7885150faa8cb221d4a8d4a07b9ecb38043a7eb97f61f9c263 SHA512 d49f9b7454c7d4513620736dcd7163c347bc25210ab2b63edaa021d91ea3fa91d0c14fef4bb15e88c516562b0bb67ac0b81826c826daf946ac872d093a5e8ce4 WHIRLPOOL fc223217a662c1d7741e883c120afe0509bf767e3fd9afacc0ae5bca7869cda7b3c2c6f12a56b6a1c408487516fa3a8ffb3554d22f7962f934253cad7dbfd732
+DIST ghostscript-gpl-9.07-patchset-1.tar.bz2 133934 SHA256 7b8904025d5c9ab75537802ff9ad6049eb83fdfd477b0cf0e639b1ae6b7fadff SHA512 d9aa4df9e59411729d07ccd3c01a288004c12a2c0eaecbc0ccea33cb9c1be1449997d19ad01efe826ad25590e1a972ec964ff1416bc9552445c17f8c215776b4 WHIRLPOOL e6fafaae8f7c12b685f60cea48e1179d83a36e14d28b0900bfabe73e5cf605dba86fd7672ba22c98a1c7cf8d24a3622355090693248b1c37dfbb8f651db96396
DIST gsdjvu-1.5.tar.gz 207583 SHA256 d4f01d605ff086835005e79d5fcead2def8aafafc106e170dc5f2dc618593ab4 SHA512 8b59e38f754b325717b0b299e64479688f31fafb7a40f7d9cc32243c45fcf1de88e6f9367c4f77c17395cebbfbe7865eb21fc9c328b4f9f97e0f398c7cc0aafe WHIRLPOOL 08267e1ada37ef8ea7cc7d6a4f264515b964d8e87bad4320d9c2b5e8117bc89dcb5f4885656d5904c0ced4d91393b875a7e9618b2f6bfd71788aba46d823bcf8
+DIST gsdjvu-1.6.tar.gz 207122 SHA256 6236b14b79345eda87cce9ba22387e166e7614cca2ca86b1c6f0d611c26005df SHA512 57f3866f1f863fa31f066b45ee679cfbdf2c6a9bec922f24fa9f50dd3ea52f192b4c9889b0c9657e96ca9e3528d3fea7dcc53b4d1ea87dd49d138ce9c9684884 WHIRLPOOL 66e5222412d9da2d616ba0a3f73548d031b3e6726eff7bc60bea703b02ce4d22e100adad1faf3fabaac379b4ef8324324eabb8b5320f74ebafe929b577dd6c8d
EBUILD ghostscript-gpl-9.04-r4.ebuild 6131 SHA256 3d22b719489e5d23d8bc93d249cdf2c62afaa0bd59abf6b5d9f53527d25dc2f1 SHA512 f87a51adcc60ca0595559e18eb98771c9869bf4b179cf9e1d87837d48ecc39d22eb8c38b2703115814d228bdee9d1df0531a0bf531911fd83c7ce3aa32c3152a WHIRLPOOL 5e092754bf360f80eb941e412c2e13e1c8cc0b550ec1bfca67e0bce54bfe1aadda273bf0030869fd83f5762f6317fcc0620567c66de07149c46ebd054c38e884
EBUILD ghostscript-gpl-9.05-r1.ebuild 6569 SHA256 46e5880fa763e81c05fe5a435af0973f53df3951f5eb1c07148543b7a5f80dab SHA512 cf81b259ed654116a6073212f4ea692b2d2b73e59cc4a162dc3fb96e3c825b04ffe1370b9af1da36742c43a20ea470a022a18550de2314e3c11a2f62d7464d2f WHIRLPOOL 58eb99a58d8859031cda4a67bead841c7150d382f28319bb3f87f0cbc332ee808fa71f4d1a44c1145b255067693d44d2457afee11bab4c4bd5359f948a43ad31
EBUILD ghostscript-gpl-9.05-r2.ebuild 6640 SHA256 8e93eeb41da171d2f38f5ddc391177cffb945e6f4f6e838f5ee4c9c8678d23c7 SHA512 fd0b518528c6cec5d3d4bc81121a4ffbec532fe2957dca59b71f44a971546194bd0206d7192f887ae53803a7011ce91fb745197881f0c155e957aff44a3a5ab3 WHIRLPOOL 036fb39defe7a44904dc1cb004586ae3bfafb267f99cd7d176682a8db8b1340a3607e0d0deb46669a7db83d9504c54694f5ba7244c02b39e553ce93f66cf05a3
EBUILD ghostscript-gpl-9.06.ebuild 6537 SHA256 b2ff61f7ebb35711e29447d301718b0dbddf041a0084f5d14f33e6ac90f98deb SHA512 7edbeb8f01192ba517b9c7e79236fd6255c521211e03453c45827ddbcc57182ca3a1c4be436f48367ed829099f87132a7ff96566cb8a5194ec9485ba99931c9b WHIRLPOOL 4ab9d71365db0d556e3930e3b125984ecfc4ce45417e202d7fdb6f510cbdaf2dbfe3ccbdebfd4302672645bc6263bb6b8f691f60f69e50e0f4a06a3207650aa6
-MISC ChangeLog 27438 SHA256 7db389a0853bdb1ac7fdbf4af10e59623cf14490b47a6649e7d136f480d75cf4 SHA512 3eb5b6afedce7d803103849b624c8e174ae424a30acd88ed76f9d2281337936e32cab1958c06dd2ba5a4abcd199d163db9014ba6212cc9f738538d25dd3e2a15 WHIRLPOOL 7538e6156486f9db248ee1e1d51935cdad42d0afa4d2fa70b1952bba9021726cd0e899f82ad7cfde1c759fc1d40b11736d14c63793f21760dbdc96c9467f7ab3
+EBUILD ghostscript-gpl-9.07.ebuild 6584 SHA256 58f71b74994ffb7d3e267ceff1a17f7241af97fc52b88b5fd9b152c7b6af7b7f SHA512 1ea98f97e7211f2f482964e9ae5845e1bed0ba0c9d592e9826c34a13396cf8bbe2723848b871b2743642df9cee51b6daf69c228cdc26f7b2ae387ce37cb17baf WHIRLPOOL e2cb549e2fd3a88b1de8f182017fa237f28570b0ba98d3059ac6190ca81e523ecfa248ecbb74bc5dbd0036f1ccaefcc717954f169bc2de4815bbcbc5a756e934
+MISC ChangeLog 27622 SHA256 07a7dea6beb04b4735d48e65ea51387ed162f8cdf3a7cc236b05597bd0865901 SHA512 ca8115c098cff5261c6510c345ce589ebca4ad0a73cd7feeb804669012a5fef551b5f0e2a36e375d156ee6e96fec44fcf7de3bd432a240fc1254c0672c68d6a1 WHIRLPOOL 80c5927809abf4ee6a635beb4623a511ccf852e1b7ace585f9b42675772afc04d475b7b088bcf9a170ec0d6d50a73a836124a877745a531a4c50cb1563e380aa
MISC metadata.xml 281 SHA256 8f54c529127270fee6cdc9e4db328d9403ff2183d2ce21317932c17fd58ad0d0 SHA512 bef432e957e5d7798630807a1398736811461b1e6b8f622125843e3b818256bc980a77b0e033f267b30ad30282ab4d158ca27433f59df868ef769e258526697b WHIRLPOOL 740da3c76002cb8712cac28a28851d529725ed4a18f486009e2f36f55155afa21103479f7975aa9fba8fe45195a048d3b5d756db7ed3a848e5f60a7b150d1f8f
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.20 (GNU/Linux)
+
+iQIcBAEBCAAGBQJRswWrAAoJEGm3FC1ScLpRRO8P/AoLtKwzGz3Hal7CF/lQ666y
+z7AcMoTI3g52G17E57XtvSQuerfkmw+GhtlYT9IBUquXq1sYC3omcgkskD12SFuZ
+43jUKDzoIJVLVP+fy7hQADfZaCZk7zBhj0YrVgumYGRrHBL6A1ThKFhjrQ1Rtqfn
+TfmAOVjBscGhwzs1yAFyqEzTrRJeh03zcm6klRTGcb++fuZ1v4X4QdY2UwQK9e/+
+EnHOL5x2NDcWeRpfLTTBhmtnYrNfKZR9Fl6u4mXSB9VW2UxaqJQP6FEDeFUnZgdn
+sYPUjii4OVl7qfukRJDqj9zU5JkIoQnBYjHYZeGX60O0RhAFFJbUaN3N/pN98Qff
+1dClHhrDdzjygH0CeAA4XK8yQ+8PPVi+26G0+dKmwXWHWJLDh8F6XHb7h9YDSTX8
+ZWSafpuJ9IQ+SUetrKGPnwKs477EQ0hsMOEVLfyZkAEIYqgMQ+VIlVmOS6HoosXi
+bS1p5lGjTes6pf4ODU5tb+QG25ZNu1baPpmHBBWghv9eIUe2Cn9Bv6LsOPLQwhz+
+e1+HGJf+0w4Ul0zb+aBCxfE2lmn/RW3kRVgwwgAgsvTAbPsARBFY6PuUctYYG3Ja
+2QmgVQRxVFPT8yPSNxqi3kfpgoTPuyzlj4LdOV0zYrsGF3C6ebtLmzDP2BMDIMMX
+wYk7o0K3CnFl9en8AAuQ
+=0BBb
+-----END PGP SIGNATURE-----
diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.07.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.07.ebuild
new file mode 100644
index 000000000000..99657359d4f7
--- /dev/null
+++ b/app-text/ghostscript-gpl/ghostscript-gpl-9.07.ebuild
@@ -0,0 +1,231 @@
+# Copyright 1999-2013 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.07.ebuild,v 1.1 2013/06/08 10:24:12 tgurr Exp $
+
+EAPI=5
+
+inherit autotools eutils multilib 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.6
+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="AGPL-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 linguas_de 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.4-r1: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+:3 x11-libs/gtk+:2 ) )
+ idn? ( net-dns/libidn )
+ jpeg2k? ( >=media-libs/openjpeg-1.5.0 )
+ X? ( x11-libs/libXt x11-libs/libXext )"
+
+DEPEND="${COMMON_DEPEND}
+ virtual/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}"/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"
+ 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"
+
+ # bug 467100
+ sed -i -e '/AM_PROG_CC_STDC/d' ijs/configure.ac || 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 \
+ --with-drivers=ALL \
+ --with-fontpath="$FONTPATH" \
+ --with-ijs \
+ --with-jbig2dec \
+ --with-libpaper \
+ --with-system-libtiff \
+ --without-lcms \
+ --without-luratech \
+ $(use_enable cups) \
+ $(use_enable dbus) \
+ $(use_enable gtk) \
+ $(use_enable jpeg2k openjpeg ) \
+ $(use_with cups install-cups) \
+ $(use_with cups pdftoraster) \
+ $(use_with idn libidn) \
+ $(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 \
+ || die "sed failed"
+ fi
+
+ cd "${S}/ijs"
+ econf \
+ --enable-shared \
+ $(use_enable static-libs static)
+}
+
+src_compile() {
+ # workaround: -j1 -> see bug #234378
+ emake -j1 so all
+
+ cd "${S}/ijs"
+ emake
+}
+
+src_install() {
+ # workaround: -j1 -> see bug #356303
+ emake -j1 DESTDIR="${D}" install-so install
+
+ # 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
+ fi
+
+ # remove gsc in favor of gambit, bug #253064
+ rm -rf "${D}/usr/bin/gsc"
+
+ # pdfopt binary has been removed, also remove the man pages
+ rm -rf "${D}"/usr/share/man/{de/,}man1/pdfopt.1.bz2
+
+ rm -rf "${D}/usr/share/doc/${PF}/html/"{README,PUBLIC}
+ dodoc doc/GS9_Color_Management.pdf
+
+ cd "${S}/ijs"
+ emake DESTDIR="${D}" install
+
+ # 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"
+ doins "${WORKDIR}/fontmaps/cidfmap"
+ for X in ${LANGS} ; do
+ if use linguas_${X} ; then
+ doins "${WORKDIR}/fontmaps/cidfmap.${X}"
+ 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
+
+ use linguas_de || rm -r "${D}"/usr/share/man/de
+}