diff options
author | Timo Gurr <tgurr@gentoo.org> | 2013-08-23 23:16:01 +0000 |
---|---|---|
committer | Timo Gurr <tgurr@gentoo.org> | 2013-08-23 23:16:01 +0000 |
commit | d4b353560082bc5d1ccd0a63d123614ecf8f7931 (patch) | |
tree | 59d634b474dd8f6f6fc8d4460557fba18afddd9a /app-text/ghostscript-gpl | |
parent | reintroducing 1.0.4, needed as a dep for metasploit (diff) | |
download | historical-d4b353560082bc5d1ccd0a63d123614ecf8f7931.tar.gz historical-d4b353560082bc5d1ccd0a63d123614ecf8f7931.tar.bz2 historical-d4b353560082bc5d1ccd0a63d123614ecf8f7931.zip |
Version bump, fixing bug #459216 and bug #481658.
Package-Manager: portage-2.2.1/cvs/Linux x86_64
Manifest-Sign-Key: 0x5270BA51
Diffstat (limited to 'app-text/ghostscript-gpl')
-rw-r--r-- | app-text/ghostscript-gpl/ChangeLog | 7 | ||||
-rw-r--r-- | app-text/ghostscript-gpl/Manifest | 23 | ||||
-rw-r--r-- | app-text/ghostscript-gpl/ghostscript-gpl-9.09.ebuild | 219 |
3 files changed, 243 insertions, 6 deletions
diff --git a/app-text/ghostscript-gpl/ChangeLog b/app-text/ghostscript-gpl/ChangeLog index 691ab38cc35d..4e44a5a4ddbf 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.155 2013/06/13 12:19:14 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.156 2013/08/23 23:15:51 tgurr Exp $ + +*ghostscript-gpl-9.09 (23 Aug 2013) + + 23 Aug 2013; <psy@gentoo.org> +ghostscript-gpl-9.09.ebuild: + Version bump, fixing bug #459216 and bug #481658. 13 Jun 2013; Michael Weber <xmw@gentoo.org> ghostscript-gpl-9.06.ebuild, ghostscript-gpl-9.07.ebuild: diff --git a/app-text/ghostscript-gpl/Manifest b/app-text/ghostscript-gpl/Manifest index 63138de0909e..b932184aefe7 100644 --- a/app-text/ghostscript-gpl/Manifest +++ b/app-text/ghostscript-gpl/Manifest @@ -5,11 +5,13 @@ DIST ghostscript-9.04.tar.bz2 29869900 SHA256 f82c20b44ad3c204e2b78afbcd03a32dd5 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-9.09.tar.bz2 30948923 SHA256 a6ffd670c082499230506fb67cb68aad61c7b1206d03d5f2065fa6e5e82796f7 SHA512 7349fa8253f8f2e035490a144709f1b0a7c516078ea2bfd5450a3de5a76032b905932959e612ec6d1a948aced65b76c32fa56cd10c3e256aca768ecf1fb7f012 WHIRLPOOL e8abfcd52c3bddb4a8201837b6e530fc13edbfba2b74e3b3ffc010fe85f43a5594099a6adb20129713301479e0f0842767511f06b047ba0f3f142d51ccc0b459 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 ghostscript-gpl-9.09-patchset-1.tar.bz2 4332 SHA256 f79dfa5535c9b01b7b436fdb8d9b2df6f72205fa13ee424f773d4d99628d40b9 SHA512 ced1c18f8fc72d6a5aa6f65d790c6fe56de9c29955869e64cc7a7dd0ea2bd1b76dde95ef3515fe8aa23c027d041a5e9bf122ba79ec0e6884a1198f8f6e83985e WHIRLPOOL cd788d54126763db3074fadb37b7718ece6664b4920e0b7a4fce386bab9dcfadde6ee0b72c3ecd4b8ade89568acfce6281ca175205cd3865c33bf7633c04369b 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 @@ -17,12 +19,23 @@ EBUILD ghostscript-gpl-9.05-r1.ebuild 6569 SHA256 46e5880fa763e81c05fe5a435af097 EBUILD ghostscript-gpl-9.05-r2.ebuild 6640 SHA256 8e93eeb41da171d2f38f5ddc391177cffb945e6f4f6e838f5ee4c9c8678d23c7 SHA512 fd0b518528c6cec5d3d4bc81121a4ffbec532fe2957dca59b71f44a971546194bd0206d7192f887ae53803a7011ce91fb745197881f0c155e957aff44a3a5ab3 WHIRLPOOL 036fb39defe7a44904dc1cb004586ae3bfafb267f99cd7d176682a8db8b1340a3607e0d0deb46669a7db83d9504c54694f5ba7244c02b39e553ce93f66cf05a3 EBUILD ghostscript-gpl-9.06.ebuild 6537 SHA256 ccc10643e5bacf57bd4c343a7b7bfb001c09ab1cd923334bf95bccf34ea15860 SHA512 7cb1a23c20a3b5af1dfeebf0dbf5cb7744b9a5d968e0adf3a8fcc302e622d677b954a07d9c594003a73ac301f399e8ca821723d602fe173132d7515138f82712 WHIRLPOOL 878104b107eb7f34c78bd9ba0145d5b8535d5f04c677d52ded8a52747cc90f01dd94ea5f3bab94780893fec1071c802feb1da8978a908f2a43581e745b190f3c EBUILD ghostscript-gpl-9.07.ebuild 6584 SHA256 a94e16b36eaf8a1ea4deb5ef37874740e0cbf3ebb020b3dd2682db7dfabe0b80 SHA512 5e59358a6c440fcf39355baf0c2c7b34bcddaf1fd1a337bf570e61b18f5b0ac08d42a25182baf2113dd1481830553fe0fac090ce62ef31d78a2280181e038c52 WHIRLPOOL 8ea405811034d9d3be180d22473668413fd058df83a09f04717a6b02f39e25aa1d58bc33d71b72db7dbd117a83ff457fc998204828ab62db0eebacb716fed5b9 -MISC ChangeLog 27781 SHA256 f0656a257081f8c4b7f7206bf20873634332a1495edd005abb964bd5311f4319 SHA512 036975d3e5699d50d3d57eab652bc87c7dac7b6624c8441db593b5f34b997f34e602cbc78706d86a3b4685a0d2cf8b518f54b342a2647bc5c1a2b051c8b5c8c1 WHIRLPOOL 23da007648bc243cec6660483211dfdffc71c829d511ae8c3ecd724ac44686ef18cd36de2b5ba35400d6439d87135443c3143d419b2a80b6bb8cbbd163381a47 +EBUILD ghostscript-gpl-9.09.ebuild 5950 SHA256 5ed17ff91355052067d749d86dc35267bdb6bfb8cd697b07471051373122b477 SHA512 d324ec30a0301293a9d0b2b81a3636c18a9a278a8a3be084e95f1ad67e1fa1dcf0273d0cda08dbca50b5239bd2c75a295bb482a37bf96462d3286179c4b103f1 WHIRLPOOL 9bd7ab8ef83a8b2e42a18699ec016adee51b2968142cd75dd9dbdae863eac477740733e55e5be4530dbfa41eb76cdf825d0a964fc2a85735aebe68933e2e91bd +MISC ChangeLog 27935 SHA256 d665c8457a672d7a4ffcdaeb4739842412788f638952f12315c9473e606cabd5 SHA512 168b79875a42f8ed6c1b2a4d3c4ba5237d09b99b83abf50cc9bd9d0de31dbf0895fd914687168e44373e058f4ab124f99b7c2a04714925be65de2291e1651710 WHIRLPOOL 5927e3188c4a5891ac67f7908ccf9f0dcfc395612033fdf5d6b38a589c3760c74a9ce32205a583240e094f532780538e45f7a9967e0c5625eeb7a414b526ab9a MISC metadata.xml 281 SHA256 8f54c529127270fee6cdc9e4db328d9403ff2183d2ce21317932c17fd58ad0d0 SHA512 bef432e957e5d7798630807a1398736811461b1e6b8f622125843e3b818256bc980a77b0e033f267b30ad30282ab4d158ca27433f59df868ef769e258526697b WHIRLPOOL 740da3c76002cb8712cac28a28851d529725ed4a18f486009e2f36f55155afa21103479f7975aa9fba8fe45195a048d3b5d756db7ed3a848e5f60a7b150d1f8f -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.20 (GNU/Linux) +Version: GnuPG v2.0.21 (GNU/Linux) -iF4EAREIAAYFAlG5uMoACgkQknrdDGLu8JCqdQD/YdDSXlDAzdbYQnW51WD8tfjU -fzJhFU4uGJLAZt3vmqMBAIPPdVHb0oJQ0b0q22D2sJkvRogeXVhTcF6XVMOvbDOA -=J4Vs +iQIcBAEBCAAGBQJSF+wNAAoJEGm3FC1ScLpRW84QAK9RX7+O5fjflDzJO/wobHPT +AeNPDnN6pwEs9bBdLPm4BR7O2OAjSqD7LA7mG3/s7LiVZxscjiT//bGKtvYffbIw +BtM8dmD2HRXc1IxYJvAVruMY77YQaMPVwqQaE0pm/SZPLhCbE/SGBsBjNPA7Tf71 +QznpIBVkHp1pRYjNBA6GQ2mt95xBS8uEy+uZTIOBfGxIG9rRWBVUwLDxGs7vWBF+ +uC5p/4gYnGxrd0tcDOBP8YTOP0ppTfTfDh9oaqOdawFLgkE3RIifqadsE2IXiKA4 +Ggma4CK85B3inyn6Q+DkEFK2piqxyjdlsD9nojYObtpPWYcle2mejrwDiM01+/om +O/aW5WIYqjfn7K+oqiDoduMHYWQTi85MvS1s8MQBvoj04aMpGbsW2gZRlzz55uyp +NbBSHb0TyE3swZhUeXxlK8kl0oD4SweaYY3HRaW2WiMb2bXdkLw8moWEh00fEhzH +7YuUq82MXi1xEUX8CLItJ6PUXByCLBDPh1x791fSXOPHHW1fgfEdc6qVBkQ54JFB +TwkcFqvx+pjVQVPgshMxlSfGZ/puryb2/PhOHs49ioB1i2by9k6sBkZtEGXGWVul +LC8AeasXP7MWxSGE96GB23SbjuraM7oPFvBy8Kl6Hm+cZoS7tg65Ibg7mrUS/wzM +3NeHtQT4NHgyducmCuyF +=SH+S -----END PGP SIGNATURE----- diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.09.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.09.ebuild new file mode 100644 index 000000000000..fa8ed4527bc0 --- /dev/null +++ b/app-text/ghostscript-gpl/ghostscript-gpl-9.09.ebuild @@ -0,0 +1,219 @@ +# 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.09.ebuild,v 1.1 2013/08/23 23:15:51 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 linguas_de static-libs X" + +COMMON_DEPEND=" + app-text/libpaper + media-libs/fontconfig + >=media-libs/freetype-2.4.9:2= + media-libs/jbig2dec + >=media-libs/lcms-2.5:2 + >=media-libs/libpng-1.6.2:0= + >=media-libs/tiff-4.0.1:0= + >=sys-libs/zlib-1.2.7:= + 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 ) + 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 + !<net-print/cups-filters-1.0.36-r2 +" + +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}"/cups/libs + 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}"/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 "${S}"/contrib/contrib.mak "${S}"/base/contrib.mak.gsdjvu + grep -q djvusep "${S}"/contrib/contrib.mak || \ + cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}"/contrib/contrib.mak + + # install ps2utf8.ps, bug #197818 + cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}"/lib + sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' \ + "${S}"/base/unixinst.mak || die "sed failed" + fi + + if ! use gtk ; then + sed -i -e "s:\$(GSSOX)::" \ + -e "s:.*\$(GSSOX_XENAME)$::" \ + "${S}"/base/unix-dll.mak || die "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' \ + "${S}"/Makefile.in "${S}"/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 \ + --enable-openjpeg \ + --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_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' \ + "${S}"/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 + + if ! use bindist && use djvu ; then + dobin gsdjvu + fi + + # remove gsc in favor of gambit, bug #253064 + rm -rf "${D}/usr/bin/gsc" + + 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 +} |