summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-07-18 21:50:27 +0000
committerMike Frysinger <vapier@gentoo.org>2012-07-18 21:50:27 +0000
commitbaa646a8d72e753ddb308c1250d69c0cc0715ea2 (patch)
treeb2980d86bbb59488a5187025363d10c361142d4e /media-libs/netpbm
parentAdd version that builds with any cups including 1.6, make others depend on <c... (diff)
downloadhistorical-baa646a8d72e753ddb308c1250d69c0cc0715ea2.tar.gz
historical-baa646a8d72e753ddb308c1250d69c0cc0715ea2.tar.bz2
historical-baa646a8d72e753ddb308c1250d69c0cc0715ea2.zip
Version bump #426582 by Bernd Feige.
Package-Manager: portage-2.2.0_alpha116/cvs/Linux x86_64
Diffstat (limited to 'media-libs/netpbm')
-rw-r--r--media-libs/netpbm/ChangeLog7
-rw-r--r--media-libs/netpbm/Manifest62
-rw-r--r--media-libs/netpbm/netpbm-10.59.00.ebuild152
3 files changed, 190 insertions, 31 deletions
diff --git a/media-libs/netpbm/ChangeLog b/media-libs/netpbm/ChangeLog
index 67e521aef8e4..2081f6ed0e66 100644
--- a/media-libs/netpbm/ChangeLog
+++ b/media-libs/netpbm/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-libs/netpbm
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/netpbm/ChangeLog,v 1.264 2012/07/03 16:25:35 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/netpbm/ChangeLog,v 1.265 2012/07/18 21:50:27 vapier Exp $
+
+*netpbm-10.59.00 (18 Jul 2012)
+
+ 18 Jul 2012; Mike Frysinger <vapier@gentoo.org> +netpbm-10.59.00.ebuild:
+ Version bump #426582 by Bernd Feige.
*netpbm-10.58.00 (03 Jul 2012)
diff --git a/media-libs/netpbm/Manifest b/media-libs/netpbm/Manifest
index 8cd1f9089bd8..470d9b5fdb82 100644
--- a/media-libs/netpbm/Manifest
+++ b/media-libs/netpbm/Manifest
@@ -1,37 +1,39 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-AUX make-tarball.sh 1053 RMD160 7a1162c62434633450c610ca7ab354a5163515a7 SHA1 e3fba0ef30a08d9754257eaaab94d368117b52f8 SHA256 247827b36f85878195ad30f1a1ec3a4edf9992ccafcd4f66ce4fa18910abd731
-AUX netpbm-10.31-build.patch 1629 RMD160 4226692b199871b3bfb27a9e6fec97d8ac1a4bf6 SHA1 574bd4443c6dbd8a2508bc2d2e3096cfcc815710 SHA256 eaf363941337718390856c318c8e69114c8fb9dbcea8b07755350dbdabce6323
-AUX netpbm-10.51.00-pnmconvol-nooffset.patch 3930 RMD160 c54357f13fc1147b8020b523b9c28c5ffd381647 SHA1 e3bf297d209783bfe15d2257b47dc3ed9b492826 SHA256 d9c7f70e58d50dac4998157021ac2fef92822d1abd9b9d060384b195e4f1cabb
-AUX netpbm-10.51.00-ppmtompeg-free.patch 1199 RMD160 3e3594fc27166423904ec56c0d17e427811614cd SHA1 ebe9561fd836c930ebd417cb81f507e502b36d57 SHA256 45c0229b035e8b50f759a5aae646a60ef07f4c0fb156b4aee1dc52aa0c1cbc75
-AUX netpbm-10.51.00-underlinking.patch 657 RMD160 c95af06e30622d8eeab0138001357da44314a062 SHA1 ae55ffd420c4a3d9d1c2f6a3e255438c09535572 SHA256 f933003b9c50717d76abaf3272b9bef66b328629a8791144fd0038e692989b95
-AUX netpbm-10.56.00-alloca.patch 254 RMD160 075f2302525319868550c513547111ec5a0a3b24 SHA1 14393dd033c170b775d5dff2a7990769035bac96 SHA256 7e26ef344eb80320a63e1614f6964da7daf52bcdf276b3d83fe2115f0a4ee144
-DIST netpbm-10.51.00-libpng-1.5.patch.bz2 8120 RMD160 49ee4fe57f170ffc1fb5470440dc840f0fb5387e SHA1 a6f0c2e37a5cb051e3c9275918c7e5b34c396aa9 SHA256 260a5f0e9834e7e1aa5c2dcc292695aa43b5aa198af1cb33e5705f7cac10da7b
-DIST netpbm-10.51.00.tar.xz 1834148 RMD160 71593d33e102de72230fbc306165ecc67bbb4c4f SHA1 ae5f9393ebcc75b0914f40c93a837de98a0a71c8 SHA256 6d7bb30d1d0e7f6a23b55c6f03bbb20b539909ad84281dc944b1072656dc1d0e
-DIST netpbm-10.56.00.tar.xz 1881348 RMD160 b8eb01b9db2a91919319627335a9fc92dd5e5dad SHA1 6b1b9f8926ea7c4bc739255cf0c1d39f7751a169 SHA256 2169916c7c03bea90449f87b911a97f961565aa2b0123ab9f72b70d9429b172f
-DIST netpbm-10.57.00.tar.xz 1884452 RMD160 338e373658fca12826761d66a496ef85077dd330 SHA1 948545bcabe78b3610bc0ddb38606076854468fc SHA256 128ee11c173d8ae96c4c1fa71084200ed22cca9df7b1b7fbdd4e23dbf78a8357
-DIST netpbm-10.58.00.tar.xz 2521144 RMD160 fd20dff32f2cbe37ccff1a03b1140cc2cad8fdde SHA1 aac0c4b9f73ea3ad3baff9d9ef8fe50aa69f19e1 SHA256 e98eb3a039b401981825cad746a7733ea07750e5b6bde0adf68ea1ac31987bd5
-EBUILD netpbm-10.51.00-r2.ebuild 4868 RMD160 1b4f7226fde38ccc9a8f347268a7e9e55b0835e4 SHA1 e897adebc96794d3f17973585df8c5dac28cfd28 SHA256 fc999b9493878d29aae528c049721e73b939bb42f0854598b358a6d5aee0b328
-EBUILD netpbm-10.56.00.ebuild 4095 RMD160 b2d2296792364625861d8d459e8e7007ea6c65af SHA1 cc0a0e79827f7bd46f0d52cd1c64b232920ed739 SHA256 68ce000b769de46436e24b0953668fced019c711f4d7bfdfc91e3ce01dccd4e4
-EBUILD netpbm-10.57.00.ebuild 4036 RMD160 ab4e8e21a083fb309952df033a689e7371866e81 SHA1 97412844f586906c262a7c790632dd8626498d48 SHA256 111d6074ac597d6c256d6574d6599351d2907d96d3fa0487c275d5469fad467a
-EBUILD netpbm-10.58.00.ebuild 4076 RMD160 f40702761edd75fa55c96b0824c93887cec5dc49 SHA1 ddc4a49d46fdc7171d5c64cf2ae17a953b871343 SHA256 99fb9e579cd68134dec7725e7fa040d5438d5ccfe67693f7bd61bc2252e91163
-MISC ChangeLog 37057 RMD160 997c09b7d719249ac1907a059cc98e88d363a9e0 SHA1 df4508915d8cb2080232635aa9e4480e79f95eaf SHA256 d00aa465df42dbc8912acc9da8b69496b6cd8a319b13920dc6f4bf431b7f3c2d
-MISC metadata.xml 261 RMD160 1d652dbebb408b61de2afc2d49c8356a8eebee4c SHA1 c977c691e58d2ecbf5222ecde5ba6bf9a86ad84c SHA256 e04079912e263782a8c0e4f115e49ff3694535ff2efef7b7fff85cf8d100102b
+AUX make-tarball.sh 1053 SHA256 247827b36f85878195ad30f1a1ec3a4edf9992ccafcd4f66ce4fa18910abd731 SHA512 66d7de6cb87fefb353547183c7dd2ff28304534753aef48549801ef3ed23bcde995a766e6f3b14b70e64e1a7e6fddca56329e5a6e5e2182f26bf3b0d2dffd593 WHIRLPOOL 05831454f0109ef79549922234c98a9c4294804329212b197bb386d4faa37b26537f9b537cc50f890bf4d48e33b84d4fff3300da9adab12d3137ba2e90cbf3e0
+AUX netpbm-10.31-build.patch 1629 SHA256 eaf363941337718390856c318c8e69114c8fb9dbcea8b07755350dbdabce6323 SHA512 53e88bd1c85aa04d60ca2de7a32e5d00d9f959f3443e0c951c0694c814f6956708d8d12427a0fa8a8f76a1613d2982c3aa9b0c6ddd12b9cad3419ced1e5bb59e WHIRLPOOL 15a6b682813bfac808ccff8e16be492fd78defd59f82d5960d9a344452d8c761ea64ebbdc460c005c7d7669a3f26aa3704850487b43f4732bccb742b15709c28
+AUX netpbm-10.51.00-pnmconvol-nooffset.patch 3930 SHA256 d9c7f70e58d50dac4998157021ac2fef92822d1abd9b9d060384b195e4f1cabb SHA512 9f9a1e9a2d7db117693648693c0152082cab1e60a075e9bd4ca67b9c042ea02549917504658d32311b116cd17901f153ece73303adabdac2cd0981ac22a1ce45 WHIRLPOOL c7a6b09c9c5e258445473d7f16e91fac9205d1f21f24e8eebe0a277908774e6670d00ee3f6aa44f6bfc6bccface76c5db6bc523f442c263306982d43cb83edb3
+AUX netpbm-10.51.00-ppmtompeg-free.patch 1199 SHA256 45c0229b035e8b50f759a5aae646a60ef07f4c0fb156b4aee1dc52aa0c1cbc75 SHA512 902f9882f24561e92277d2b93363e3611f26e59236f2f116728f25179198e2be723e7d1e39e5c12ef820fd98ba654ea0ccd946db6d27cfbf592d98bb2ba9cb57 WHIRLPOOL bc6222c72a9bb12d218a762161d2bff577fb04b577131eefea930f0fd6c324dcdd6740a032f40cc75b5e5403cb6757bd66b1867bab0ccd0735da9a62183f078b
+AUX netpbm-10.51.00-underlinking.patch 657 SHA256 f933003b9c50717d76abaf3272b9bef66b328629a8791144fd0038e692989b95 SHA512 5fe8513f982fbfe557460a9c4cba2d61e27d2a7142906a6a05bd40ceb3c6b194c3c1ae1005e246a94606ac15d1c2f109f2ef33d8c4140118691877fae22d61ee WHIRLPOOL 724976eaa5a5ac95498bac9f221d78f5a5ba73fa2a2666167ced3c66fa88f8c9b15be7a86d3a19c6faa771781ca37b57f302750f7c70ef30d2d92f2323531612
+AUX netpbm-10.56.00-alloca.patch 254 SHA256 7e26ef344eb80320a63e1614f6964da7daf52bcdf276b3d83fe2115f0a4ee144 SHA512 e3327efb12afc0576ade547a0bd19a48c1c3417a8ed839e3e571982f2d2653d6edc9f9e4dbb87a80e25dfb9de1164f0e094417cf172b841691d02a5aa551107b WHIRLPOOL 7211ccd235b83d6f3f9ca90c91baa25b6f024f6aa823ae5abee8a09141745e134b0186e0613517d9c1ef5d73919e18368fddfa6dc684080a7aba6ce34a1eb2bb
+DIST netpbm-10.51.00-libpng-1.5.patch.bz2 8120 SHA256 260a5f0e9834e7e1aa5c2dcc292695aa43b5aa198af1cb33e5705f7cac10da7b
+DIST netpbm-10.51.00.tar.xz 1834148 SHA256 6d7bb30d1d0e7f6a23b55c6f03bbb20b539909ad84281dc944b1072656dc1d0e
+DIST netpbm-10.56.00.tar.xz 1881348 SHA256 2169916c7c03bea90449f87b911a97f961565aa2b0123ab9f72b70d9429b172f
+DIST netpbm-10.57.00.tar.xz 1884452 SHA256 128ee11c173d8ae96c4c1fa71084200ed22cca9df7b1b7fbdd4e23dbf78a8357
+DIST netpbm-10.58.00.tar.xz 2521144 SHA256 e98eb3a039b401981825cad746a7733ea07750e5b6bde0adf68ea1ac31987bd5 SHA512 ffa1506114d03c237e0bfea27f09563268063bbc49db672a09ebfbfc836faa4fe4c4e707a4a32854bb84a4accd8e53cc66117146eb4c3d23464c5cb3e4dacfc2 WHIRLPOOL 9f6a798d4ae943b9f930fe5d11abb8fbe4692a68cf3fca29ecbc4eb65d6cd9836126e8c18a8006f7debbcca26588bbb669e4ff3a004ee7f7444d411bb1972791
+DIST netpbm-10.59.00.tar.xz 2526328 SHA256 66a8202d393edf51c2d2adde54b46f7b533fb4f732adb26a8aa4f1ce4777dc04 SHA512 789095667b0adaaf4ae768dbc52226106caf35dc7fd01a3d352c88dfb699f90e74c5f0a6c002768acb673bcf9e36830b1f2951bfbe27a0159c1c73453b74efc5 WHIRLPOOL abd4e1d021b1908b4a12606f588e72dd477eeb6efce9b42dc92a04d02ac0640306134bb9824cd5bf85a7cef8a5dd4cec846b79e9cec9588f4c11ccb85a36684a
+EBUILD netpbm-10.51.00-r2.ebuild 4868 SHA256 fc999b9493878d29aae528c049721e73b939bb42f0854598b358a6d5aee0b328 SHA512 3be0b2ea6ab9216f6697fd03b5e993021e65c32e425c3e2add8d6eb7ff95af51913f7a74b1fafd7c950f4b21c31161369661e3b3e1ee7925236886b3a75651d9 WHIRLPOOL 67f9a14c32e4f11a1732acc919513cafe828945a1ec667bf95a0f2c7f2b3b33468092b43b072df769058cdf65b8ee6d099934d1fa8d839d817b1f8e267ce6cfe
+EBUILD netpbm-10.56.00.ebuild 4095 SHA256 68ce000b769de46436e24b0953668fced019c711f4d7bfdfc91e3ce01dccd4e4 SHA512 995a2a95060c26c53d3a44aac1383076bce4c647297e590b9e8ad58b8c87fad92377bd05440cf791234a4ebc4e11226edf2eac88bfb3a1e14cdb0519bf0fad04 WHIRLPOOL e4cb517e151212dbcf95d98cf8528ba3280a3fba7d5db9eeb3bc06951e4b1b13455ac3ea0f1080c9adea52fc41a85fa75dcf240329481727bbb164d34d73f61e
+EBUILD netpbm-10.57.00.ebuild 4036 SHA256 111d6074ac597d6c256d6574d6599351d2907d96d3fa0487c275d5469fad467a SHA512 49cc229b64616962da77baf86bd0c299ad81d49a3b51aea1dcc81ead55288feb583594aa67b17adb338380191397134aa3837c3d48caf3a34a623acd85be4546 WHIRLPOOL 2f17591cfdbef72fc3add87fc10143864a62963be17e71e95c58f1cac9fda02ef8774e30026de1e82d399106eff335487b6b53449fa819775465fb08309f0a60
+EBUILD netpbm-10.58.00.ebuild 4076 SHA256 99fb9e579cd68134dec7725e7fa040d5438d5ccfe67693f7bd61bc2252e91163 SHA512 6058322a621981d66412fdb6477602d26b97b1362c00f8aa6b2c1fb474eb98a7634477b9b33bf66224d91858363e3a19d8307a6ced8fec12d37d5fd8c875fd60 WHIRLPOOL 460014565c4d8ed614857acf8611a2c2ee6fff75f140a9529974b03f130e80a183b286cb88a66f4038ea00a9c1cc808f8c37cd2a2658bb8489d7688293903de3
+EBUILD netpbm-10.59.00.ebuild 4076 SHA256 1fa107bedae3f31e8572f11abe16a2376884abe04e435efe2ae46725fd724f45 SHA512 2789e7d2ec403cf300dfe7adad886d21264964e87e28913f60d728e5039de38ca670b1d8ea3c43bebb3dbfb208337df937f6812bccce441d56b5715bd1ea5c4a WHIRLPOOL eb7fb0be6e36852fc049e6ea9ca6c5b5914db2ca7bc5217cbbbc84374c3147ae3066d730663b8761e8c8b78cb8302e65bd1ecf3edbe5cfa72ba5f7a5d36309cd
+MISC ChangeLog 37204 SHA256 d669bb0ec57b8a479145ef1851af2a75d887e694598bce01e7ecaed773359f69 SHA512 ee056fe9cac76e1d748c162f4503a8dbf80a01b5167df80fb3865efbf14179cf1789114d774a3a5abe31892135e791c06cedecc1ba6236fb031ba3a7dcaf4591 WHIRLPOOL 3e6772e5be3e47a87ca1a38ea86166b2077c5cbcb57dd7165a888556e1b85848b0afc47424d39d2c0a7d1b7d11c9b629290f6ff8d137b2af0fcc60cae524e8ea
+MISC metadata.xml 261 SHA256 e04079912e263782a8c0e4f115e49ff3694535ff2efef7b7fff85cf8d100102b SHA512 e7bcb8f689bd7da37e414a3f33b125d52a5ec0d376e821edd58d352ffb502098fbe8b7d24c0eb073822e41a55c280f84558ca4314dd37ac20adcf6471bd712af WHIRLPOOL 9aa2223d48bacfa917affeb56dc180becb54fc612e69ce6d26496d45cc42fd1050e2a40c77957ee7f37b3e2665adc0c95f08b60fab1787d3292905f0a4c8092a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQIcBAEBAgAGBQJP8x0FAAoJELEHsLL7fEFWj1UP/0xkJIO4lrwcZ/z3C3k4Rt8z
-qUNJcgsvM20L9b9plSrmli9JqTGo8poCreGubLZNM2M6tEFuN9WlN7JdtiITKO0z
-OB96Hn6ySyie9mNVQCTgI+yuki7C5cqycgNpDm5bMUvOMF6vDKAF5XVAUukpQnl1
-ItUQhzBOsNiVWwoQWGFnL7N9bee/ULluTP1gfmWZxKw8tDLr3jL5zLUyFZtvtcvx
-qkVdvOx4KSWYu/IlC+JejzmlqlUZY4eM4c9tUs1756ZTPH7AK5bcJ64y/rthrctA
-StKs8ZvMxi981YzLzfIPX7MRAdXdDjCt+igMcn1FCHpX4xqgNatoYi+vX6NOr6hO
-P5Y/Nl/C82CkR/ifII+2KRtlOed+4PMIFUWijNG/JREMz3OMhO47F4FlWM3aQNpU
-GxX2U0BsGd3Rs7lhWHk1jX6hPL0cHyESOdXHNZwAymgtKGMLKxfqb49+R2BNKfY6
-wPMMS7ckgszLvlaFkwUt3n87vK2KZWupWzg9AUDYbnM9BOLaYRWywTTfH3U4jc5U
-xNznAcsVumrX19LejWnGEfJIDo47+eHClqWyWFG295HQxGfT+ei/JIAP7ZebN58k
-8gGUxfhmmuhzOxQTERPjnOEZrrjPAVxQZwr1KCUeF1wXkVt2F7P6R7bhwz82d5dp
-jfFPAk0c1J+s04i1SyAE
-=JKxb
+iQIcBAEBAgAGBQJQBy/AAAoJELEHsLL7fEFW16gQALGw5LFq++k3XZy81ZgIawbN
+0kFSG/OtwRsf+bm+ApfP+LB+QNNXUBLSUJIBExUDdS38YUI3Xk33K6CfsAuZI3EC
+HgPkduXSB9p4mEcu8Sa3JYTTdjTwQmkYDDtBJNIX7mv28q5lwwAXggMbk88EX7+g
+zVIFXQ/Wv52jVtGIdq0nc3JQuWUUW35uLt11dQsk+sFkR/7QLyPUwt1iF3TD8Bpy
+CKeTAxuSNCT+MjbZstICVS28UXpLc9i4UY0yPC1hllfBZDX90jMGvSD75S9RmRYc
+ry4eBbANKlX88tO48RakUkW2yQ8UIyuVbSJp4Z1AdQ3tC5aoqoFyC5XOS1GkvggP
+U1JXl/7bGFrvugsGgMxwqhYVwK3g2lj3H99s5l+vMgFLejA36gVrF+wMNGVMbXVi
+D828DKfn2T7QOElQFJ5JLJgL7WK//kZdBqRm/uUViMriJLqkoUXshlP0/gvdzQ4d
+LOAVA0rvNtmCzS8AddqDEeGgTpl9FIRzcmqEUSaLkqSieF3rF0qF8qSId4DIKCmV
+nHzAfaPF+vazEpJdL8M1akH7qKBn6H9X9mCUuGfWYV9hbPyE2r7d4G0J9YhyYMnQ
+OIi0qU0uYsryu/9cwb3o0Vl/0JkhPCfcjritV6YkC1F5Dufv1NDy+iM8s3fjwRQn
+wvVxPIY2b2P6FcKJ9Hxn
+=mOFP
-----END PGP SIGNATURE-----
diff --git a/media-libs/netpbm/netpbm-10.59.00.ebuild b/media-libs/netpbm/netpbm-10.59.00.ebuild
new file mode 100644
index 000000000000..a5ac2822d3f2
--- /dev/null
+++ b/media-libs/netpbm/netpbm-10.59.00.ebuild
@@ -0,0 +1,152 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/netpbm/netpbm-10.59.00.ebuild,v 1.1 2012/07/18 21:50:27 vapier Exp $
+
+EAPI="4"
+
+inherit toolchain-funcs eutils multilib
+
+DESCRIPTION="A set of utilities for converting to/from the netpbm (and related) formats"
+HOMEPAGE="http://netpbm.sourceforge.net/"
+SRC_URI="mirror://gentoo/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="doc jbig jpeg jpeg2k png rle svga tiff X xml zlib"
+
+RDEPEND="jbig? ( media-libs/jbigkit )
+ jpeg? ( virtual/jpeg )
+ jpeg2k? ( media-libs/jasper )
+ png? ( >=media-libs/libpng-1.4:0 )
+ rle? ( media-libs/urt )
+ svga? ( media-libs/svgalib )
+ tiff? ( >=media-libs/tiff-3.5.5:0 )
+ xml? ( dev-libs/libxml2 )
+ zlib? ( sys-libs/zlib )
+ X? ( x11-libs/libX11 )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ sys-devel/flex"
+
+netpbm_libtype() {
+ case ${CHOST} in
+ *-darwin*) echo dylib;;
+ *) echo unixshared;;
+ esac
+}
+netpbm_libsuffix() {
+ local suffix=$(get_libname)
+ echo ${suffix//\.}
+}
+netpbm_ldshlib() {
+ case ${CHOST} in
+ *-darwin*) echo '$(LDFLAGS) -dynamiclib -install_name $(SONAME)';;
+ *) echo '$(LDFLAGS) -shared -Wl,-soname,$(SONAME)';;
+ esac
+}
+netpbm_config() {
+ if use $1 ; then
+ [[ $2 != "!" ]] && echo -l${2:-$1}
+ else
+ echo NONE
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/netpbm-10.31-build.patch
+
+ # make sure we use system urt
+ sed -i '/SUPPORT_SUBDIRS/s:urt::' GNUmakefile || die
+ rm -rf urt
+
+ # take care of the importinc stuff ourselves by only doing it once
+ # at the top level and having all subdirs use that one set #149843
+ sed -i \
+ -e '/^importinc:/s|^|importinc:\nmanual_|' \
+ -e '/-Iimportinc/s|-Iimp|-I"$(BUILDDIR)"/imp|g'\
+ common.mk || die
+ sed -i \
+ -e '/%.c/s: importinc$::' \
+ common.mk lib/Makefile lib/util/Makefile || die
+
+ # avoid ugly depend.mk warnings
+ touch $(find . -name Makefile | sed s:Makefile:depend.mk:g)
+}
+
+src_configure() {
+ cat config.mk.in - >> config.mk <<-EOF
+ # Misc crap
+ BUILD_FIASCO = N
+ SYMLINK = ln -sf
+
+ # Toolchain options
+ CC = $(tc-getCC) -Wall
+ LD = \$(CC)
+ CC_FOR_BUILD = $(tc-getBUILD_CC)
+ LD_FOR_BUILD = \$(CC_FOR_BUILD)
+ AR = $(tc-getAR)
+ RANLIB = $(tc-getRANLIB)
+
+ STRIPFLAG =
+ CFLAGS_SHLIB = -fPIC
+
+ LDRELOC = \$(LD) -r
+ LDSHLIB = $(netpbm_ldshlib)
+ LINKER_CAN_DO_EXPLICIT_LIBRARY = N # we can, but dont want to
+ LINKERISCOMPILER = Y
+ NETPBMLIBSUFFIX = $(netpbm_libsuffix)
+ NETPBMLIBTYPE = $(netpbm_libtype)
+
+ # Gentoo build options
+ TIFFLIB = $(netpbm_config tiff)
+ # Let tiff worry about its own dependencies #395753
+ TIFFLIB_NEEDS_JPEG = N
+ TIFFLIB_NEEDS_Z = N
+ JPEGLIB = $(netpbm_config jpeg)
+ PNGLIB = $(netpbm_config png)
+ ZLIB = $(netpbm_config zlib z)
+ LINUXSVGALIB = $(netpbm_config svga vga)
+ XML2_LIBS = $(netpbm_config xml xml2)
+ JBIGLIB = -ljbig
+ JBIGHDR_DIR = $(netpbm_config jbig "!")
+ JASPERLIB = -ljasper
+ JASPERHDR_DIR = $(netpbm_config jpeg2k "!")
+ URTLIB = $(netpbm_config rle)
+ URTHDR_DIR =
+ X11LIB = $(netpbm_config X X11)
+ X11HDR_DIR =
+ EOF
+ # cannot chain the die with the heredoc above as bash-3
+ # has a parser bug in that setup #282902
+ [ $? -eq 0 ] || die "writing config.mk failed"
+}
+
+src_compile() {
+ emake -j1 pm_config.h version.h manual_importinc #149843
+ emake
+}
+
+src_install() {
+ # Subdir make targets like to use `mkdir` all over the place
+ # without any actual dependencies, thus the -j1.
+ emake -j1 package pkgdir="${D}"/usr
+
+ [[ $(get_libdir) != "lib" ]] && mv "${D}"/usr/lib "${D}"/usr/$(get_libdir)
+
+ # Remove cruft that we don't need, and move around stuff we want
+ rm "${D}"/usr/bin/{doc.url,manweb} || die
+ rm -r "${D}"/usr/man/web || die
+ rm -r "${D}"/usr/link || die
+ rm "${D}"/usr/{README,VERSION,config_template,pkginfo} || die
+ dodir /usr/share
+ mv "${D}"/usr/man "${D}"/usr/share/ || die
+ mv "${D}"/usr/misc "${D}"/usr/share/netpbm || die
+
+ doman userguide/*.[0-9]
+ use doc && dohtml -r userguide
+ dodoc README
+ cd doc
+ dodoc HISTORY Netpbm.programming USERDOC
+ dohtml -r .
+}