summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2013-12-10 09:12:10 +0000
committerLars Wendler <polynomial-c@gentoo.org>2013-12-10 09:12:10 +0000
commit0c25ce45f3eed393d2fc0d520e4039418d996e52 (patch)
treef54fad0c0f9c15b49deb67e660aa9641f7323f8a /media-gfx
parentBump blaze-builder to 0.3.3.2 (diff)
downloadhistorical-0c25ce45f3eed393d2fc0d520e4039418d996e52.tar.gz
historical-0c25ce45f3eed393d2fc0d520e4039418d996e52.tar.bz2
historical-0c25ce45f3eed393d2fc0d520e4039418d996e52.zip
Fixed compilation with >=media-libs/freetype-2.5.1 (bug #493466). Bumped ebuild to EAPI-5. Use new python framework. Removed old versions
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0x981CA6FC
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/gimp/ChangeLog15
-rw-r--r--media-gfx/gimp/Manifest39
-rw-r--r--media-gfx/gimp/files/gimp-2.6.11-cve-2011-2896.patch61
-rw-r--r--media-gfx/gimp/files/gimp-2.6.11-poppler-0.17.patch477
-rw-r--r--media-gfx/gimp/files/gimp-2.7.3-glib-2.29.patch13
-rw-r--r--media-gfx/gimp/files/gimp-2.7.3-libm.patch21
-rw-r--r--media-gfx/gimp/files/gimp-2.7.5-configure-gs-bzip2.patch66
-rw-r--r--media-gfx/gimp/files/gimp-2.8.0-bzip2.patch25
-rw-r--r--media-gfx/gimp/files/gimp-2.8.2-xwd-file-security.patch173
-rw-r--r--media-gfx/gimp/files/gimp-2.8.4-valid-desktop-file.patch35
-rw-r--r--media-gfx/gimp/files/gimp-CVE-2010-4540-to-4543.diff132
-rw-r--r--media-gfx/gimp/files/gimp-libpng15-v2.diff499
-rw-r--r--media-gfx/gimp/files/gimp-libpng15.diff489
-rw-r--r--media-gfx/gimp/gimp-2.8.10-r1.ebuild (renamed from media-gfx/gimp/gimp-2.8.8.ebuild)38
-rw-r--r--media-gfx/gimp/gimp-2.8.2-r1.ebuild168
-rw-r--r--media-gfx/gimp/gimp-2.8.2.ebuild165
-rw-r--r--media-gfx/gimp/gimp-2.8.4.ebuild166
17 files changed, 49 insertions, 2533 deletions
diff --git a/media-gfx/gimp/ChangeLog b/media-gfx/gimp/ChangeLog
index 197382ad232c..e4a59df23710 100644
--- a/media-gfx/gimp/ChangeLog
+++ b/media-gfx/gimp/ChangeLog
@@ -1,6 +1,19 @@
# ChangeLog for media-gfx/gimp
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/ChangeLog,v 1.419 2013/12/02 23:29:10 sping Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/ChangeLog,v 1.420 2013/12/10 09:12:09 polynomial-c Exp $
+
+*gimp-2.8.10-r1 (10 Dec 2013)
+
+ 10 Dec 2013; Lars Wendler <polynomial-c@gentoo.org> -gimp-2.8.2.ebuild,
+ -gimp-2.8.2-r1.ebuild, -gimp-2.8.4.ebuild, -gimp-2.8.8.ebuild,
+ +gimp-2.8.10-r1.ebuild, -files/gimp-2.6.11-cve-2011-2896.patch,
+ -files/gimp-2.6.11-poppler-0.17.patch, -files/gimp-2.7.3-glib-2.29.patch,
+ -files/gimp-2.7.3-libm.patch, -files/gimp-2.7.5-configure-gs-bzip2.patch,
+ -files/gimp-2.8.0-bzip2.patch, -files/gimp-2.8.2-xwd-file-security.patch,
+ -files/gimp-libpng15.diff, -files/gimp-2.8.4-valid-desktop-file.patch,
+ -files/gimp-CVE-2010-4540-to-4543.diff, -files/gimp-libpng15-v2.diff:
+ Fixed compilation with >=media-libs/freetype-2.5.1 (bug #493466). Bumped
+ ebuild to EAPI-5. Use new python framework. Removed old versions.
*gimp-2.8.10 (02 Dec 2013)
diff --git a/media-gfx/gimp/Manifest b/media-gfx/gimp/Manifest
index 1547dbc162ec..eb2dd5f1d27a 100644
--- a/media-gfx/gimp/Manifest
+++ b/media-gfx/gimp/Manifest
@@ -1,48 +1,43 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
-AUX gimp-2.6.11-cve-2011-2896.patch 1818 SHA256 6613af30b70afb984a89dc8fa75ca6ba3271471d7fd62de23a1a9fda2fd5ec89 SHA512 8626a3b02c5a4590ccb1cc108f82e4848eaf821fe2c7c60b0af092261c729d0d7377a26c2776035d1587d656ef3a9dc95ea6a3751ed3d93f13d020d99e85472a WHIRLPOOL 345244b10abb7171a007816a122a1b98e40cd1bc80a665bca7ea2e394397c86c2e8098148a53ba4c140868d510e01ab7ae6b0bde3298f69093dedee289d06e85
AUX gimp-2.6.11-file-uri.patch 2209 SHA256 cb9da632417fcc866c047104cfbe25b5b9964fa5e65e333c042fdf23c19e692f SHA512 358ba3b79ed0b8ec4b5e113ec2b272ecc6bfa560c8b7349607ceef6c61742ef5f2241c70eda89f7f7233d908dbe9d184eadfa864005796a6f5e25812c3d6a047 WHIRLPOOL 8c02aff601df9e9caff28104ea059a8ba461c93a2cc1bb84c22b5fee8b06bcb57a0add6e15ad40f4538e8fdd249e768ebb33637208e5a37e12758a1d76903888
-AUX gimp-2.6.11-poppler-0.17.patch 15620 SHA256 69b214ff495c7cbc1f52c0c56fa9a09e4dfba47f54da8bb3c8b063b26b8d04bd SHA512 c663c47fb7c56660f533489a2ebee61d0389b75d5ba8c4c7319bba67518b3e9af01f68aa9bf6fde31d5102df030f745286fe42c2321a7b56f39ab56c31ec831b WHIRLPOOL ff0c2d27e91d52b54c438a6a50561014abf9de8039ad917599f16a3686dbc01337dba854919a7a6e291c495e84c54c1573055474f9a94da92ed21036c4ad3308
AUX gimp-2.6.12-CVE-2012-2763.patch 711 SHA256 6ea0d78cf8a70bdc8cd7877ec41750ee5d4bbf5f391910328eae3b3d6e83dc48 SHA512 2878c62c45c0382c548cf6f35f56738324d053235403810f2f0ea6734faff2d6188727ea136453583939423e3ba01cda3dbc9bc9b03bc1986a68e319446a1e91 WHIRLPOOL 4f2ee2886118aa062e84c1bbbe931534ab30b5b43525fe31249033fb58540a8b473f6b8c50958979defd2bd06d63d7c4363e9b97e58b85b7bdfa1b694d2f7114
AUX gimp-2.6.12-CVE-2012-3236.patch 1336 SHA256 06dd5fec6d6842463f3f03861663cfb474a75ec8a3ccf86e0dc0e9855ff1dd71 SHA512 94a53d7093a3409e61e10baccae1acc1decfafa4f84e049e1dd7fd3590fc354c0223d93141f516810a78d4cf27e0e275b246bf2c9c5e9dc975f944b43015b30d WHIRLPOOL 32d20c48b493f45f2f7f3740ade098700354a16d5607c304b92d9a9b0dfd7479713655e0f822b8b3128934897db1f82e16f0b33d1b0c4c2b28cca0e1d4e3aca4
AUX gimp-2.6.12-CVE-2012-3403.patch 16268 SHA256 882c06f5726b96dbd442659e98729e1e9cb6e9e62de1bb6104ac2be7de9d5c5a SHA512 fb7af36cb4beb726b0f0edb43d1f599ef812300f4437ab910819389e47ea9e0e92580a810323a50abee63dc0b4cf12c99a28440b78d16e7e1a3c97e1e767738d WHIRLPOOL 8d58107653144055a58fbaeabc212c75212a24733fcc6b286eccd6721fdea12ac3550042b69b20067c00517f42ae15bbc9c4c9ff4c8c729bd7aed235b06151f0
AUX gimp-2.6.12-CVE-2012-3481.patch 1937 SHA256 eeb6fefb10280033dcd56d06d9b90e24c1c2c6689c1a54580c17e828384b5324 SHA512 27d05d7286d1a367a7696021420a0f932a59da4e3fa42c73fe4cd72296996e62aa8f47a2959138b0daa583d6b8da8a29a0e99df48a144c7382d82b870f103ab1 WHIRLPOOL 228398c4544358fb40d7360a93c9ae8109969de429478ea92004396206d4a3281e0a9dc73c96374e2a24fabdbe63adb06ff788eec572462ac342a5c89fa1a19e
AUX gimp-2.6.12-potfiles-skip.patch 481 SHA256 1ed0292cab5bc744b3c4450827accc86f1719eb8e75416c282e84a8f65eb9f2f SHA512 2da1c43037898e077edef75838def6d94c2907f0c4f03a97689526edddda5e903deb3a8178b2f8c614d08dde46b3e5e700819fe9c26f4194b9f7510a8e3a2755 WHIRLPOOL 7cff9cb4c7eb083fd1fbb6ad263446131e2eb4aa64a50247558207eec4e0e75aac542b49d4302f037d9b855a86a19e865c8b3c5f07fd3fb2c9ef413adea59aa2
-AUX gimp-2.7.3-glib-2.29.patch 478 SHA256 76a2bac5fbcaacbef592e6c137e12b72320f38224c3c9a717b82f6c34404bbdc SHA512 666dd819e0c9857997a1d90c46db24b088044abdd525d78e83f2c38ceb58f2722d10df7a2bba5c0b76017dcb0f1948ce861a49ab1611f1c35b4203b4da9161eb WHIRLPOOL 1d61c3da1b8707560df267b01b8cdac9b1ce1f47f02255fa3b845883df6708f87c1729dbd1d6728fc4cac220428b63b873018a0b8d4cbbef63b2dd646e3a7227
-AUX gimp-2.7.3-libm.patch 995 SHA256 cb49b9611aca4e0082cc2f3e0c334341df3ac41009fda41355bd8af77b8601ca SHA512 26cb268d529ac4f74d25d46f6eb70e7b45064b5f7684ba2ee77225751efd4495340a0147fdd119e2713a19ba54d578f7692849baa4e99caf74f3471f528b7b19 WHIRLPOOL e9195105549524322ddf99707e96df2b0ea6ab6980b41cc24bf032a1e3952ed69f74c191b87762c996e201e4beab69dbe9d6c189b7d8e21ed0a2b84c405798ae
AUX gimp-2.7.4-no-deprecation.patch 1061 SHA256 fb9532406b62a6fa12f8598b142186fad1dc4e937328c8859cb4e8e76d2b19c7 SHA512 3454f3b1a7579b1da4c36b765ae2a54adab13f0a4ecf02c4c0c3c55a12ff7af57d6d0467f663d2ef3de6cda116095f5f662a29cb3d729e0533edd585731a1dc9 WHIRLPOOL 25b645c7e3f39cabe35155dd24c061a088a1800b0a4c154196ff89f4ccf3fc1950a1028d08eddf879cc482ca334bd99bc4c6cea8288e3bf36c0bed657485d984
-AUX gimp-2.7.5-configure-gs-bzip2.patch 2141 SHA256 009076fe1006a95da864dc285064b0a0cacdae2eab7cd32404b7c3dacf6a8032 SHA512 c7062e0ea89eb5938b402fedd024879942e4ba5cccb30dc0bc2a65cab6a37f9102bb1fd25e0a1069ad2d7227b116d98d47e886a85a344376bffe25b421d00f4f WHIRLPOOL 558a367a5c918b1f36a9909da1a42558142aef1a4bacf8bed8004472794cf2ba63f997043cfac9017b08813b58063c244ea4d7fa9962cab85dfc7671a9c24d27
-AUX gimp-2.8.0-bzip2.patch 709 SHA256 2e1c9808aff951362790ef35ca37aee39346647e7d202197cd77ffd5b6c5db93 SHA512 6666fc20f021dadaaf2f20c2d96beb76fbdac605a7623c2996e7abd52a9075f3e1165acc05c02e075870f6d25fb737a12f336f7dcbad764b6615b95cc004f3df WHIRLPOOL 6e6e0532601385768d1d261cf0daab01234e872d96b3f97849de610b67815db21c09c6b7ea024fc4795a7ac9cd11fc1c15a61803d461ea64d6291babf87cb313
-AUX gimp-2.8.2-xwd-file-security.patch 6982 SHA256 34343fa9611c8e11661e92e9d36a9db54e284e248935964b7f2e3523522137fa SHA512 5c820e6f2e49d57cde6a47d8a5590734b2d463e2e2bccfe6dd21f884876eec52537f4761e21731b20c12be7fda9ec53353ec0f3ebc1e2e1c074612eaa3d1959f WHIRLPOOL c2b69105f515093374049fe252fed176b0f04fbe0069ac8c7a67261279d707acce15f37a34474121bedcfcfe549103eefd19cb3c05930e708b7b3797f45bce78
-AUX gimp-2.8.4-valid-desktop-file.patch 1573 SHA256 8e2e04d24a02d1288b2d7cc7638f9044197c6844b6c9ac8792e07a514ba52b8f SHA512 f85f8758ebb8c0365c7c613416b08158163c75e4aea552ac461195f6e66153360e3f96efb7260734137ffcb2bf7a97160449ce65ccc999f270b6fd2b30af3a3a WHIRLPOOL a772999769fd91b790b9cb457c66e5c0bd4fb24dfb92125d98db4155aedea0f3e9be37898752bc655f58310188604fc3f20ebcb62bb20cb3567f657c1b5e3e6d
AUX gimp-2.8.6-uclibc.patch 1317 SHA256 09dcec105a741627c74214ea8dec1696f921be94d3b5492b417f9a68043979c7 SHA512 0e7da897f0d654d2be233880bc80c869f869698122db779bd23f7b995de53840553a3b877b50f0297e56fc8627888b98b3206c08c03a4d22e748feeabe92391a WHIRLPOOL 0e65f6b620c23b2ff2f9b13fd555fe3c070d73b50b3ba93c61446783861f2f0fd7ecdc2102887e9673077d691e9cfcf05bd848242565776931c7f5bff628396b
-AUX gimp-CVE-2010-4540-to-4543.diff 5678 SHA256 b1fb9d83959cfc8e7a1ebf5d8812454686d618463010bbc0e802a1476e58305f SHA512 b12b7f8dea5c8fc8f553a810751375ce6ec2f21b12be0ff975f01de1a8f7c27df4225f166f1f0efce659fedc636032c1726697b75340b02822b858c9fe19935a WHIRLPOOL 7d1a92eb6ef1a247d538e53b9f967bbfd09366819bc64343772720d8de01bc226035e598fdce8630fe16e642e126e8fc9f138de56166ffdad4f1345ec308389b
AUX gimp-curl-headers.diff 358 SHA256 34c706af2ba690be90ef6d0f68fef552b90fdf3a6ff0290e7d5fc02024b76b6f SHA512 e3523be4a5eeb48e7941fe0ec1e261a3086c5a8d118565070555a62d42fcc4b4bf9fd70ac37419de843a5249870248e7268f900df7fcca490e7a7f8c805b1298 WHIRLPOOL 6b9effa0436ff885296bce5676651c6ae3238c92bd6c7cfcef419da21f710c23f73b67db6e3a1bfb84465bee2c8aefa1d8107c4b3c4621b114aac7cbe558d96b
-AUX gimp-libpng15-v2.diff 18466 SHA256 d3a4f0b365497adf1eaeaf6b4ecb5eff5517eb0ce4373ef15da0e4cece5703aa SHA512 6dc2867c98ffeb9dac8f43a7714fcc67ca6661b319f7b7e8eb4063fa82f859fe1c3434330964730c372011eb1bfb9133bbd816e1869bfc276712cb9b3afa3651 WHIRLPOOL 17e7dd03f4785bd5e6bfa01d6af02f0af88fb2d763c5046e0e6a4a3784e1d0bac7562bd33ffb745a9119ce860d4da5146d1ec3c763e613839bb2c222b64a6a5e
-AUX gimp-libpng15.diff 17119 SHA256 d77b61592d4943b052200eb98305b6cd15c24259b538c9a56afa498328470086 SHA512 49232ca5438b030543976f1efbf691cac883aa7311539b1f51804f6400859f5bae94cabc8a7f5ee83aa462aaf443da466f7bf4de9da1c8beff9e66db3a757c18 WHIRLPOOL 11e79e52c945835b2e58404e2983ab8ba988e4900a2853df25ce45a6572679a36aea1527a40c5a1d63ac52a9143d5965acb12943529663e4ae5bb1e4cdeab0cd
DIST gimp-2.6.11-underlinking.patch.xz 5544 SHA256 5e7f2f16b8fe9b186b94cbe4cea1cda6242b066c07d36ca4907e276e32976d56 SHA512 ea9e2bac2b00152d0cfe183fdd08d1298c17d18e0f80fda93494adbef336bcbbe9528d94d3ea73648324916142ebda2769d6a88e2eb58a32d64120cf840a6973 WHIRLPOOL f56b217a14239adf96cce031465f8b65cd2d3a7bf2b64ca1d2ba3c2ee8e73fc07a6c7be416cc6863654396e87d441021257f6b2dca5245a551759ffc49da3ca7
DIST gimp-2.6.12.tar.bz2 16745411 SHA256 d553c9f1c07f59fa7b7ce9cc5f84ce59bf4e9dfb5b6ee4bd8718b74b947aec62 SHA512 4afd136510857adf68f7c85b34138ccf3d9e0499ac526481239e5d5bf0cbe400186c57b688b0818c3b372ed2c57bdeba8a1fb456fa0e82590495a4425393969f WHIRLPOOL 310c598dba3202713fa48f776494fe9a7d09ab7cd39538cff5d3f021af6c13c2ece0f30e84d1dd0fbbbb095584995a998700292ce995338648ff37fc7824f34c
+DIST gimp-2.8.10-freetype251.patch 679 SHA256 34d1b729e267d33084c19fc89f7e125cd49ed4586b07794b169d5fe22d98f970 SHA512 e6c9271d8de9cd549bef666254724c644cef88291c7590e86d98dae444f808002f6bdb2400a3a44a65396f8b169b2a8c2985d6f169b295de8c3d14732013e053 WHIRLPOOL 500fae1f3e8b5a4eec039662f896fa5a0b3083dfe0b83ac5b97fe99ca4aaebe007f0fb88bc03dcb554e3c8e7f006a7355448f4f6477c02f894358da2d2a155b6
DIST gimp-2.8.10.tar.bz2 20343461 SHA256 e7fd8b19f989138d826003c75f56bd5b6f136eef597e86e3978ede0bba470ae6 SHA512 21c96832ce61ecb2dad5276b454e7965263b6733add7e4a95cfc5f308fca681bceab21c1b77921332e0725d0e514e06868a4698ca9d7e4b30a28a07c7356a3a8 WHIRLPOOL 16b0a7e8a4197db41da29832977bee917e65d5cbbf308dde1ba73c150742c70c52cd60d449d0fd0269b0ed5db0378461d3277a2350898c3a5e07b1f3cf8bdf47
-DIST gimp-2.8.2.tar.bz2 20161424 SHA256 0cd1a7e67e132ead810e16e31ff929394c83fcf841e4a295c45d6f3829601ad9 SHA512 82a15072aba97d41a7dd74920f5db4e89442ff83841ac614f6fadfd964bdb8d3ae478ac0ba2e906bcf4569c8de00a1616fd6d626032f093060f28df3655d9111 WHIRLPOOL ae8f3347bc847d6a5451b899a5849b947452239f2e73f19ec0e9f5fcf96141a1c697a930b678429ecd0c3184e7d41c9f45f15aef978bf44f0e3f3726305ddd74
-DIST gimp-2.8.4.tar.bz2 20214383 SHA256 e24a9f826e7c30edb83d96f4cf4787cf1a0ed98f28ea947d19736b4f49787ab5 SHA512 7a879bfdcec769495d61332980edf577ea0d37dbc84ef889239620bce7c458f17238a22884b1a063eddb1d1126c4241bf14dae81ace0134dff4a9e602046443b WHIRLPOOL 7cfe3e055fba96fe509ed3ee050de267efc038b7844d3ef0e2be066e0cabf0aacd199dbb98c9de5e4cab32ce57e3d6cd82fd890ed45485f3396b2a6b37a87675
DIST gimp-2.8.6.tar.bz2 20306442 SHA256 215865b0ff4534bbced551995ae3093ede1918246ead914984603a5c1a5be845 SHA512 2bed2f3521e01355fd0e820024a54f40ad215c4167d3dbbfee0730b67e4d8edb161b493c75a02bd9439dced25331b879fed7b6737f84b975003feee5c1fcf45f WHIRLPOOL 73ec3109b4005f09b0725d489c7d577ff3ccca695c6aa1105c2fab6fae35899c36c4872a5203486e63e50a8439915c5f66afce26a05dafd1e4e432ce4574e82f
DIST gimp-2.8.8.tar.bz2 20345808 SHA256 74c4509bae55f07140bc46f16100fc1e0e052829c13d4d87dc31d07d3e696a67 SHA512 3c841c1d11ac41eb5a4ae9d039c339d91eec7b05a303efa6a10ea9cb1af3d56c9b8a55f752c8f4c50ddddca3fbe220949d6e22838c71d5f9dfba9fab922bf8c3 WHIRLPOOL b3c3f33449bb14dfed34189ec674c9b7fb52c52a5ab2ddf6bb481fe921aeaa7e5cd8de9107767d9a61476da1f9c6d6f15464372bad11e112739eb4216002e3f0
EBUILD gimp-2.6.12-r5.ebuild 4728 SHA256 8b54be2c26f65f310289a59ca001a50f63e98c3e2b8bb429766d88ada47a48af SHA512 0c384766fc6b6ca053dd4e96623fd9133d1b1b145f051f22176b932fec4dda357916bd67f5950ca85be519a2f30ac3de7eeb4ab43f3a7ce71b4c4333394fd917 WHIRLPOOL 991df8b5ca3dec6559cc29f532a7d1baca4e0027931a05e54b421512d5846cefcc08cfd24b7de3e72ea6dc03d766c464d56dedaf93572baf01c8eb938dcb9e82
+EBUILD gimp-2.8.10-r1.ebuild 4754 SHA256 528c95bae5323b0e24891d07ffea0a7d1858fe615119f56a982803189f330493 SHA512 c1e4f91dc89ca1886052b00bda002c4084f3304b5cfb9c0de1598fd63d6f1b6a8a968e1bb14616af9cfccd382e939478c68721c17f592e8b01a02237a763207a WHIRLPOOL 48ba0e913a21c1feeb258e382f31d608923fc69c5cec1a1fb98bdb171807e73d8a514fab4cd7f6a8d56a717b16ab9db3b455edcdb846841dc70d5daba3cde182
EBUILD gimp-2.8.10.ebuild 4827 SHA256 825ab0dfca1e9ab69b639c4c7a33be9595ac3f4b799a80bc78c19b9c5a5b39b2 SHA512 8712c538d4131f381f475ed185cc860be02479ac7bce5c0eb04d0c7f2b90474216105e9c5f0c075a022d3b9c963a312a85803ecc5edc60c728012512abf59d25 WHIRLPOOL 91bb2552423d7427b6ccf7a53b9884b095b442d56f2aadcef3f66272f23c8c95be6fab90230c63b46c58a66c9158f7aab771d04d7fee4d92ebb0ca94f3c352f9
-EBUILD gimp-2.8.2-r1.ebuild 4791 SHA256 1e573f079c860f1dec248adde5cd0239887cdc070719a00c1ce6004e0f3764ae SHA512 8c8edaf3420499e34720904907eaf32a190964150e7dc9d86c22a4c1225874644afd253111e0374f21fcb42836fb776e49814b9c000ea4c5d924b22ad972565e WHIRLPOOL 70b36e0a0c77c987968894e36396a2052349a1a94aae4ffb82debba1426e0927493bfc0bc2bf4b11da5b9f8bb1b03ad210243c6a22efd1109f6c7b0e2c7681c2
-EBUILD gimp-2.8.2.ebuild 4686 SHA256 02b92f7a88bdfb096e078b5b89e827ba9a0d295e26f62d61f6b3a6bf2061c6b1 SHA512 440346dfe1581481788553dc1ae44e96630a0272480c2e24148ceb03af2e91d5564f082d888f90fe9e9ba89b4be9ce13d53fa02dc9c698dfcfc1cc99eed8f5f3 WHIRLPOOL 5e323bbfcfad4140907796fbed8ef047930cb2f73b98d0dc126e3bedad4dc30f334f6f2663b7e8480b411804445c18ebe16dd01872014e65c70aaaf44cdeb948
-EBUILD gimp-2.8.4.ebuild 4783 SHA256 60755d6b50c8ef853daccfdfbc018db734bdcbb0c7eaed93400908f9e932a31a SHA512 9ec14a99ae69925169c42566fd906a881521f61bac88cd24e9c4959292688e98e919cfd205a7ea2670654654011517df3bc30de853100ff4e446f48bcd253de9 WHIRLPOOL 97a6b6268a03612cee998811a1924093a292a095e8afed4ee993674d19416ad14eb38ee5a2086b461d7dbe2de067fa0120f271b89616139192a063aa7176d2b5
EBUILD gimp-2.8.6.ebuild 4861 SHA256 09bf3b5983cd8ac8588e49ebb6202a23718776a3683db72dca92a2f3cf116c5e SHA512 674858b2af74fe538811d1c9c397e2a05ea1bd0f0eeccefbfddb8840340efbf0dfa567313246cf66f1a14a8d2dc2988f79e4a42fc5fdc1e89a66dd534d659b44 WHIRLPOOL 14390db623aeead2d0e14bf020093c42d4491d752c15248b24f478682bce4365c72adf51aa69626ef01ceccd8f962688d89998ee35ac020b039cfb5be87691be
EBUILD gimp-2.8.8-r1.ebuild 4829 SHA256 1e19e740fdf46aad27ff58f065648c70990490f235ba92c95427415debdbc758 SHA512 dfa06cd4011ea3cad9337ee9ab57278ac71ee7ca5e264156255f2d7562c8b64499a28e72488b73f71a14ba0c839fd29fcd8a5db7b58ef9f61bac9ac143112400 WHIRLPOOL 1e3891775b142e8694cfcee8500eb12f19e3212cda20efe21d6950a8d9e151e1afb524b6218bfdf9fd51a761159a0cf381a723c581e9e3c447cfdf2ccf81231d
-EBUILD gimp-2.8.8.ebuild 4827 SHA256 5d7879193c2cbb0c01faac77fdc8a5e0db38aec3ff2fc7e51fea0b8642458000 SHA512 2036b39d14b54bc2ac7162c969a63230ccc8f2081db59e74ac7f7b43c7158c4d97ff1915fd5567d990a1de83fb7623a483b1f7dcefb4e817548372515cf3f320 WHIRLPOOL 702a4290aaa00c4a7d593aaee622e97fcd715e201c3b1a65ec3d8f72b49de7265abe6de92ae0bb4782328b5002c8dd0a278c8985b10b70e4e006bf36f6be2ec6
EBUILD gimp-9999.ebuild 4003 SHA256 5186884e7125cfd226009ae2887ef8f68b02b4547373f17bb6f7dd20807eee3e SHA512 ceb5713ef7f3d7ca1f867171669253f5863e5710d928d2a63476655878eaab600915e1a783a85b0f560e844221e41dbabb6ac2b0667491e40b1f6da12b5cf432 WHIRLPOOL 004b5ae142a60d0022bcbc2a44423682662e2cc6759218e96e95b5692b18914b4521f3ce10b5a343ca9cd99830f428f5aca378b8cbdb7a6efb36f53af73dcd08
-MISC ChangeLog 59583 SHA256 0c6df190009adf471628f961ebabf60a0d2620fd96396b677a2542ef298be67b SHA512 24ccc897c6623f109721a08b65bb493881dd6acb8b77787bc4a29a5abf15bb35310eb6c00a59cd570f25125ed74e234c2fba2f886d941ea4fd44562ca65dadb0 WHIRLPOOL f750580e88ea877eecf259c9c04bb3af85eee4a5c00ebc81dc6a45e5f102252a426e5e25c9ed5e74f4bcc33a543151c22907058407a8588f4a0a2c234cd3ccf9
+MISC ChangeLog 60343 SHA256 4e22744209f9f783cd3469e9184818d8ac84843cdf8981714149db1aac615876 SHA512 183eb630bc02dde6a4a019abb672c4201ea2148d35191b3be4a7331ff910746f93b5b9fd29f27b11ba50928eebfccfb6855cf9787a19d3e8aba32b0b7918ae53 WHIRLPOOL d62b54df9ae893106d8be3a2bff405893ff21e4b5f6aef508b6e959032ebdba9ffc0feaeee96e02770b959a207ae148eafef2bc5c6bb9c8a3507119bce9615e6
MISC metadata.xml 285 SHA256 77c9767711868abab1e559504dd88eb8aef8cf395629d8ec8c7a5fdb3d29397e SHA512 0b1abe9749d79ed8644c2a34312ab70cff232e08f64c1a914185cbafe8c754e9c6442eac1e3a1c449057e52b076333b70ea8be7418570bfcbee69f69d455079e WHIRLPOOL 9f2199f149dd49efce83f4710f026fc235a9aed38b7c7e0ffbb5480ef6865dee6ac555178bb92a819071d016fb0ead581765697cc3035b829ed96126bc7e6053
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.21 (GNU/Linux)
+Version: GnuPG v2.0.22 (GNU/Linux)
-iEYEAREIAAYFAlKdF88ACgkQsAvGakAaFgD/FACgzwEPKNn4iddUANOWulovioVq
-d5QAn2I/gjW/zqYl/TlqARFfX0luI1st
-=dGT9
+iQIcBAEBCAAGBQJSptrqAAoJEPiazRVxLXTF5tsP/RSKn4Oibce/qKsYD2hRv7dY
+/87HmFdpVkRivtFM2N01ALAb4ASA+DAK+ZzIgpB5h3pDI9k05qtt/IklCwVUW/Xz
++Y8T9aw2S8qyjZsSRVclL+RpSkLxt1fcZ/D6UP7C5uiHXltfpJY0nQ6lnqV4Q4rV
+FUFp835Pa9qZOiP8xv+ES/LD+0LfhwlBPu7MrzrJcOXKuIvNGhyhj1aK04iC7jbd
+E1mhjYG99Buia5mlqFPoHcNjfVCHz/49CnoNSl6rUI/7lgPQ22mEeHt7xtj7GyQD
+4cGLgxC1e7Oocvo09l3CzxdLiDVvYt2H6Vf+wU34euH/hH2BxYJKU8qL6DKPYncN
+ySc+eyfw170LVUzLwvb9Cy5tD3C4rCAnYv2N9W95fxRmrrJczWAeNnw8FQTwjKGp
+7rE040PBEX++Ng8TVhXJJmBfQT8525Yy/O5HSYBUA78nWVeCa+x7ZkGKZrjPF/I6
+GNfzqUplR5vZyCPDA9iNnoL1qQBxHFtAoBFGMOyYhaLunbAjjvQkuwlqYLLYBgbc
+4uF4OzGZ+DJINyoKJ1INBairu/861idWelqHd6Z1sxsE55gmJZb7tQrBjSehY370
+JdacTdnUWSeknisFyk/ZJg0wNPCpwO84DviTTqC2e3j468EJJGu8ldQhjNYbNw3l
+dl0/Q5t6d8eT6CIUKShI
+=JRmE
-----END PGP SIGNATURE-----
diff --git a/media-gfx/gimp/files/gimp-2.6.11-cve-2011-2896.patch b/media-gfx/gimp/files/gimp-2.6.11-cve-2011-2896.patch
deleted file mode 100644
index 735d771750d6..000000000000
--- a/media-gfx/gimp/files/gimp-2.6.11-cve-2011-2896.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-From 376ad788c1a1c31d40f18494889c383f6909ebfc Mon Sep 17 00:00:00 2001
-From: Nils Philippsen <nils@redhat.com>
-Date: Thu, 04 Aug 2011 10:51:42 +0000
-Subject: file-gif-load: fix heap corruption and buffer overflow (CVE-2011-2896)
-
----
-(limited to 'plug-ins/common/file-gif-load.c')
-
-diff --git a/plug-ins/common/file-gif-load.c b/plug-ins/common/file-gif-load.c
-index 81f3bd0..c91e7aa 100644
---- a/plug-ins/common/file-gif-load.c
-+++ b/plug-ins/common/file-gif-load.c
-@@ -713,7 +713,8 @@ LZWReadByte (FILE *fd,
- static gint firstcode, oldcode;
- static gint clear_code, end_code;
- static gint table[2][(1 << MAX_LZW_BITS)];
-- static gint stack[(1 << (MAX_LZW_BITS)) * 2], *sp;
-+#define STACK_SIZE ((1 << (MAX_LZW_BITS)) * 2)
-+ static gint stack[STACK_SIZE], *sp;
- gint i;
-
- if (just_reset_LZW)
-@@ -788,7 +789,7 @@ LZWReadByte (FILE *fd,
-
- return firstcode & 255;
- }
-- else if (code == end_code)
-+ else if (code == end_code || code > max_code)
- {
- gint count;
- guchar buf[260];
-@@ -807,13 +808,14 @@ LZWReadByte (FILE *fd,
-
- incode = code;
-
-- if (code >= max_code)
-+ if (code == max_code)
- {
-- *sp++ = firstcode;
-+ if (sp < &(stack[STACK_SIZE]))
-+ *sp++ = firstcode;
- code = oldcode;
- }
-
-- while (code >= clear_code)
-+ while (code >= clear_code && sp < &(stack[STACK_SIZE]))
- {
- *sp++ = table[1][code];
- if (code == table[0][code])
-@@ -824,7 +826,8 @@ LZWReadByte (FILE *fd,
- code = table[0][code];
- }
-
-- *sp++ = firstcode = table[1][code];
-+ if (sp < &(stack[STACK_SIZE]))
-+ *sp++ = firstcode = table[1][code];
-
- if ((code = max_code) < (1 << MAX_LZW_BITS))
- {
---
-cgit v0.9.0.2
diff --git a/media-gfx/gimp/files/gimp-2.6.11-poppler-0.17.patch b/media-gfx/gimp/files/gimp-2.6.11-poppler-0.17.patch
deleted file mode 100644
index 86630897ae25..000000000000
--- a/media-gfx/gimp/files/gimp-2.6.11-poppler-0.17.patch
+++ /dev/null
@@ -1,477 +0,0 @@
-From 69f69eed816b89be9a01a48a1f0643d1fd496118 Mon Sep 17 00:00:00 2001
-From: Nils Philippsen <nils@redhat.com>
-Date: Fri, 6 May 2011 11:58:44 +0200
-Subject: [PATCH] patch: poppler-0.17
-
-Squashed commit of the following:
-
-commit 529d940222dfc352d41fbf72de29134421aa4002
-Author: Nils Philippsen <nils@redhat.com>
-Date: Fri May 6 11:50:30 2011 +0200
-
- use code based on pixbufs instead of cairo surfaces
-
- this is done to avoid adding to libgimp, thanks to Mukund Sivaraman for
- hints how to do this
-
-commit f8671d8767d4cdab830dc06310e96c63a88ec0fd
-Author: Mukund Sivaraman <muks@banu.com>
-Date: Thu Apr 21 13:57:13 2011 +0530
-
- file-pdf-load: Update attribution, removing bogus copyright
- (cherry picked from commit e999122e0b20b6ccd6bde3ce039bb64068fc0019)
-
-commit 89a78f2590d298dac2f42e6d9a3016fc5d672c70
-Author: Nils Philippsen <nils@redhat.com>
-Date: Thu Apr 21 13:52:18 2011 +0200
-
- file-pdf-load: Use better API + cleanups
-
- * fixes issues with poppler 0.17 completely
- * uses new libgimp API to pass surfaces instead of pixbufs
- * uses GTK+ 3 API to convert surfaces to pixbufs where available
- (backported from commit 7bdadd80ba479d6ff904e276d805e16f6b940ee2)
-
-commit 4e92302c4a14a961f112587a0ad86696c88da2f8
-Author: Nils Philippsen <nils@redhat.com>
-Date: Thu Apr 21 13:38:08 2011 +0200
-
- file-pdf-load: Don't use deprecated API (bug #646947)
-
- (cherry picked from commit 9b3e1c91fd2eac69da6947ec9c7fbf10096ba237)
-
- Conflicts:
-
- plug-ins/common/file-pdf.c
----
- plug-ins/common/file-pdf.c | 323 ++++++++++++++++++++++++++++++++++++++------
- 1 files changed, 283 insertions(+), 40 deletions(-)
-
-diff --git a/plug-ins/common/file-pdf.c b/plug-ins/common/file-pdf.c
-index a43b459..43c2b7d 100644
---- a/plug-ins/common/file-pdf.c
-+++ b/plug-ins/common/file-pdf.c
-@@ -4,6 +4,9 @@
- *
- * Copyright (C) 2005 Nathan Summers
- *
-+ * Some code in render_page_to_surface() borrowed from
-+ * poppler.git/glib/poppler-page.cc.
-+ *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
-@@ -80,16 +83,20 @@ static gboolean load_dialog (PopplerDocument *doc,
- static PopplerDocument * open_document (const gchar *filename,
- GError **error);
-
--static GdkPixbuf * get_thumbnail (PopplerDocument *doc,
-+static cairo_surface_t * get_thumb_surface (PopplerDocument *doc,
-+ gint page,
-+ gint preferred_size);
-+
-+static GdkPixbuf * get_thumb_pixbuf (PopplerDocument *doc,
- gint page,
- gint preferred_size);
-
- static gint32 layer_from_pixbuf (gint32 image,
-- const gchar *layer_name,
-- gint position,
-- GdkPixbuf *buf,
-- gdouble progress_start,
-- gdouble progress_scale);
-+ const gchar *layer_name,
-+ gint position,
-+ GdkPixbuf *pixbuf,
-+ gdouble progress_start,
-+ gdouble progress_scale);
-
- /**
- ** the following was formerly part of
-@@ -433,11 +440,12 @@ run (const gchar *name,
- }
- else
- {
-- gdouble width = 0;
-- gdouble height = 0;
-- gdouble scale;
-- gint32 image = -1;
-- GdkPixbuf *pixbuf = NULL;
-+ gdouble width = 0;
-+ gdouble height = 0;
-+ gdouble scale;
-+ gint32 image = -1;
-+ gint num_pages = 0;
-+ GdkPixbuf *pixbuf = NULL;
-
- /* Possibly retrieve last settings */
- gimp_get_data (LOAD_PROC, &loadvals);
-@@ -455,7 +463,10 @@ run (const gchar *name,
- g_object_unref (page);
- }
-
-- pixbuf = get_thumbnail (doc, 0, param[1].data.d_int32);
-+ num_pages = poppler_document_get_n_pages (doc);
-+
-+ pixbuf = get_thumb_pixbuf (doc, 0, param[1].data.d_int32);
-+
- g_object_unref (doc);
- }
-
-@@ -548,6 +559,187 @@ open_document (const gchar *filename,
- return doc;
- }
-
-+/* FIXME: Remove this someday when we depend fully on GTK+ >= 3 */
-+
-+#if (!GTK_CHECK_VERSION (3, 0, 0))
-+
-+static cairo_format_t
-+gdk_cairo_format_for_content (cairo_content_t content)
-+{
-+ switch (content)
-+ {
-+ case CAIRO_CONTENT_COLOR:
-+ return CAIRO_FORMAT_RGB24;
-+ case CAIRO_CONTENT_ALPHA:
-+ return CAIRO_FORMAT_A8;
-+ case CAIRO_CONTENT_COLOR_ALPHA:
-+ default:
-+ return CAIRO_FORMAT_ARGB32;
-+ }
-+}
-+
-+static cairo_surface_t *
-+gdk_cairo_surface_coerce_to_image (cairo_surface_t *surface,
-+ cairo_content_t content,
-+ int src_x,
-+ int src_y,
-+ int width,
-+ int height)
-+{
-+ cairo_surface_t *copy;
-+ cairo_t *cr;
-+
-+ copy = cairo_image_surface_create (gdk_cairo_format_for_content (content),
-+ width,
-+ height);
-+
-+ cr = cairo_create (copy);
-+ cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
-+ cairo_set_source_surface (cr, surface, -src_x, -src_y);
-+ cairo_paint (cr);
-+ cairo_destroy (cr);
-+
-+ return copy;
-+}
-+
-+static void
-+convert_alpha (guchar *dest_data,
-+ int dest_stride,
-+ guchar *src_data,
-+ int src_stride,
-+ int src_x,
-+ int src_y,
-+ int width,
-+ int height)
-+{
-+ int x, y;
-+
-+ src_data += src_stride * src_y + src_x * 4;
-+
-+ for (y = 0; y < height; y++) {
-+ guint32 *src = (guint32 *) src_data;
-+
-+ for (x = 0; x < width; x++) {
-+ guint alpha = src[x] >> 24;
-+
-+ if (alpha == 0)
-+ {
-+ dest_data[x * 4 + 0] = 0;
-+ dest_data[x * 4 + 1] = 0;
-+ dest_data[x * 4 + 2] = 0;
-+ }
-+ else
-+ {
-+ dest_data[x * 4 + 0] = (((src[x] & 0xff0000) >> 16) * 255 + alpha / 2) / alpha;
-+ dest_data[x * 4 + 1] = (((src[x] & 0x00ff00) >> 8) * 255 + alpha / 2) / alpha;
-+ dest_data[x * 4 + 2] = (((src[x] & 0x0000ff) >> 0) * 255 + alpha / 2) / alpha;
-+ }
-+ dest_data[x * 4 + 3] = alpha;
-+ }
-+
-+ src_data += src_stride;
-+ dest_data += dest_stride;
-+ }
-+}
-+
-+static void
-+convert_no_alpha (guchar *dest_data,
-+ int dest_stride,
-+ guchar *src_data,
-+ int src_stride,
-+ int src_x,
-+ int src_y,
-+ int width,
-+ int height)
-+{
-+ int x, y;
-+
-+ src_data += src_stride * src_y + src_x * 4;
-+
-+ for (y = 0; y < height; y++) {
-+ guint32 *src = (guint32 *) src_data;
-+
-+ for (x = 0; x < width; x++) {
-+ dest_data[x * 3 + 0] = src[x] >> 16;
-+ dest_data[x * 3 + 1] = src[x] >> 8;
-+ dest_data[x * 3 + 2] = src[x];
-+ }
-+
-+ src_data += src_stride;
-+ dest_data += dest_stride;
-+ }
-+}
-+
-+/**
-+ * gdk_pixbuf_get_from_surface:
-+ * @surface: surface to copy from
-+ * @src_x: Source X coordinate within @surface
-+ * @src_y: Source Y coordinate within @surface
-+ * @width: Width in pixels of region to get
-+ * @height: Height in pixels of region to get
-+ *
-+ * Transfers image data from a #cairo_surface_t and converts it to an RGB(A)
-+ * representation inside a #GdkPixbuf. This allows you to efficiently read
-+ * individual pixels from cairo surfaces. For #GdkWindows, use
-+ * gdk_pixbuf_get_from_window() instead.
-+ *
-+ * This function will create an RGB pixbuf with 8 bits per channel.
-+ * The pixbuf will contain an alpha channel if the @surface contains one.
-+ *
-+ * Return value: (transfer full): A newly-created pixbuf with a reference
-+ * count of 1, or %NULL on error
-+ */
-+static GdkPixbuf *
-+gdk_pixbuf_get_from_surface (cairo_surface_t *surface,
-+ gint src_x,
-+ gint src_y,
-+ gint width,
-+ gint height)
-+{
-+ cairo_content_t content;
-+ GdkPixbuf *dest;
-+
-+ /* General sanity checks */
-+ g_return_val_if_fail (surface != NULL, NULL);
-+ g_return_val_if_fail (width > 0 && height > 0, NULL);
-+
-+ content = cairo_surface_get_content (surface) | CAIRO_CONTENT_COLOR;
-+ dest = gdk_pixbuf_new (GDK_COLORSPACE_RGB,
-+ !!(content & CAIRO_CONTENT_ALPHA),
-+ 8,
-+ width, height);
-+
-+ surface = gdk_cairo_surface_coerce_to_image (surface, content,
-+ src_x, src_y,
-+ width, height);
-+ cairo_surface_flush (surface);
-+ if (cairo_surface_status (surface) || dest == NULL)
-+ {
-+ cairo_surface_destroy (surface);
-+ return NULL;
-+ }
-+
-+ if (gdk_pixbuf_get_has_alpha (dest))
-+ convert_alpha (gdk_pixbuf_get_pixels (dest),
-+ gdk_pixbuf_get_rowstride (dest),
-+ cairo_image_surface_get_data (surface),
-+ cairo_image_surface_get_stride (surface),
-+ 0, 0,
-+ width, height);
-+ else
-+ convert_no_alpha (gdk_pixbuf_get_pixels (dest),
-+ gdk_pixbuf_get_rowstride (dest),
-+ cairo_image_surface_get_data (surface),
-+ cairo_image_surface_get_stride (surface),
-+ 0, 0,
-+ width, height);
-+
-+ cairo_surface_destroy (surface);
-+ return dest;
-+}
-+
-+#endif
-+
- static gint32
- layer_from_pixbuf (gint32 image,
- const gchar *layer_name,
-@@ -566,6 +758,54 @@ layer_from_pixbuf (gint32 image,
- return layer;
- }
-
-+static cairo_surface_t *
-+render_page_to_surface (PopplerPage *page,
-+ int width,
-+ int height,
-+ double scale)
-+{
-+ cairo_surface_t *surface;
-+ cairo_t *cr;
-+
-+ surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height);
-+ cr = cairo_create (surface);
-+
-+ cairo_save (cr);
-+ cairo_translate (cr, 0.0, 0.0);
-+
-+ if (scale != 1.0)
-+ cairo_scale (cr, scale, scale);
-+
-+ poppler_page_render (page, cr);
-+ cairo_restore (cr);
-+
-+ cairo_set_operator (cr, CAIRO_OPERATOR_DEST_OVER);
-+ cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
-+ cairo_paint (cr);
-+
-+ cairo_destroy (cr);
-+
-+ return surface;
-+}
-+
-+static GdkPixbuf *
-+render_page_to_pixbuf (PopplerPage *page,
-+ int width,
-+ int height,
-+ double scale)
-+{
-+ GdkPixbuf *pixbuf;
-+ cairo_surface_t *surface;
-+
-+ surface = render_page_to_surface (page, width, height, scale);
-+ pixbuf = gdk_pixbuf_get_from_surface (surface, 0, 0,
-+ cairo_image_surface_get_width (surface),
-+ cairo_image_surface_get_height (surface));
-+ cairo_surface_destroy (surface);
-+
-+ return pixbuf;
-+}
-+
- static gint32
- load_image (PopplerDocument *doc,
- const gchar *filename,
-@@ -597,7 +837,7 @@ load_image (PopplerDocument *doc,
- gdouble page_width;
- gdouble page_height;
-
-- GdkPixbuf *buf;
-+ GdkPixbuf *pixbuf;
- gint width;
- gint height;
-
-@@ -627,15 +867,13 @@ load_image (PopplerDocument *doc,
- gimp_image_set_resolution (image_ID, resolution, resolution);
- }
-
-- buf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, width, height);
--
-- poppler_page_render_to_pixbuf (page, 0, 0, width, height, scale, 0, buf);
-+ pixbuf = render_page_to_pixbuf (page, width, height, scale);
-
-- layer_from_pixbuf (image_ID, page_label, i, buf,
-+ layer_from_pixbuf (image_ID, page_label, i, pixbuf,
- doc_progress, 1.0 / pages->n_pages);
-
- g_free (page_label);
-- g_object_unref (buf);
-+ g_object_unref(pixbuf);
-
- doc_progress = (double) (i + 1) / pages->n_pages;
- gimp_progress_update (doc_progress);
-@@ -676,30 +914,22 @@ load_image (PopplerDocument *doc,
- return image_ID;
- }
-
--static GdkPixbuf *
--get_thumbnail (PopplerDocument *doc,
-- gint page_num,
-- gint preferred_size)
-+static cairo_surface_t *
-+get_thumb_surface (PopplerDocument *doc,
-+ gint page_num,
-+ gint preferred_size)
- {
- PopplerPage *page;
-- GdkPixbuf *pixbuf;
-+ cairo_surface_t *surface;
-
- page = poppler_document_get_page (doc, page_num);
-
- if (! page)
- return NULL;
-
-- /* XXX: Remove conditional when we depend on poppler 0.8.0, but also
-- * add configure check to make sure POPPLER_WITH_GDK is enabled!
-- */
--#ifdef POPPLER_WITH_GDK
-- pixbuf = poppler_page_get_thumbnail_pixbuf (page);
--#else
-- pixbuf = poppler_page_get_thumbnail (page);
--#endif
--
-+ surface = poppler_page_get_thumbnail (page);
-
-- if (! pixbuf)
-+ if (! surface)
- {
- gdouble width;
- gdouble height;
-@@ -712,15 +942,28 @@ get_thumbnail (PopplerDocument *doc,
- width *= scale;
- height *= scale;
-
-- pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8,
-- width, height);
--
-- poppler_page_render_to_pixbuf (page,
-- 0, 0, width, height, scale, 0, pixbuf);
-+ surface = render_page_to_surface (page, width, height, scale);
- }
-
- g_object_unref (page);
-
-+ return surface;
-+}
-+
-+static GdkPixbuf *
-+get_thumb_pixbuf (PopplerDocument *doc,
-+ gint page_num,
-+ gint preferred_size)
-+{
-+ cairo_surface_t *surface;
-+ GdkPixbuf *pixbuf;
-+
-+ surface = get_thumb_surface (doc, page_num, preferred_size);
-+ pixbuf = gdk_pixbuf_get_from_surface (surface, 0, 0,
-+ cairo_image_surface_get_width (surface),
-+ cairo_image_surface_get_height (surface));
-+ cairo_surface_destroy (surface);
-+
- return pixbuf;
- }
-
-@@ -769,8 +1012,8 @@ thumbnail_thread (gpointer data)
- idle_data->page_no = i;
-
- /* FIXME get preferred size from somewhere? */
-- idle_data->pixbuf = get_thumbnail (thread_data->document, i,
-- THUMBNAIL_SIZE);
-+ idle_data->pixbuf = get_thumb_pixbuf (thread_data->document, i,
-+ THUMBNAIL_SIZE);
-
- g_idle_add (idle_set_thumbnail, idle_data);
-
---
-1.7.5
-
diff --git a/media-gfx/gimp/files/gimp-2.7.3-glib-2.29.patch b/media-gfx/gimp/files/gimp-2.7.3-glib-2.29.patch
deleted file mode 100644
index fc1e8db16702..000000000000
--- a/media-gfx/gimp/files/gimp-2.7.3-glib-2.29.patch
+++ /dev/null
@@ -1,13 +0,0 @@
---- configure.ac 2011-08-31 15:44:57.123536234 +0200
-+++ configure.ac 2011-08-31 15:45:38.693016544 +0200
-@@ -1940,10 +1940,6 @@
- # We must build without problems with future releases of libraries
- # and disabling deprecated API risks breaking the build
-
--if test "x$have_glib_2_32" != "xyes"; then
-- CPPFLAGS="${CPPFLAGS} -DG_DISABLE_DEPRECATED"
--fi
--
- if test "x$have_gtk_2_26" != "xyes"; then
- CPPFLAGS="${CPPFLAGS} -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
- fi
diff --git a/media-gfx/gimp/files/gimp-2.7.3-libm.patch b/media-gfx/gimp/files/gimp-2.7.3-libm.patch
deleted file mode 100644
index df9f3cf35b96..000000000000
--- a/media-gfx/gimp/files/gimp-2.7.3-libm.patch
+++ /dev/null
@@ -1,21 +0,0 @@
---- plug-ins/script-fu/Makefile.am 2011-11-30 00:33:18.503293635 +0100
-+++ plug-ins/script-fu/Makefile.am 2011-11-30 00:36:41.479756076 +0100
-@@ -1,14 +1,16 @@
- ## Process this file with automake to produce Makefile.in
-
-+libm = -lm
-+
- libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
- libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
- libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
- libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
- libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
- libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
--libgimpmath = $(top_builddir)/libgimpmath/libgimpmath-$(GIMP_API_VERSION).la
-+libgimpmath = $(top_builddir)/libgimpmath/libgimpmath-$(GIMP_API_VERSION).la $(libm)
-
--libtinyscheme=tinyscheme/libtinyscheme.a
-+libtinyscheme=tinyscheme/libtinyscheme.a $(libm)
- libftx=ftx/libftx.a
-
- if OS_WIN32
diff --git a/media-gfx/gimp/files/gimp-2.7.5-configure-gs-bzip2.patch b/media-gfx/gimp/files/gimp-2.7.5-configure-gs-bzip2.patch
deleted file mode 100644
index 2a8c127d0e8a..000000000000
--- a/media-gfx/gimp/files/gimp-2.7.5-configure-gs-bzip2.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-From b5731b01541ebc345bffd9b57c08981196f1ad1d Mon Sep 17 00:00:00 2001
-From: Sebastian Pipping <sebastian@pipping.org>
-Date: Wed, 14 Mar 2012 13:40:19 +0100
-Subject: [PATCH] Introduce configure options --with[out]-gs and
- --with[out]-bzip2 to allow bypassing gs/bzip2
- auto-detection
-
----
- configure.ac | 24 ++++++++++++++++++++----
- 1 files changed, 20 insertions(+), 4 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index bb60d2f..e2f154d 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1154,13 +1154,21 @@ AC_SUBST(Z_LIBS)
- # Check for libbzip2
- ####################
-
--have_libbzip2=yes
--if test -z "$BZIP2_LIBS"; then
-+AC_ARG_WITH(gs, [ --without-bzip2 build without bzip2 support])
-+
-+have_libbzip2=no
-+if test "x$with_bzip2" != xno; then
-+ have_libbzip2=yes
- AC_CHECK_LIB(bz2, BZ2_bzCompress,
- [AC_CHECK_HEADER(bzlib.h,
- BZIP2_LIBS='-lbz2',
- [have_libbzip2="no (libbzip2 header files not found)"])],
- [have_libbzip2="no (libbzip2 library not found)"])
-+ if test "x$have_libbzip2" != xyes -a "x$with_bzip2" = xyes; then
-+ AC_MSG_ERROR([
-+*** Checks for bzip2 library failed. You can build without it by passing
-+*** --without-bzip2 to configure but you won't be able to use compressed files then.])
-+ fi
- fi
-
- AM_CONDITIONAL(HAVE_BZIP2, test "x$have_libbzip2" = xyes)
-@@ -1176,13 +1184,21 @@ fi
- # Check for Ghostscript library
- ###############################
-
--have_gs=yes
--if test -z "$GS_LIBS"; then
-+AC_ARG_WITH(gs, [ --without-gs build without Ghostscript support])
-+
-+have_gs=no
-+if test "x$with_gs" != xno; then
-+ have_gs=yes
- AC_CHECK_LIB(gs, gsapi_new_instance,
- [AC_CHECK_HEADER(ghostscript/iapi.h,
- FILE_PS='file-ps$(EXEEXT)'; GS_LIBS='-lgs',
- [have_gs="no (Ghostscript header files not found)"])],
- [have_gs="no (Ghostscript library not found)"])
-+ if test "x$have_gs" != xyes -a "x$with_gs" = xyes; then
-+ AC_MSG_ERROR([
-+*** Checks for Ghostscript library failed. You can build without it by passing
-+*** --without-gs to configure but you won't be able to use Postscript files then.])
-+ fi
- fi
-
- AC_SUBST(FILE_PS)
---
-1.7.8.5
-
diff --git a/media-gfx/gimp/files/gimp-2.8.0-bzip2.patch b/media-gfx/gimp/files/gimp-2.8.0-bzip2.patch
deleted file mode 100644
index b5c4e4023981..000000000000
--- a/media-gfx/gimp/files/gimp-2.8.0-bzip2.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From fa9afae051cf2f8512765df8b3d385b360df03e9 Mon Sep 17 00:00:00 2001
-From: Sebastian Pipping <sebastian@pipping.org>
-Date: Fri, 4 May 2012 23:10:30 +0200
-Subject: [PATCH] Fix configure option --with[out]-bzip2
-
----
- configure.ac | 2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 6013f0b..8e50170 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1154,7 +1154,7 @@ AC_SUBST(Z_LIBS)
- # Check for libbzip2
- ####################
-
--AC_ARG_WITH(gs, [ --without-bzip2 build without bzip2 support])
-+AC_ARG_WITH(bzip2, [ --without-bzip2 build without bzip2 support])
-
- have_libbzip2=no
- if test "x$with_bzip2" != xno; then
---
-1.7.8.5
-
diff --git a/media-gfx/gimp/files/gimp-2.8.2-xwd-file-security.patch b/media-gfx/gimp/files/gimp-2.8.2-xwd-file-security.patch
deleted file mode 100644
index da69ec6a0b58..000000000000
--- a/media-gfx/gimp/files/gimp-2.8.2-xwd-file-security.patch
+++ /dev/null
@@ -1,173 +0,0 @@
-From 2873262fccba12af144ed96ed91be144d92ff2e1 Mon Sep 17 00:00:00 2001
-From: Michael Natterer <mitch@gimp.org>
-Date: Wed, 07 Nov 2012 23:16:31 +0000
-Subject: Bug 687392 - Memory corruption vulnerability when reading XWD files
-
-Applied and enhanced patch from andres which makes file-xwd detect
-this kind of file corruption and abort loading with an error message.
-(cherry picked from commit 0b35f6a082a0b3c372c568ea6bde39a4796acde2)
----
-diff --git a/plug-ins/common/file-xwd.c b/plug-ins/common/file-xwd.c
-index 4e8a95e..f91d757 100644
---- a/plug-ins/common/file-xwd.c
-+++ b/plug-ins/common/file-xwd.c
-@@ -186,11 +186,13 @@ static gint32 load_xwd_f2_d16_b16 (const gchar *,
- static gint32 load_xwd_f2_d24_b32 (const gchar *,
- FILE *,
- L_XWDFILEHEADER *,
-- L_XWDCOLOR *);
-+ L_XWDCOLOR *,
-+ GError **);
- static gint32 load_xwd_f1_d24_b1 (const gchar *,
- FILE *,
- L_XWDFILEHEADER *,
-- L_XWDCOLOR *);
-+ L_XWDCOLOR *,
-+ GError **);
-
- static L_CARD32 read_card32 (FILE *,
- gint *);
-@@ -540,7 +542,8 @@ load_image (const gchar *filename,
- case 1: /* Single plane pixmap */
- if ((depth <= 24) && (bpp == 1))
- {
-- image_ID = load_xwd_f1_d24_b1 (filename, ifp, &xwdhdr, xwdcolmap);
-+ image_ID = load_xwd_f1_d24_b1 (filename, ifp, &xwdhdr, xwdcolmap,
-+ error);
- }
- break;
-
-@@ -559,7 +562,8 @@ load_image (const gchar *filename,
- }
- else if ((depth <= 24) && ((bpp == 24) || (bpp == 32)))
- {
-- image_ID = load_xwd_f2_d24_b32 (filename, ifp, &xwdhdr, xwdcolmap);
-+ image_ID = load_xwd_f2_d24_b32 (filename, ifp, &xwdhdr, xwdcolmap,
-+ error);
- }
- break;
- }
-@@ -570,7 +574,7 @@ load_image (const gchar *filename,
- if (xwdcolmap)
- g_free (xwdcolmap);
-
-- if (image_ID == -1)
-+ if (image_ID == -1 && ! (error && *error))
- g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
- _("XWD-file %s has format %d, depth %d and bits per pixel %d. "
- "Currently this is not supported."),
-@@ -1624,10 +1628,11 @@ load_xwd_f2_d16_b16 (const gchar *filename,
- /* Load XWD with pixmap_format 2, pixmap_depth up to 24, bits_per_pixel 24/32 */
-
- static gint32
--load_xwd_f2_d24_b32 (const gchar *filename,
-- FILE *ifp,
-- L_XWDFILEHEADER *xwdhdr,
-- L_XWDCOLOR *xwdcolmap)
-+load_xwd_f2_d24_b32 (const gchar *filename,
-+ FILE *ifp,
-+ L_XWDFILEHEADER *xwdhdr,
-+ L_XWDCOLOR *xwdcolmap,
-+ GError **error)
- {
- register guchar *dest, lsbyte_first;
- gint width, height, linepad, i, j, c0, c1, c2, c3;
-@@ -1652,12 +1657,6 @@ load_xwd_f2_d24_b32 (const gchar *filename,
- width = xwdhdr->l_pixmap_width;
- height = xwdhdr->l_pixmap_height;
-
-- image_ID = create_new_image (filename, width, height, GIMP_RGB,
-- &layer_ID, &drawable, &pixel_rgn);
--
-- tile_height = gimp_tile_height ();
-- data = g_malloc (tile_height * width * 3);
--
- redmask = xwdhdr->l_red_mask;
- greenmask = xwdhdr->l_green_mask;
- bluemask = xwdhdr->l_blue_mask;
-@@ -1685,6 +1684,22 @@ load_xwd_f2_d24_b32 (const gchar *filename,
- maxblue = 0; while (bluemask >> (blueshift + maxblue)) maxblue++;
- maxblue = (1 << maxblue) - 1;
-
-+ if (maxred > sizeof (redmap) ||
-+ maxgreen > sizeof (greenmap) ||
-+ maxblue > sizeof (bluemap))
-+ {
-+ g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
-+ _("XWD-file %s is corrupt."),
-+ gimp_filename_to_utf8 (filename));
-+ return -1;
-+ }
-+
-+ image_ID = create_new_image (filename, width, height, GIMP_RGB,
-+ &layer_ID, &drawable, &pixel_rgn);
-+
-+ tile_height = gimp_tile_height ();
-+ data = g_malloc (tile_height * width * 3);
-+
- /* Set map-arrays for red, green, blue */
- for (red = 0; red <= maxred; red++)
- redmap[red] = (red * 255) / maxred;
-@@ -1825,10 +1840,11 @@ load_xwd_f2_d24_b32 (const gchar *filename,
- /* Load XWD with pixmap_format 1, pixmap_depth up to 24, bits_per_pixel 1 */
-
- static gint32
--load_xwd_f1_d24_b1 (const gchar *filename,
-- FILE *ifp,
-- L_XWDFILEHEADER *xwdhdr,
-- L_XWDCOLOR *xwdcolmap)
-+load_xwd_f1_d24_b1 (const gchar *filename,
-+ FILE *ifp,
-+ L_XWDFILEHEADER *xwdhdr,
-+ L_XWDCOLOR *xwdcolmap,
-+ GError **error)
- {
- register guchar *dest, outmask, inmask, do_reverse;
- gint width, height, i, j, plane, fromright;
-@@ -1863,13 +1879,6 @@ load_xwd_f1_d24_b1 (const gchar *filename,
- indexed = (xwdhdr->l_pixmap_depth <= 8);
- bytes_per_pixel = (indexed ? 1 : 3);
-
-- image_ID = create_new_image (filename, width, height,
-- indexed ? GIMP_INDEXED : GIMP_RGB,
-- &layer_ID, &drawable, &pixel_rgn);
--
-- tile_height = gimp_tile_height ();
-- data = g_malloc (tile_height * width * bytes_per_pixel);
--
- for (j = 0; j < 256; j++) /* Create an array for reversing bits */
- {
- inmask = 0;
-@@ -1913,6 +1922,16 @@ load_xwd_f1_d24_b1 (const gchar *filename,
- maxblue = 0; while (bluemask >> (blueshift + maxblue)) maxblue++;
- maxblue = (1 << maxblue) - 1;
-
-+ if (maxred > sizeof (redmap) ||
-+ maxgreen > sizeof (greenmap) ||
-+ maxblue > sizeof (bluemap))
-+ {
-+ g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
-+ _("XWD-file %s is corrupt."),
-+ gimp_filename_to_utf8 (filename));
-+ return -1;
-+ }
-+
- /* Set map-arrays for red, green, blue */
- for (red = 0; red <= maxred; red++)
- redmap[red] = (red * 255) / maxred;
-@@ -1922,6 +1941,13 @@ load_xwd_f1_d24_b1 (const gchar *filename,
- bluemap[blue] = (blue * 255) / maxblue;
- }
-
-+ image_ID = create_new_image (filename, width, height,
-+ indexed ? GIMP_INDEXED : GIMP_RGB,
-+ &layer_ID, &drawable, &pixel_rgn);
-+
-+ tile_height = gimp_tile_height ();
-+ data = g_malloc (tile_height * width * bytes_per_pixel);
-+
- ncols = xwdhdr->l_colormap_entries;
- if (xwdhdr->l_ncolors < ncols)
- ncols = xwdhdr->l_ncolors;
---
-cgit v0.9.0.2
diff --git a/media-gfx/gimp/files/gimp-2.8.4-valid-desktop-file.patch b/media-gfx/gimp/files/gimp-2.8.4-valid-desktop-file.patch
deleted file mode 100644
index ab5662fcfcdd..000000000000
--- a/media-gfx/gimp/files/gimp-2.8.4-valid-desktop-file.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 0ed3b482a422ff684c8921b7de9f44ea7b20345c Mon Sep 17 00:00:00 2001
-From: Kevin Cozens <kcozens@svn.gnome.org>
-Date: Sun, 30 Dec 2012 15:43:50 +0000
-Subject: Fixed MIME_TYPES. Postscript and PDF are compiled conditionally. Fixes #690882.
-
-(cherry picked from commit d17622dce6228bebd646ed1eb3063fc952905cfd)
----
-(limited to 'configure.ac')
-
-diff --git a/configure.ac b/configure.ac
-index 9db3696..8523aeb 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1024,7 +1024,7 @@ AC_SUBST(GIMP_COMMAND)
-
- # The list of MIME types that are supported by plug-ins that are compiled
- # unconditionally:
--MIME_TYPES="application/postscript;application/pdf;image/bmp;image/g3fax;image/gif;image/x-fits;image/x-pcx;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-psd;image/x-sgi;image/x-tga;image/x-xbitmap;image/x-xwindowdump;image/x-xcf;image/x-compressed-xcf;image/x-gimp-gbr;image/x-gimp-pat;image/x-gimp-gih"
-+MIME_TYPES="image/bmp;image/g3fax;image/gif;image/x-fits;image/x-pcx;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-psd;image/x-sgi;image/x-tga;image/x-xbitmap;image/x-xwindowdump;image/x-xcf;image/x-compressed-xcf;image/x-gimp-gbr;image/x-gimp-pat;image/x-gimp-gih"
-
-
- ###################
-@@ -1201,6 +1201,10 @@ if test "x$with_gs" != xno; then
- fi
- fi
-
-+if test "x$have_gs" = xyes; then
-+ MIME_TYPES="$MIME_TYPES;application/postscript"
-+fi
-+
- AC_SUBST(FILE_PS)
- AM_CONDITIONAL(HAVE_GS, test "x$have_gs" = xyes)
- AC_SUBST(GS_LIBS)
---
-cgit v0.9.2
diff --git a/media-gfx/gimp/files/gimp-CVE-2010-4540-to-4543.diff b/media-gfx/gimp/files/gimp-CVE-2010-4540-to-4543.diff
deleted file mode 100644
index 111b20dc05b5..000000000000
--- a/media-gfx/gimp/files/gimp-CVE-2010-4540-to-4543.diff
+++ /dev/null
@@ -1,132 +0,0 @@
-diff -Naur gimp-2.6.11/plug-ins/common/file-psp.c gimp-2.6.11-sec//plug-ins/common/file-psp.c
---- gimp-2.6.11/plug-ins/common/file-psp.c 2010-07-03 00:51:56.000000000 +0200
-+++ gimp-2.6.11-sec//plug-ins/common/file-psp.c 2011-02-16 11:58:38.195883063 +0100
-@@ -1244,6 +1244,10 @@
- }
- else
- fread (buf, runcount, 1, f);
-+
-+ /* prevent buffer overflow for bogus data */
-+ runcount = MIN (runcount, endq - q);
-+
- if (bytespp == 1)
- {
- memmove (q, buf, runcount);
-diff -Naur gimp-2.6.11/plug-ins/common/sphere-designer.c gimp-2.6.11-sec//plug-ins/common/sphere-designer.c
---- gimp-2.6.11/plug-ins/common/sphere-designer.c 2010-07-03 00:51:56.000000000 +0200
-+++ gimp-2.6.11-sec//plug-ins/common/sphere-designer.c 2011-02-16 11:58:32.967912810 +0100
-@@ -1992,6 +1992,7 @@
- gchar endbuf[21 * (G_ASCII_DTOSTR_BUF_SIZE + 1)];
- gchar *end = endbuf;
- gchar line[1024];
-+ gchar fmt_str[16];
- gint i;
- texture *t;
- gint majtype, type;
-@@ -2016,6 +2017,8 @@
-
- s.com.numtexture = 0;
-
-+ snprintf (fmt_str, sizeof (fmt_str), "%%d %%d %%%lds", sizeof (endbuf) - 1);
-+
- while (!feof (f))
- {
-
-@@ -2026,7 +2029,7 @@
- t = &s.com.texture[i];
- setdefaults (t);
-
-- if (sscanf (line, "%d %d %s", &t->majtype, &t->type, end) != 3)
-+ if (sscanf (line, fmt_str, &t->majtype, &t->type, end) != 3)
- t->color1.x = g_ascii_strtod (end, &end);
- if (end && errno != ERANGE)
- t->color1.y = g_ascii_strtod (end, &end);
-diff -Naur gimp-2.6.11/plug-ins/gfig/gfig-style.c gimp-2.6.11-sec//plug-ins/gfig/gfig-style.c
---- gimp-2.6.11/plug-ins/gfig/gfig-style.c 2010-07-03 00:51:59.000000000 +0200
-+++ gimp-2.6.11-sec//plug-ins/gfig/gfig-style.c 2011-02-16 11:58:32.967912810 +0100
-@@ -165,6 +165,7 @@
- gchar *ptr;
- gchar *tmpstr;
- gchar *endptr;
-+ gchar fmt_str[32];
- gchar colorstr_r[G_ASCII_DTOSTR_BUF_SIZE];
- gchar colorstr_g[G_ASCII_DTOSTR_BUF_SIZE];
- gchar colorstr_b[G_ASCII_DTOSTR_BUF_SIZE];
-@@ -172,6 +173,10 @@
-
- style_entry->r = style_entry->g = style_entry->b = style_entry->a = 0.;
-
-+ snprintf (fmt_str, sizeof (fmt_str), "%%%lds %%%lds %%%lds %%%lds",
-+ sizeof (colorstr_r) - 1, sizeof (colorstr_g) - 1,
-+ sizeof (colorstr_b) - 1, sizeof (colorstr_a) - 1);
-+
- while (n < nitems)
- {
- ptr = strchr (text[n], ':');
-@@ -181,7 +186,8 @@
- ptr++;
- if (!strcmp (tmpstr, name))
- {
-- sscanf (ptr, "%s %s %s %s", colorstr_r, colorstr_g, colorstr_b, colorstr_a);
-+ sscanf (ptr, fmt_str,
-+ colorstr_r, colorstr_g, colorstr_b, colorstr_a);
- style_entry->r = g_ascii_strtod (colorstr_r, &endptr);
- style_entry->g = g_ascii_strtod (colorstr_g, &endptr);
- style_entry->b = g_ascii_strtod (colorstr_b, &endptr);
-diff -Naur gimp-2.6.11/plug-ins/lighting/lighting-ui.c gimp-2.6.11-sec//plug-ins/lighting/lighting-ui.c
---- gimp-2.6.11/plug-ins/lighting/lighting-ui.c 2010-07-03 00:51:59.000000000 +0200
-+++ gimp-2.6.11-sec//plug-ins/lighting/lighting-ui.c 2011-02-16 11:58:32.968912815 +0100
-@@ -1342,6 +1342,7 @@
- gchar buffer3[G_ASCII_DTOSTR_BUF_SIZE];
- gchar type_label[21];
- gchar *endptr;
-+ gchar fmt_str[32];
-
- if (response_id == GTK_RESPONSE_OK)
- {
-@@ -1381,23 +1382,41 @@
- return;
- }
-
-- fscanf (fp, " Position: %s %s %s", buffer1, buffer2, buffer3);
-+ snprintf (fmt_str, sizeof (fmt_str),
-+ " Position: %%%lds %%%lds %%%lds",
-+ sizeof (buffer1) - 1,
-+ sizeof (buffer2) - 1,
-+ sizeof (buffer3) - 1);
-+ fscanf (fp, fmt_str, buffer1, buffer2, buffer3);
- source->position.x = g_ascii_strtod (buffer1, &endptr);
- source->position.y = g_ascii_strtod (buffer2, &endptr);
- source->position.z = g_ascii_strtod (buffer3, &endptr);
-
-- fscanf (fp, " Direction: %s %s %s", buffer1, buffer2, buffer3);
-+ snprintf (fmt_str, sizeof (fmt_str),
-+ " Direction: %%%lds %%%lds %%%lds",
-+ sizeof (buffer1) - 1,
-+ sizeof (buffer2) - 1,
-+ sizeof (buffer3) - 1);
-+ fscanf (fp, fmt_str, buffer1, buffer2, buffer3);
- source->direction.x = g_ascii_strtod (buffer1, &endptr);
- source->direction.y = g_ascii_strtod (buffer2, &endptr);
- source->direction.z = g_ascii_strtod (buffer3, &endptr);
-
-- fscanf (fp, " Color: %s %s %s", buffer1, buffer2, buffer3);
-+ snprintf (fmt_str, sizeof (fmt_str),
-+ " Color: %%%lds %%%lds %%%lds",
-+ sizeof (buffer1) - 1,
-+ sizeof (buffer2) - 1,
-+ sizeof (buffer3) - 1);
-+ fscanf (fp, fmt_str, buffer1, buffer2, buffer3);
- source->color.r = g_ascii_strtod (buffer1, &endptr);
- source->color.g = g_ascii_strtod (buffer2, &endptr);
- source->color.b = g_ascii_strtod (buffer3, &endptr);
- source->color.a = 1.0;
-
-- fscanf (fp, " Intensity: %s", buffer1);
-+ snprintf (fmt_str, sizeof (fmt_str),
-+ " Intensity: %%%lds",
-+ sizeof (buffer1) - 1);
-+ fscanf (fp, fmt_str, buffer1);
- source->intensity = g_ascii_strtod (buffer1, &endptr);
-
- }
diff --git a/media-gfx/gimp/files/gimp-libpng15-v2.diff b/media-gfx/gimp/files/gimp-libpng15-v2.diff
deleted file mode 100644
index 30c3778f75b6..000000000000
--- a/media-gfx/gimp/files/gimp-libpng15-v2.diff
+++ /dev/null
@@ -1,499 +0,0 @@
-$NetBSD: patch-ae,v 1.13 2011/04/19 10:28:31 wiz Exp $
-
-Fix build with png-1.5.
-https://bugzilla.gnome.org/show_bug.cgi?id=640409
-
---- plug-ins/common/file-mng.c.orig 2010-07-02 22:51:56.000000000 +0000
-+++ plug-ins/common/file-mng.c
-@@ -799,6 +799,13 @@ mng_save_image (const gchar *filename,
- png_infop png_info_ptr;
- FILE *infile, *outfile;
- int num_passes;
-+ int color_type;
-+ png_colorp palette;
-+ int num_palette;
-+ int bit_depth;
-+ png_bytep trans_alpha;
-+ int num_trans;
-+ png_color_16p trans_color;
- int tile_height;
- guchar **layer_pixels, *layer_pixel;
- int pass, j, k, begin, end, num;
-@@ -969,7 +976,7 @@ mng_save_image (const gchar *filename,
- goto err3;
- }
-
-- if (setjmp (png_ptr->jmpbuf) != 0)
-+ if (setjmp (png_jmpbuf(png_ptr)) != 0)
- {
- g_warning ("HRM saving PNG in mng_save_image()");
- png_destroy_write_struct (&png_ptr, &png_info_ptr);
-@@ -981,37 +988,31 @@ mng_save_image (const gchar *filename,
- png_init_io (png_ptr, outfile);
- png_set_compression_level (png_ptr, mng_data.compression_level);
-
-- png_info_ptr->width = layer_cols;
-- png_info_ptr->height = layer_rows;
-- png_info_ptr->interlace_type = (mng_data.interlaced == 0 ? 0 : 1);
-- png_info_ptr->bit_depth = 8;
--
-+ bit_depth = 8;
- switch (layer_drawable_type)
- {
- case GIMP_RGB_IMAGE:
-- png_info_ptr->color_type = PNG_COLOR_TYPE_RGB;
-+ color_type = PNG_COLOR_TYPE_RGB;
- break;
- case GIMP_RGBA_IMAGE:
-- png_info_ptr->color_type = PNG_COLOR_TYPE_RGB_ALPHA;
-+ color_type = PNG_COLOR_TYPE_RGB_ALPHA;
- break;
- case GIMP_GRAY_IMAGE:
-- png_info_ptr->color_type = PNG_COLOR_TYPE_GRAY;
-+ color_type = PNG_COLOR_TYPE_GRAY;
- break;
- case GIMP_GRAYA_IMAGE:
-- png_info_ptr->color_type = PNG_COLOR_TYPE_GRAY_ALPHA;
-+ color_type = PNG_COLOR_TYPE_GRAY_ALPHA;
- break;
- case GIMP_INDEXED_IMAGE:
-- png_info_ptr->color_type = PNG_COLOR_TYPE_PALETTE;
-- png_info_ptr->valid |= PNG_INFO_PLTE;
-- png_info_ptr->palette =
-- (png_colorp) gimp_image_get_colormap (image_id, &num_colors);
-- png_info_ptr->num_palette = num_colors;
-- break;
- case GIMP_INDEXEDA_IMAGE:
-- png_info_ptr->color_type = PNG_COLOR_TYPE_PALETTE;
-- layer_has_unique_palette =
-- respin_cmap (png_ptr, png_info_ptr, layer_remap,
-- image_id, layer_drawable);
-+ color_type = PNG_COLOR_TYPE_PALETTE;
-+ gimp_image_get_colormap (image_id, &num_colors);
-+ if (num_palette <= 2)
-+ bit_depth = 1;
-+ else if (num_palette <= 4)
-+ bit_depth = 2;
-+ else if (num_palette <= 16)
-+ bit_depth = 4;
- break;
- default:
- g_warning ("This can't be!\n");
-@@ -1021,16 +1022,14 @@ mng_save_image (const gchar *filename,
- goto err3;
- }
-
-- if ((png_info_ptr->valid & PNG_INFO_PLTE) == PNG_INFO_PLTE)
-- {
-- if (png_info_ptr->num_palette <= 2)
-- png_info_ptr->bit_depth = 1;
-- else if (png_info_ptr->num_palette <= 4)
-- png_info_ptr->bit_depth = 2;
-- else if (png_info_ptr->num_palette <= 16)
-- png_info_ptr->bit_depth = 4;
-- }
-+ png_set_IHDR(png_ptr, png_info_ptr, layer_cols, layer_rows, bit_depth, color_type, (mng_data.interlaced == 0 ? PNG_INTERLACE_NONE : PNG_INTERLACE_ADAM7), PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);
-
-+ if (layer_drawable_type == GIMP_INDEXED_IMAGE)
-+ png_set_PLTE(png_ptr, png_info_ptr, (png_colorp) gimp_image_get_colormap (image_id, &num_colors), num_colors);
-+ else if (layer_drawable_type == GIMP_INDEXEDA_IMAGE)
-+ layer_has_unique_palette =
-+ respin_cmap (png_ptr, png_info_ptr, layer_remap,
-+ image_id, layer_drawable);
- png_write_info (png_ptr, png_info_ptr);
-
- if (mng_data.interlaced != 0)
-@@ -1038,8 +1037,8 @@ mng_save_image (const gchar *filename,
- else
- num_passes = 1;
-
-- if ((png_info_ptr->color_type == PNG_COLOR_TYPE_PALETTE) &&
-- (png_info_ptr->bit_depth < 8))
-+ if ((png_get_color_type(png_ptr, png_info_ptr) == PNG_COLOR_TYPE_PALETTE) &&
-+ (png_get_bit_depth(png_ptr, png_info_ptr) < 8))
- png_set_packing (png_ptr);
-
- tile_height = gimp_tile_height ();
-@@ -1065,7 +1064,7 @@ mng_save_image (const gchar *filename,
- gimp_pixel_rgn_get_rect (&layer_pixel_rgn, layer_pixel, 0,
- begin, layer_cols, num);
-
-- if ((png_info_ptr->valid & PNG_INFO_tRNS) == PNG_INFO_tRNS)
-+ if (png_get_tRNS(png_ptr, png_info_ptr, &trans_alpha, &num_trans, &trans_color) != 0)
- {
- for (j = 0; j < num; j++)
- {
-@@ -1077,7 +1076,7 @@ mng_save_image (const gchar *filename,
- }
- }
- else
-- if (((png_info_ptr->valid & PNG_INFO_PLTE) == PNG_INFO_PLTE)
-+ if ((png_get_PLTE(png_ptr, png_info_ptr, &palette, &num_palette) != 0)
- && (layer_bpp == 2))
- {
- for (j = 0; j < num; j++)
-$NetBSD: patch-af,v 1.8 2011/04/19 10:28:31 wiz Exp $
-
-Fix build with png-1.5.
-https://bugzilla.gnome.org/show_bug.cgi?id=640409
-
---- plug-ins/common/file-png.c.orig 2010-07-13 20:22:27.000000000 +0000
-+++ plug-ins/common/file-png.c
-@@ -653,7 +653,11 @@ on_read_error (png_structp png_ptr, png_
- error_data->drawable->width, num);
- }
-
-+#if (PNG_LIBPNG_VER < 10500)
- longjmp (png_ptr->jmpbuf, 1);
-+#else
-+ png_longjmp (png_ptr, 1);
-+#endif
- }
-
- /*
-@@ -697,7 +701,7 @@ load_image (const gchar *filename,
- pp = png_create_read_struct (PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
- info = png_create_info_struct (pp);
-
-- if (setjmp (pp->jmpbuf))
-+ if (setjmp (png_jmpbuf(pp)))
- {
- g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
- _("Error while reading '%s'. File corrupted?"),
-@@ -738,17 +742,17 @@ load_image (const gchar *filename,
- * Latest attempt, this should be my best yet :)
- */
-
-- if (info->bit_depth == 16)
-+ if (png_get_bit_depth(pp, info) == 16)
- {
- png_set_strip_16 (pp);
- }
-
-- if (info->color_type == PNG_COLOR_TYPE_GRAY && info->bit_depth < 8)
-+ if (png_get_color_type(pp, info) == PNG_COLOR_TYPE_GRAY && png_get_bit_depth(pp, info) < 8)
- {
- png_set_expand (pp);
- }
-
-- if (info->color_type == PNG_COLOR_TYPE_PALETTE && info->bit_depth < 8)
-+ if (png_get_color_type(pp, info) == PNG_COLOR_TYPE_PALETTE && png_get_bit_depth(pp, info) < 8)
- {
- png_set_packing (pp);
- }
-@@ -757,8 +761,8 @@ load_image (const gchar *filename,
- * Expand G+tRNS to GA, RGB+tRNS to RGBA
- */
-
-- if (info->color_type != PNG_COLOR_TYPE_PALETTE &&
-- (info->valid & PNG_INFO_tRNS))
-+ if (png_get_color_type(pp, info) != PNG_COLOR_TYPE_PALETTE &&
-+ png_get_valid(pp, info, PNG_INFO_tRNS) != 0)
- {
- png_set_expand (pp);
- }
-@@ -775,7 +779,7 @@ load_image (const gchar *filename,
- */
-
- if (png_get_valid (pp, info, PNG_INFO_tRNS) &&
-- info->color_type == PNG_COLOR_TYPE_PALETTE)
-+ png_get_color_type(pp, info) == PNG_COLOR_TYPE_PALETTE)
- {
- png_get_tRNS (pp, info, &alpha_ptr, &num, NULL);
- /* Copy the existing alpha values from the tRNS chunk */
-@@ -797,7 +801,7 @@ load_image (const gchar *filename,
-
- png_read_update_info (pp, info);
-
-- switch (info->color_type)
-+ switch (png_get_color_type(pp, info))
- {
- case PNG_COLOR_TYPE_RGB: /* RGB */
- bpp = 3;
-@@ -836,7 +840,7 @@ load_image (const gchar *filename,
- return -1;
- }
-
-- image = gimp_image_new (info->width, info->height, image_type);
-+ image = gimp_image_new (png_get_image_width(pp, info), png_get_image_height(pp, info), image_type);
- if (image == -1)
- {
- g_set_error (error, 0, 0,
-@@ -849,7 +853,7 @@ load_image (const gchar *filename,
- * Create the "background" layer to hold the image...
- */
-
-- layer = gimp_layer_new (image, _("Background"), info->width, info->height,
-+ layer = gimp_layer_new (image, _("Background"), png_get_image_width(pp, info), png_get_image_height(pp, info),
- layer_type, 100, GIMP_NORMAL_MODE);
- gimp_image_add_layer (image, layer, 0);
-
-@@ -883,7 +887,7 @@ load_image (const gchar *filename,
-
- gimp_layer_set_offsets (layer, offset_x, offset_y);
-
-- if ((abs (offset_x) > info->width) || (abs (offset_y) > info->height))
-+ if ((abs (offset_x) > png_get_image_width(pp, info)) || (abs (offset_y) > png_get_image_height(pp, info)))
- {
- if (interactive)
- g_message (_("The PNG file specifies an offset that caused "
-@@ -938,23 +942,27 @@ load_image (const gchar *filename,
-
- empty = 0; /* by default assume no full transparent palette entries */
-
-- if (info->color_type & PNG_COLOR_MASK_PALETTE)
-+ if (png_get_color_type(pp, info) & PNG_COLOR_MASK_PALETTE)
- {
-+ png_colorp palette;
-+ int num_palette;
-+ png_get_PLTE(pp, info, &palette, &num_palette);
-+
- if (png_get_valid (pp, info, PNG_INFO_tRNS))
- {
- for (empty = 0; empty < 256 && alpha[empty] == 0; ++empty)
- /* Calculates number of fully transparent "empty" entries */;
-
- /* keep at least one entry */
-- empty = MIN (empty, info->num_palette - 1);
-+ empty = MIN (empty, num_palette - 1);
-
-- gimp_image_set_colormap (image, (guchar *) (info->palette + empty),
-- info->num_palette - empty);
-+ gimp_image_set_colormap (image, (guchar *) (palette + empty),
-+ num_palette - empty);
- }
- else
- {
-- gimp_image_set_colormap (image, (guchar *) info->palette,
-- info->num_palette);
-+ gimp_image_set_colormap (image, (guchar *) palette,
-+ num_palette);
- }
- }
-
-@@ -972,18 +980,18 @@ load_image (const gchar *filename,
- */
-
- tile_height = gimp_tile_height ();
-- pixel = g_new0 (guchar, tile_height * info->width * bpp);
-+ pixel = g_new0 (guchar, tile_height * png_get_image_width(pp, info) * bpp);
- pixels = g_new (guchar *, tile_height);
-
- for (i = 0; i < tile_height; i++)
-- pixels[i] = pixel + info->width * info->channels * i;
-+ pixels[i] = pixel + png_get_image_width(pp, info) * png_get_channels(pp, info) * i;
-
- /* Install our own error handler to handle incomplete PNG files better */
- error_data.drawable = drawable;
- error_data.pixel = pixel;
- error_data.tile_height = tile_height;
-- error_data.width = info->width;
-- error_data.height = info->height;
-+ error_data.width = png_get_image_width(pp, info);
-+ error_data.height = png_get_image_height(pp, info);
- error_data.bpp = bpp;
- error_data.pixel_rgn = &pixel_rgn;
-
-@@ -996,10 +1004,10 @@ load_image (const gchar *filename,
- */
-
- for (begin = 0, end = tile_height;
-- begin < info->height; begin += tile_height, end += tile_height)
-+ begin < png_get_image_height(pp, info); begin += tile_height, end += tile_height)
- {
-- if (end > info->height)
-- end = info->height;
-+ if (end > png_get_image_height(pp, info))
-+ end = png_get_image_height(pp, info);
-
- num = end - begin;
-
-@@ -1016,10 +1024,10 @@ load_image (const gchar *filename,
- gimp_pixel_rgn_set_rect (&pixel_rgn, pixel, 0, begin,
- drawable->width, num);
-
-- memset (pixel, 0, tile_height * info->width * bpp);
-+ memset (pixel, 0, tile_height * png_get_image_width(pp, info) * bpp);
-
- gimp_progress_update (((gdouble) pass +
-- (gdouble) end / (gdouble) info->height) /
-+ (gdouble) end / (gdouble) png_get_image_height(pp, info)) /
- (gdouble) num_passes);
- }
- }
-@@ -1072,7 +1080,8 @@ load_image (const gchar *filename,
-
- {
- png_uint_32 proflen;
-- png_charp profname, profile;
-+ png_charp profname;
-+ png_bytep profile;
- int profcomp;
-
- if (png_get_iCCP (pp, info, &profname, &profcomp, &profile, &proflen))
-@@ -1200,6 +1209,8 @@ save_image (const gchar *filename,
- guchar red, green, blue; /* Used for palette background */
- time_t cutime; /* Time since epoch */
- struct tm *gmt; /* GMT broken down */
-+ int color_type; /* type of colors in image */
-+ int bit_depth; /* width of colors in bit */
-
- guchar remap[256]; /* Re-mapping for the palette */
-
-@@ -1208,7 +1219,9 @@ save_image (const gchar *filename,
- if (pngvals.comment)
- {
- GimpParasite *parasite;
-+#ifndef PNG_iTXt_SUPPORTED
- gsize text_length = 0;
-+#endif
-
- parasite = gimp_image_parasite_find (orig_image_ID, "gimp-comment");
- if (parasite)
-@@ -1249,7 +1262,7 @@ save_image (const gchar *filename,
- pp = png_create_write_struct (PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
- info = png_create_info_struct (pp);
-
-- if (setjmp (pp->jmpbuf))
-+ if (setjmp (png_jmpbuf(pp)))
- {
- g_set_error (error, 0, 0,
- _("Error while saving '%s'. Could not save image."),
-@@ -1291,11 +1304,6 @@ save_image (const gchar *filename,
-
- png_set_compression_level (pp, pngvals.compression_level);
-
-- info->width = drawable->width;
-- info->height = drawable->height;
-- info->bit_depth = 8;
-- info->interlace_type = pngvals.interlaced;
--
- /*
- * Initialise remap[]
- */
-@@ -1304,44 +1312,48 @@ save_image (const gchar *filename,
-
- /*
- * Set color type and remember bytes per pixel count
-+ * Also fix bit depths for (possibly) smaller colormap images
- */
-
-+ bit_depth = 8;
-+
- switch (type)
- {
- case GIMP_RGB_IMAGE:
-- info->color_type = PNG_COLOR_TYPE_RGB;
-+ color_type = PNG_COLOR_TYPE_RGB;
- bpp = 3;
- break;
-
- case GIMP_RGBA_IMAGE:
-- info->color_type = PNG_COLOR_TYPE_RGB_ALPHA;
-+ color_type = PNG_COLOR_TYPE_RGB_ALPHA;
- bpp = 4;
- break;
-
- case GIMP_GRAY_IMAGE:
-- info->color_type = PNG_COLOR_TYPE_GRAY;
-+ color_type = PNG_COLOR_TYPE_GRAY;
- bpp = 1;
- break;
-
- case GIMP_GRAYA_IMAGE:
-- info->color_type = PNG_COLOR_TYPE_GRAY_ALPHA;
-+ color_type = PNG_COLOR_TYPE_GRAY_ALPHA;
- bpp = 2;
- break;
-
- case GIMP_INDEXED_IMAGE:
-+ case GIMP_INDEXEDA_IMAGE:
- bpp = 1;
-- info->color_type = PNG_COLOR_TYPE_PALETTE;
-- info->valid |= PNG_INFO_PLTE;
-- info->palette =
-- (png_colorp) gimp_image_get_colormap (image_ID, &num_colors);
-- info->num_palette = num_colors;
-- break;
-+ if (type == GIMP_INDEXEDA_IMAGE)
-+ bpp = 2;
-
-- case GIMP_INDEXEDA_IMAGE:
-- bpp = 2;
-- info->color_type = PNG_COLOR_TYPE_PALETTE;
-- /* fix up transparency */
-- respin_cmap (pp, info, remap, image_ID, drawable);
-+ color_type = PNG_COLOR_TYPE_PALETTE;
-+ gimp_image_get_colormap (image_ID, &num_colors);
-+ if (num_colors <= 2)
-+ bit_depth = 1;
-+ else if (num_colors <= 4)
-+ bit_depth = 2;
-+ else if (num_colors <= 16)
-+ bit_depth = 4;
-+ /* otherwise the default is fine */
- break;
-
- default:
-@@ -1349,19 +1361,14 @@ save_image (const gchar *filename,
- return FALSE;
- }
-
-- /*
-- * Fix bit depths for (possibly) smaller colormap images
-- */
-+ png_set_IHDR(pp, info, drawable->width, drawable->height, bit_depth, color_type, pngvals.interlaced ? PNG_INTERLACE_ADAM7 : PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE);
-
-- if (info->valid & PNG_INFO_PLTE)
-+ if (type == GIMP_INDEXED_IMAGE)
-+ png_set_PLTE(pp, info, (png_colorp) gimp_image_get_colormap (image_ID, &num_colors), num_colors);
-+ else if (type == GIMP_INDEXEDA_IMAGE)
- {
-- if (info->num_palette <= 2)
-- info->bit_depth = 1;
-- else if (info->num_palette <= 4)
-- info->bit_depth = 2;
-- else if (info->num_palette <= 16)
-- info->bit_depth = 4;
-- /* otherwise the default is fine */
-+ /* fix up transparency */
-+ respin_cmap (pp, info, remap, image_ID, drawable);
- }
-
- /* All this stuff is optional extras, if the user is aiming for smallest
-@@ -1477,7 +1484,7 @@ save_image (const gchar *filename,
- * Convert unpacked pixels to packed if necessary
- */
-
-- if (info->color_type == PNG_COLOR_TYPE_PALETTE && info->bit_depth < 8)
-+ if (png_get_color_type(pp, info) == PNG_COLOR_TYPE_PALETTE && png_get_bit_depth(pp, info) < 8)
- png_set_packing (pp);
-
- /*
-@@ -1529,7 +1536,7 @@ save_image (const gchar *filename,
-
- /* If we're dealing with a paletted image with
- * transparency set, write out the remapped palette */
-- if (info->valid & PNG_INFO_tRNS)
-+ if (png_get_valid(pp, info, PNG_INFO_tRNS))
- {
- guchar inverse_remap[256];
-
-@@ -1549,7 +1556,7 @@ save_image (const gchar *filename,
- }
- /* Otherwise if we have a paletted image and transparency
- * couldn't be set, we ignore the alpha channel */
-- else if (info->valid & PNG_INFO_PLTE && bpp == 2)
-+ else if (png_get_valid(pp, info, PNG_INFO_PLTE) && bpp == 2)
- {
- for (i = 0; i < num; ++i)
- {
-@@ -1564,7 +1571,7 @@ save_image (const gchar *filename,
- png_write_rows (pp, pixels, num);
-
- gimp_progress_update (((double) pass + (double) end /
-- (double) info->height) /
-+ (double) png_get_image_height(pp, info)) /
- (double) num_passes);
- }
- }
diff --git a/media-gfx/gimp/files/gimp-libpng15.diff b/media-gfx/gimp/files/gimp-libpng15.diff
deleted file mode 100644
index beead91b0398..000000000000
--- a/media-gfx/gimp/files/gimp-libpng15.diff
+++ /dev/null
@@ -1,489 +0,0 @@
-diff -Naur gimp-2.6.11/plug-ins/common/file-mng.c gimp-2.6.11-libpng//plug-ins/common/file-mng.c
---- gimp-2.6.11/plug-ins/common/file-mng.c 2010-07-03 00:51:56.000000000 +0200
-+++ gimp-2.6.11-libpng//plug-ins/common/file-mng.c 2011-02-16 11:59:21.238641008 +0100
-@@ -799,6 +799,13 @@
- png_infop png_info_ptr;
- FILE *infile, *outfile;
- int num_passes;
-+ int color_type;
-+ png_colorp palette;
-+ int num_palette;
-+ int bit_depth;
-+ png_bytep trans_alpha;
-+ int num_trans;
-+ png_color_16p trans_color;
- int tile_height;
- guchar **layer_pixels, *layer_pixel;
- int pass, j, k, begin, end, num;
-@@ -969,7 +976,7 @@
- goto err3;
- }
-
-- if (setjmp (png_ptr->jmpbuf) != 0)
-+ if (setjmp (png_jmpbuf(png_ptr)) != 0)
- {
- g_warning ("HRM saving PNG in mng_save_image()");
- png_destroy_write_struct (&png_ptr, &png_info_ptr);
-@@ -981,34 +988,27 @@
- png_init_io (png_ptr, outfile);
- png_set_compression_level (png_ptr, mng_data.compression_level);
-
-- png_info_ptr->width = layer_cols;
-- png_info_ptr->height = layer_rows;
-- png_info_ptr->interlace_type = (mng_data.interlaced == 0 ? 0 : 1);
-- png_info_ptr->bit_depth = 8;
--
- switch (layer_drawable_type)
- {
- case GIMP_RGB_IMAGE:
-- png_info_ptr->color_type = PNG_COLOR_TYPE_RGB;
-+ color_type = PNG_COLOR_TYPE_RGB;
- break;
- case GIMP_RGBA_IMAGE:
-- png_info_ptr->color_type = PNG_COLOR_TYPE_RGB_ALPHA;
-+ color_type = PNG_COLOR_TYPE_RGB_ALPHA;
- break;
- case GIMP_GRAY_IMAGE:
-- png_info_ptr->color_type = PNG_COLOR_TYPE_GRAY;
-+ color_type = PNG_COLOR_TYPE_GRAY;
- break;
- case GIMP_GRAYA_IMAGE:
-- png_info_ptr->color_type = PNG_COLOR_TYPE_GRAY_ALPHA;
-+ color_type = PNG_COLOR_TYPE_GRAY_ALPHA;
- break;
- case GIMP_INDEXED_IMAGE:
-- png_info_ptr->color_type = PNG_COLOR_TYPE_PALETTE;
-- png_info_ptr->valid |= PNG_INFO_PLTE;
-- png_info_ptr->palette =
-- (png_colorp) gimp_image_get_colormap (image_id, &num_colors);
-- png_info_ptr->num_palette = num_colors;
-+ color_type = PNG_COLOR_TYPE_PALETTE;
-+
-+ png_set_PLTE(png_ptr, png_info_ptr, (png_colorp) gimp_image_get_colormap (image_id, &num_colors), num_colors);
- break;
- case GIMP_INDEXEDA_IMAGE:
-- png_info_ptr->color_type = PNG_COLOR_TYPE_PALETTE;
-+ color_type = PNG_COLOR_TYPE_PALETTE;
- layer_has_unique_palette =
- respin_cmap (png_ptr, png_info_ptr, layer_remap,
- image_id, layer_drawable);
-@@ -1021,15 +1021,17 @@
- goto err3;
- }
-
-- if ((png_info_ptr->valid & PNG_INFO_PLTE) == PNG_INFO_PLTE)
-+ bit_depth = 8;
-+ if (png_get_PLTE(png_ptr, png_info_ptr, &palette, &num_palette) != 0)
- {
-- if (png_info_ptr->num_palette <= 2)
-- png_info_ptr->bit_depth = 1;
-- else if (png_info_ptr->num_palette <= 4)
-- png_info_ptr->bit_depth = 2;
-- else if (png_info_ptr->num_palette <= 16)
-- png_info_ptr->bit_depth = 4;
-+ if (num_palette <= 2)
-+ bit_depth = 1;
-+ else if (num_palette <= 4)
-+ bit_depth = 2;
-+ else if (num_palette <= 16)
-+ bit_depth = 4;
- }
-+ png_set_IHDR(png_ptr, png_info_ptr, layer_cols, layer_rows, bit_depth, color_type, (mng_data.interlaced == 0 ? PNG_INTERLACE_NONE : PNG_INTERLACE_ADAM7), PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);
-
- png_write_info (png_ptr, png_info_ptr);
-
-@@ -1038,8 +1040,8 @@
- else
- num_passes = 1;
-
-- if ((png_info_ptr->color_type == PNG_COLOR_TYPE_PALETTE) &&
-- (png_info_ptr->bit_depth < 8))
-+ if ((png_get_color_type(png_ptr, png_info_ptr) == PNG_COLOR_TYPE_PALETTE) &&
-+ (png_get_bit_depth(png_ptr, png_info_ptr) < 8))
- png_set_packing (png_ptr);
-
- tile_height = gimp_tile_height ();
-@@ -1065,7 +1067,7 @@
- gimp_pixel_rgn_get_rect (&layer_pixel_rgn, layer_pixel, 0,
- begin, layer_cols, num);
-
-- if ((png_info_ptr->valid & PNG_INFO_tRNS) == PNG_INFO_tRNS)
-+ if (png_get_tRNS(png_ptr, png_info_ptr, &trans_alpha, &num_trans, &trans_color) != 0)
- {
- for (j = 0; j < num; j++)
- {
-@@ -1077,7 +1079,7 @@
- }
- }
- else
-- if (((png_info_ptr->valid & PNG_INFO_PLTE) == PNG_INFO_PLTE)
-+ if ((png_get_PLTE(png_ptr, png_info_ptr, &palette, &num_palette) != 0)
- && (layer_bpp == 2))
- {
- for (j = 0; j < num; j++)
-diff -Naur gimp-2.6.11/plug-ins/common/file-png.c gimp-2.6.11-libpng//plug-ins/common/file-png.c
---- gimp-2.6.11/plug-ins/common/file-png.c 2010-07-13 22:22:27.000000000 +0200
-+++ gimp-2.6.11-libpng//plug-ins/common/file-png.c 2011-02-16 11:59:13.465685257 +0100
-@@ -653,7 +653,11 @@
- error_data->drawable->width, num);
- }
-
-+#if (PNG_LIBPNG_VER < 10500)
- longjmp (png_ptr->jmpbuf, 1);
-+#else
-+ png_longjmp (png_ptr, 1);
-+#endif
- }
-
- /*
-@@ -697,7 +701,7 @@
- pp = png_create_read_struct (PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
- info = png_create_info_struct (pp);
-
-- if (setjmp (pp->jmpbuf))
-+ if (setjmp (png_jmpbuf(pp)))
- {
- g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
- _("Error while reading '%s'. File corrupted?"),
-@@ -738,17 +742,19 @@
- * Latest attempt, this should be my best yet :)
- */
-
-- if (info->bit_depth == 16)
-+ if (png_get_bit_depth(pp, info) == 16)
- {
- png_set_strip_16 (pp);
- }
-
-- if (info->color_type == PNG_COLOR_TYPE_GRAY && info->bit_depth < 8)
-+ if (png_get_color_type(pp, info) == PNG_COLOR_TYPE_GRAY &&
-+ png_get_bit_depth(pp, info) < 8)
- {
- png_set_expand (pp);
- }
-
-- if (info->color_type == PNG_COLOR_TYPE_PALETTE && info->bit_depth < 8)
-+ if (png_get_color_type(pp, info) == PNG_COLOR_TYPE_PALETTE &&
-+ png_get_bit_depth(pp, info) < 8)
- {
- png_set_packing (pp);
- }
-@@ -757,8 +763,8 @@
- * Expand G+tRNS to GA, RGB+tRNS to RGBA
- */
-
-- if (info->color_type != PNG_COLOR_TYPE_PALETTE &&
-- (info->valid & PNG_INFO_tRNS))
-+ if (png_get_color_type(pp, info) != PNG_COLOR_TYPE_PALETTE &&
-+ png_get_valid(pp, info, PNG_INFO_tRNS) != 0)
- {
- png_set_expand (pp);
- }
-@@ -775,7 +781,7 @@
- */
-
- if (png_get_valid (pp, info, PNG_INFO_tRNS) &&
-- info->color_type == PNG_COLOR_TYPE_PALETTE)
-+ png_get_color_type(pp, info) == PNG_COLOR_TYPE_PALETTE)
- {
- png_get_tRNS (pp, info, &alpha_ptr, &num, NULL);
- /* Copy the existing alpha values from the tRNS chunk */
-@@ -797,7 +803,7 @@
-
- png_read_update_info (pp, info);
-
-- switch (info->color_type)
-+ switch (png_get_color_type(pp, info))
- {
- case PNG_COLOR_TYPE_RGB: /* RGB */
- bpp = 3;
-@@ -836,7 +842,9 @@
- return -1;
- }
-
-- image = gimp_image_new (info->width, info->height, image_type);
-+ image = gimp_image_new (png_get_image_width(pp, info),
-+ png_get_image_height(pp, info),
-+ image_type);
- if (image == -1)
- {
- g_set_error (error, 0, 0,
-@@ -849,7 +857,9 @@
- * Create the "background" layer to hold the image...
- */
-
-- layer = gimp_layer_new (image, _("Background"), info->width, info->height,
-+ layer = gimp_layer_new (image, _("Background"),
-+ png_get_image_width(pp, info),
-+ png_get_image_height(pp, info),
- layer_type, 100, GIMP_NORMAL_MODE);
- gimp_image_add_layer (image, layer, 0);
-
-@@ -883,7 +893,8 @@
-
- gimp_layer_set_offsets (layer, offset_x, offset_y);
-
-- if ((abs (offset_x) > info->width) || (abs (offset_y) > info->height))
-+ if ((abs (offset_x) > png_get_image_width(pp, info)) ||
-+ (abs (offset_y) > png_get_image_height(pp, info)))
- {
- if (interactive)
- g_message (_("The PNG file specifies an offset that caused "
-@@ -938,23 +949,27 @@
-
- empty = 0; /* by default assume no full transparent palette entries */
-
-- if (info->color_type & PNG_COLOR_MASK_PALETTE)
-+ if (png_get_color_type(pp, info) & PNG_COLOR_MASK_PALETTE)
- {
-+ png_colorp palette;
-+ int num_palette;
-+ png_get_PLTE(pp, info, &palette, &num_palette);
-+
- if (png_get_valid (pp, info, PNG_INFO_tRNS))
- {
- for (empty = 0; empty < 256 && alpha[empty] == 0; ++empty)
- /* Calculates number of fully transparent "empty" entries */;
-
- /* keep at least one entry */
-- empty = MIN (empty, info->num_palette - 1);
-+ empty = MIN (empty, num_palette - 1);
-
-- gimp_image_set_colormap (image, (guchar *) (info->palette + empty),
-- info->num_palette - empty);
-+ gimp_image_set_colormap (image, (guchar *) (palette + empty),
-+ num_palette - empty);
- }
- else
- {
-- gimp_image_set_colormap (image, (guchar *) info->palette,
-- info->num_palette);
-+ gimp_image_set_colormap (image, (guchar *) palette,
-+ num_palette);
- }
- }
-
-@@ -972,18 +987,20 @@
- */
-
- tile_height = gimp_tile_height ();
-- pixel = g_new0 (guchar, tile_height * info->width * bpp);
-+ pixel = g_new0 (guchar, tile_height * png_get_image_width(pp, info) * bpp);
- pixels = g_new (guchar *, tile_height);
-
- for (i = 0; i < tile_height; i++)
-- pixels[i] = pixel + info->width * info->channels * i;
-+ pixels[i] = pixel + (png_get_image_width(pp, info) *
-+ png_get_channels(pp, info) *
-+ i);
-
- /* Install our own error handler to handle incomplete PNG files better */
- error_data.drawable = drawable;
- error_data.pixel = pixel;
- error_data.tile_height = tile_height;
-- error_data.width = info->width;
-- error_data.height = info->height;
-+ error_data.width = png_get_image_width(pp, info);
-+ error_data.height = png_get_image_height(pp, info);
- error_data.bpp = bpp;
- error_data.pixel_rgn = &pixel_rgn;
-
-@@ -996,10 +1013,11 @@
- */
-
- for (begin = 0, end = tile_height;
-- begin < info->height; begin += tile_height, end += tile_height)
-+ begin < png_get_image_height(pp, info);
-+ begin += tile_height, end += tile_height)
- {
-- if (end > info->height)
-- end = info->height;
-+ if (end > png_get_image_height(pp, info))
-+ end = png_get_image_height(pp, info);
-
- num = end - begin;
-
-@@ -1016,10 +1034,11 @@
- gimp_pixel_rgn_set_rect (&pixel_rgn, pixel, 0, begin,
- drawable->width, num);
-
-- memset (pixel, 0, tile_height * info->width * bpp);
-+ memset (pixel, 0, tile_height * png_get_image_width(pp, info) * bpp);
-
- gimp_progress_update (((gdouble) pass +
-- (gdouble) end / (gdouble) info->height) /
-+ (gdouble) end /
-+ (gdouble) png_get_image_height(pp, info)) /
- (gdouble) num_passes);
- }
- }
-@@ -1072,7 +1091,8 @@
-
- {
- png_uint_32 proflen;
-- png_charp profname, profile;
-+ png_charp profname;
-+ png_bytep profile;
- int profcomp;
-
- if (png_get_iCCP (pp, info, &profname, &profcomp, &profile, &proflen))
-@@ -1200,6 +1220,8 @@
- guchar red, green, blue; /* Used for palette background */
- time_t cutime; /* Time since epoch */
- struct tm *gmt; /* GMT broken down */
-+ int color_type; /* type of colors in image */
-+ int bit_depth; /* width of colors in bit */
-
- guchar remap[256]; /* Re-mapping for the palette */
-
-@@ -1208,7 +1230,9 @@
- if (pngvals.comment)
- {
- GimpParasite *parasite;
-+#ifndef PNG_iTXt_SUPPORTED
- gsize text_length = 0;
-+#endif
-
- parasite = gimp_image_parasite_find (orig_image_ID, "gimp-comment");
- if (parasite)
-@@ -1249,7 +1273,7 @@
- pp = png_create_write_struct (PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
- info = png_create_info_struct (pp);
-
-- if (setjmp (pp->jmpbuf))
-+ if (setjmp (png_jmpbuf(pp)))
- {
- g_set_error (error, 0, 0,
- _("Error while saving '%s'. Could not save image."),
-@@ -1291,11 +1315,6 @@
-
- png_set_compression_level (pp, pngvals.compression_level);
-
-- info->width = drawable->width;
-- info->height = drawable->height;
-- info->bit_depth = 8;
-- info->interlace_type = pngvals.interlaced;
--
- /*
- * Initialise remap[]
- */
-@@ -1309,37 +1328,36 @@
- switch (type)
- {
- case GIMP_RGB_IMAGE:
-- info->color_type = PNG_COLOR_TYPE_RGB;
-+ color_type = PNG_COLOR_TYPE_RGB;
- bpp = 3;
- break;
-
- case GIMP_RGBA_IMAGE:
-- info->color_type = PNG_COLOR_TYPE_RGB_ALPHA;
-+ color_type = PNG_COLOR_TYPE_RGB_ALPHA;
- bpp = 4;
- break;
-
- case GIMP_GRAY_IMAGE:
-- info->color_type = PNG_COLOR_TYPE_GRAY;
-+ color_type = PNG_COLOR_TYPE_GRAY;
- bpp = 1;
- break;
-
- case GIMP_GRAYA_IMAGE:
-- info->color_type = PNG_COLOR_TYPE_GRAY_ALPHA;
-+ color_type = PNG_COLOR_TYPE_GRAY_ALPHA;
- bpp = 2;
- break;
-
- case GIMP_INDEXED_IMAGE:
- bpp = 1;
-- info->color_type = PNG_COLOR_TYPE_PALETTE;
-- info->valid |= PNG_INFO_PLTE;
-- info->palette =
-- (png_colorp) gimp_image_get_colormap (image_ID, &num_colors);
-- info->num_palette = num_colors;
-+ color_type = PNG_COLOR_TYPE_PALETTE;
-+ png_set_PLTE(pp, info,
-+ (png_colorp) gimp_image_get_colormap (image_ID, &num_colors),
-+ num_colors);
- break;
-
- case GIMP_INDEXEDA_IMAGE:
- bpp = 2;
-- info->color_type = PNG_COLOR_TYPE_PALETTE;
-+ color_type = PNG_COLOR_TYPE_PALETTE;
- /* fix up transparency */
- respin_cmap (pp, info, remap, image_ID, drawable);
- break;
-@@ -1353,17 +1371,28 @@
- * Fix bit depths for (possibly) smaller colormap images
- */
-
-- if (info->valid & PNG_INFO_PLTE)
-+ bit_depth = 8;
-+
-+ if (png_get_valid(pp, info, PNG_INFO_PLTE))
- {
-- if (info->num_palette <= 2)
-- info->bit_depth = 1;
-- else if (info->num_palette <= 4)
-- info->bit_depth = 2;
-- else if (info->num_palette <= 16)
-- info->bit_depth = 4;
-+ png_colorp palette;
-+ int num_palette;
-+ png_get_PLTE(pp, info, &palette, &num_palette);
-+
-+ if (num_palette <= 2)
-+ bit_depth = 1;
-+ else if (num_palette <= 4)
-+ bit_depth = 2;
-+ else if (num_palette <= 16)
-+ bit_depth = 4;
- /* otherwise the default is fine */
- }
-
-+ png_set_IHDR(pp, info,
-+ drawable->width, drawable->height, bit_depth, color_type,
-+ pngvals.interlaced ? PNG_INTERLACE_ADAM7 : PNG_INTERLACE_NONE,
-+ PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE);
-+
- /* All this stuff is optional extras, if the user is aiming for smallest
- possible file size she can turn them all off */
-
-@@ -1477,7 +1506,8 @@
- * Convert unpacked pixels to packed if necessary
- */
-
-- if (info->color_type == PNG_COLOR_TYPE_PALETTE && info->bit_depth < 8)
-+ if (png_get_color_type(pp, info) ==
-+ PNG_COLOR_TYPE_PALETTE && png_get_bit_depth(pp, info) < 8)
- png_set_packing (pp);
-
- /*
-@@ -1529,7 +1559,7 @@
-
- /* If we're dealing with a paletted image with
- * transparency set, write out the remapped palette */
-- if (info->valid & PNG_INFO_tRNS)
-+ if (png_get_valid(pp, info, PNG_INFO_tRNS))
- {
- guchar inverse_remap[256];
-
-@@ -1549,7 +1579,7 @@
- }
- /* Otherwise if we have a paletted image and transparency
- * couldn't be set, we ignore the alpha channel */
-- else if (info->valid & PNG_INFO_PLTE && bpp == 2)
-+ else if (png_get_valid(pp, info, PNG_INFO_PLTE) && bpp == 2)
- {
- for (i = 0; i < num; ++i)
- {
-@@ -1564,7 +1594,7 @@
- png_write_rows (pp, pixels, num);
-
- gimp_progress_update (((double) pass + (double) end /
-- (double) info->height) /
-+ (double) png_get_image_height(pp, info)) /
- (double) num_passes);
- }
- }
diff --git a/media-gfx/gimp/gimp-2.8.8.ebuild b/media-gfx/gimp/gimp-2.8.10-r1.ebuild
index 420614edd570..33c8d6bec145 100644
--- a/media-gfx/gimp/gimp-2.8.8.ebuild
+++ b/media-gfx/gimp/gimp-2.8.10-r1.ebuild
@@ -1,15 +1,16 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-2.8.8.ebuild,v 1.1 2013/11/04 16:27:37 sping Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-2.8.10-r1.ebuild,v 1.1 2013/12/10 09:12:09 polynomial-c Exp $
-EAPI="3"
-PYTHON_DEPEND="python? 2:2.5"
+EAPI=5
+PYTHON_COMPAT=( python2_{6,7} )
-inherit versionator autotools eutils gnome2 fdo-mime multilib python
+inherit versionator autotools eutils gnome2 fdo-mime multilib python-single-r1
DESCRIPTION="GNU Image Manipulation Program"
HOMEPAGE="http://www.gimp.org/"
-SRC_URI="mirror://gimp/v$(get_version_component_range 1-2)/${P}.tar.bz2"
+SRC_URI="mirror://gimp/v$(get_version_component_range 1-2)/${P}.tar.bz2
+ https://git.gnome.org/browse/gimp/patch/?id=6c73f28b6d87a2afd11974552a075bffec52347f -> ${P}-freetype251.patch"
LICENSE="GPL-3 LGPL-3"
SLOT="2"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
@@ -45,11 +46,14 @@ RDEPEND=">=dev-libs/glib-2.30.2:2
jpeg? ( virtual/jpeg:0 )
jpeg2k? ( media-libs/jasper )
exif? ( >=media-libs/libexif-0.6.15 )
- lcms? ( >=media-libs/lcms-1.16:0 )
+ lcms? ( >=media-libs/lcms-2.2:2 )
mng? ( media-libs/libmng )
pdf? ( >=app-text/poppler-0.12.4[cairo] )
png? ( >=media-libs/libpng-1.2.37:0 )
- python? ( >=dev-python/pygtk-2.10.4:2 )
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-python/pygtk-2.10.4:2[${PYTHON_USEDEP}]
+ )
tiff? ( >=media-libs/tiff-3.5.7:0 )
svg? ( >=gnome-base/librsvg-2.36.0:2 )
wmf? ( >=media-libs/libwmf-0.2.8 )
@@ -72,6 +76,8 @@ DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
S="${WORKDIR}"/${P}
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
pkg_setup() {
G2CONF="--enable-default-binary \
--disable-silent-rules \
@@ -87,7 +93,7 @@ pkg_setup() {
$(use_with jpeg libjpeg) \
$(use_with jpeg2k libjasper) \
$(use_with exif libexif) \
- $(use_with lcms lcms lcms1) \
+ $(use_with lcms lcms lcms2) \
$(use_with postscript gs) \
$(use_enable mmx) \
$(use_with mng libmng) \
@@ -105,16 +111,15 @@ pkg_setup() {
--without-xvfb-run"
if use python; then
- python_set_active_version 2
- python_pkg_setup
+ python-single-r1_pkg_setup
fi
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-2.7.4-no-deprecation.patch # bug 395695, comment 9 and 16
+ epatch "${DISTDIR}"/${P}-freetype251.patch # bug #493466
eautoreconf # If you remove this: remove dev-util/gtk-doc-am from DEPEND, too
- echo '#!/bin/sh' > py-compile
gnome2_src_prepare
}
@@ -133,15 +138,14 @@ src_install() {
gnome2_src_install
if use python; then
- python_convert_shebangs -r $(python_get_version) "${ED}"
- python_need_rebuild
+ python_optimize
fi
# Workaround for bug #321111 to give GIMP the least
# precedence on PDF documents by default
mv "${ED}"/usr/share/applications/{,zzz-}gimp.desktop || die
- find "${ED}" -name '*.la' -delete || die
+ prune_libtool_files --all
# Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
local gimp_app_version=$(get_version_component_range 1-2)
@@ -152,14 +156,8 @@ src_install() {
pkg_postinst() {
gnome2_pkg_postinst
-
- use python && python_mod_optimize /usr/$(get_libdir)/gimp/2.0/python \
- /usr/$(get_libdir)/gimp/2.0/plug-ins
}
pkg_postrm() {
gnome2_pkg_postrm
-
- use python && python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
- /usr/$(get_libdir)/gimp/2.0/plug-ins
}
diff --git a/media-gfx/gimp/gimp-2.8.2-r1.ebuild b/media-gfx/gimp/gimp-2.8.2-r1.ebuild
deleted file mode 100644
index e63f8a667643..000000000000
--- a/media-gfx/gimp/gimp-2.8.2-r1.ebuild
+++ /dev/null
@@ -1,168 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-2.8.2-r1.ebuild,v 1.2 2012/12/11 05:43:44 patrick Exp $
-
-EAPI="3"
-PYTHON_DEPEND="python? 2:2.5"
-
-inherit versionator autotools eutils gnome2 fdo-mime multilib python
-
-DESCRIPTION="GNU Image Manipulation Program"
-HOMEPAGE="http://www.gimp.org/"
-SRC_URI="mirror://gimp/v$(get_version_component_range 1-2)/${P}.tar.bz2"
-LICENSE="GPL-3 LGPL-3"
-SLOT="2"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
-
-LANGS="am ar ast az be bg br ca ca@valencia cs csb da de dz el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk km kn ko lt lv mk ml ms my nb nds ne nl nn oc pa pl pt pt_BR ro ru rw si sk sl sr sr@latin sv ta te th tr tt uk vi xh yi zh_CN zh_HK zh_TW"
-IUSE="alsa aalib altivec bzip2 curl dbus debug doc exif gnome postscript jpeg jpeg2k lcms mmx mng pdf png python smp sse svg tiff udev webkit wmf xpm"
-
-for lang in ${LANGS}; do
- IUSE+=" linguas_${lang}"
-done
-
-RDEPEND=">=dev-libs/glib-2.30.2:2
- >=dev-libs/atk-2.2.0
- >=x11-libs/gtk+-2.24.10:2
- >=x11-libs/gdk-pixbuf-2.24.1:2
- >=x11-libs/cairo-1.10.2
- >=x11-libs/pango-1.29.4
- xpm? ( x11-libs/libXpm )
- >=media-libs/freetype-2.1.7
- >=media-libs/fontconfig-2.2.0
- sys-libs/zlib
- dev-libs/libxml2
- dev-libs/libxslt
- x11-themes/hicolor-icon-theme
- >=media-libs/babl-0.1.10
- >=media-libs/gegl-0.2.0
- aalib? ( media-libs/aalib )
- alsa? ( media-libs/alsa-lib )
- curl? ( net-misc/curl )
- dbus? ( dev-libs/dbus-glib )
- gnome? ( gnome-base/gvfs )
- webkit? ( >=net-libs/webkit-gtk-1.6.1:2 )
- jpeg? ( virtual/jpeg:0 )
- jpeg2k? ( media-libs/jasper )
- exif? ( >=media-libs/libexif-0.6.15 )
- lcms? ( >=media-libs/lcms-1.16:0 )
- mng? ( media-libs/libmng )
- pdf? ( >=app-text/poppler-0.12.4[cairo] )
- png? ( >=media-libs/libpng-1.2.37:0 )
- python? ( >=dev-python/pygtk-2.10.4:2 )
- tiff? ( >=media-libs/tiff-3.5.7:0 )
- svg? ( >=gnome-base/librsvg-2.36.0:2 )
- wmf? ( >=media-libs/libwmf-0.2.8 )
- x11-libs/libXcursor
- sys-libs/zlib
- bzip2? ( app-arch/bzip2 )
- postscript? ( app-text/ghostscript-gpl )
- udev? ( virtual/udev[gudev] )"
-DEPEND="${RDEPEND}
- sys-apps/findutils
- virtual/pkgconfig
- >=dev-util/intltool-0.40.1
- >=sys-devel/gettext-0.17
- doc? ( >=dev-util/gtk-doc-1 )
- >=sys-devel/libtool-2.2
- >=sys-devel/automake-1.11
- dev-util/gtk-doc-am" # due to our call to eautoreconf below (bug #386453)
-
-DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
-
-S="${WORKDIR}"/${P}
-
-pkg_setup() {
- G2CONF="--enable-default-binary \
- --with-x \
- --disable-silent-rules \
- $(use_with aalib aa) \
- $(use_with alsa) \
- $(use_enable altivec) \
- $(use_with bzip2) \
- $(use_with curl libcurl) \
- $(use_with dbus) \
- $(use_with gnome gvfs) \
- $(use_with webkit) \
- $(use_with jpeg libjpeg) \
- $(use_with jpeg2k libjasper) \
- $(use_with exif libexif) \
- $(use_with lcms) \
- $(use_with postscript gs) \
- $(use_enable mmx) \
- $(use_with mng libmng) \
- $(use_with pdf poppler) \
- $(use_with png libpng) \
- $(use_enable python) \
- $(use_enable smp mp) \
- $(use_enable sse) \
- $(use_with svg librsvg) \
- $(use_with tiff libtiff) \
- $(use_with udev gudev) \
- $(use_with wmf) \
- --with-xmc \
- $(use_with xpm libxpm) \
- --without-xvfb-run"
-
- if use python; then
- python_set_active_version 2
- python_pkg_setup
- fi
-}
-
-src_prepare() {
- # https://bugs.gentoo.org/show_bug.cgi?id=444280
- epatch "${FILESDIR}"/${P}-xwd-file-security.patch
-
- epatch "${FILESDIR}"/${PN}-2.7.4-no-deprecation.patch # bug 395695, comment 9 and 16
- eautoreconf # If you remove this: remove dev-util/gtk-doc-am from DEPEND, too
-
- echo '#!/bin/sh' > py-compile
- gnome2_src_prepare
-}
-
-_clean_up_locales() {
- einfo "Cleaning up locales..."
- for lang in ${LANGS}; do
- use "linguas_${lang}" && {
- einfo "- keeping ${lang}"
- continue
- }
- rm -Rf "${D}"/usr/share/locale/"${lang}" || die
- done
-}
-
-src_install() {
- gnome2_src_install
-
- if use python; then
- python_convert_shebangs -r $(python_get_version) "${ED}"
- python_need_rebuild
- fi
-
- # Workaround for bug #321111 to give GIMP the least
- # precedence on PDF documents by default
- mv "${D}"/usr/share/applications/{,zzz-}gimp.desktop || die
-
- find "${D}" -name '*.la' -delete || die
-
- # Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
- local gimp_app_version=$(get_version_component_range 1-2)
- mv "${D}"/usr/share/man/man1/gimp-console{-${gimp_app_version},}.1 || die
-
- _clean_up_locales
-}
-
-pkg_postinst() {
- gnome2_pkg_postinst
-
- use python && python_mod_optimize /usr/$(get_libdir)/gimp/2.0/python \
- /usr/$(get_libdir)/gimp/2.0/plug-ins
-}
-
-pkg_postrm() {
- gnome2_pkg_postrm
-
- use python && python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
- /usr/$(get_libdir)/gimp/2.0/plug-ins
-}
diff --git a/media-gfx/gimp/gimp-2.8.2.ebuild b/media-gfx/gimp/gimp-2.8.2.ebuild
deleted file mode 100644
index 8e89749d39ec..000000000000
--- a/media-gfx/gimp/gimp-2.8.2.ebuild
+++ /dev/null
@@ -1,165 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-2.8.2.ebuild,v 1.4 2012/12/11 05:43:44 patrick Exp $
-
-EAPI="3"
-PYTHON_DEPEND="python? 2:2.5"
-
-inherit versionator autotools eutils gnome2 fdo-mime multilib python
-
-DESCRIPTION="GNU Image Manipulation Program"
-HOMEPAGE="http://www.gimp.org/"
-SRC_URI="mirror://gimp/v$(get_version_component_range 1-2)/${P}.tar.bz2"
-LICENSE="GPL-3 LGPL-3"
-SLOT="2"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
-
-LANGS="am ar ast az be bg br ca ca@valencia cs csb da de dz el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk km kn ko lt lv mk ml ms my nb nds ne nl nn oc pa pl pt pt_BR ro ru rw si sk sl sr sr@latin sv ta te th tr tt uk vi xh yi zh_CN zh_HK zh_TW"
-IUSE="alsa aalib altivec bzip2 curl dbus debug doc exif gnome postscript jpeg jpeg2k lcms mmx mng pdf png python smp sse svg tiff udev webkit wmf xpm"
-
-for lang in ${LANGS}; do
- IUSE+=" linguas_${lang}"
-done
-
-RDEPEND=">=dev-libs/glib-2.30.2:2
- >=dev-libs/atk-2.2.0
- >=x11-libs/gtk+-2.24.10:2
- >=x11-libs/gdk-pixbuf-2.24.1:2
- >=x11-libs/cairo-1.10.2
- >=x11-libs/pango-1.29.4
- xpm? ( x11-libs/libXpm )
- >=media-libs/freetype-2.1.7
- >=media-libs/fontconfig-2.2.0
- sys-libs/zlib
- dev-libs/libxml2
- dev-libs/libxslt
- x11-themes/hicolor-icon-theme
- >=media-libs/babl-0.1.10
- >=media-libs/gegl-0.2.0
- aalib? ( media-libs/aalib )
- alsa? ( media-libs/alsa-lib )
- curl? ( net-misc/curl )
- dbus? ( dev-libs/dbus-glib )
- gnome? ( gnome-base/gvfs )
- webkit? ( >=net-libs/webkit-gtk-1.6.1:2 )
- jpeg? ( virtual/jpeg:0 )
- jpeg2k? ( media-libs/jasper )
- exif? ( >=media-libs/libexif-0.6.15 )
- lcms? ( >=media-libs/lcms-1.16:0 )
- mng? ( media-libs/libmng )
- pdf? ( >=app-text/poppler-0.12.4[cairo] )
- png? ( >=media-libs/libpng-1.2.37:0 )
- python? ( >=dev-python/pygtk-2.10.4:2 )
- tiff? ( >=media-libs/tiff-3.5.7:0 )
- svg? ( >=gnome-base/librsvg-2.36.0:2 )
- wmf? ( >=media-libs/libwmf-0.2.8 )
- x11-libs/libXcursor
- sys-libs/zlib
- bzip2? ( app-arch/bzip2 )
- postscript? ( app-text/ghostscript-gpl )
- udev? ( virtual/udev[gudev] )"
-DEPEND="${RDEPEND}
- sys-apps/findutils
- virtual/pkgconfig
- >=dev-util/intltool-0.40.1
- >=sys-devel/gettext-0.17
- doc? ( >=dev-util/gtk-doc-1 )
- >=sys-devel/libtool-2.2
- >=sys-devel/automake-1.11
- dev-util/gtk-doc-am" # due to our call to eautoreconf below (bug #386453)
-
-DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
-
-S="${WORKDIR}"/${P}
-
-pkg_setup() {
- G2CONF="--enable-default-binary \
- --with-x \
- --disable-silent-rules \
- $(use_with aalib aa) \
- $(use_with alsa) \
- $(use_enable altivec) \
- $(use_with bzip2) \
- $(use_with curl libcurl) \
- $(use_with dbus) \
- $(use_with gnome gvfs) \
- $(use_with webkit) \
- $(use_with jpeg libjpeg) \
- $(use_with jpeg2k libjasper) \
- $(use_with exif libexif) \
- $(use_with lcms) \
- $(use_with postscript gs) \
- $(use_enable mmx) \
- $(use_with mng libmng) \
- $(use_with pdf poppler) \
- $(use_with png libpng) \
- $(use_enable python) \
- $(use_enable smp mp) \
- $(use_enable sse) \
- $(use_with svg librsvg) \
- $(use_with tiff libtiff) \
- $(use_with udev gudev) \
- $(use_with wmf) \
- --with-xmc \
- $(use_with xpm libxpm) \
- --without-xvfb-run"
-
- if use python; then
- python_set_active_version 2
- python_pkg_setup
- fi
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-2.7.4-no-deprecation.patch # bug 395695, comment 9 and 16
- eautoreconf # If you remove this: remove dev-util/gtk-doc-am from DEPEND, too
-
- echo '#!/bin/sh' > py-compile
- gnome2_src_prepare
-}
-
-_clean_up_locales() {
- einfo "Cleaning up locales..."
- for lang in ${LANGS}; do
- use "linguas_${lang}" && {
- einfo "- keeping ${lang}"
- continue
- }
- rm -Rf "${D}"/usr/share/locale/"${lang}" || die
- done
-}
-
-src_install() {
- gnome2_src_install
-
- if use python; then
- python_convert_shebangs -r $(python_get_version) "${ED}"
- python_need_rebuild
- fi
-
- # Workaround for bug #321111 to give GIMP the least
- # precedence on PDF documents by default
- mv "${D}"/usr/share/applications/{,zzz-}gimp.desktop || die
-
- find "${D}" -name '*.la' -delete || die
-
- # Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
- local gimp_app_version=$(get_version_component_range 1-2)
- mv "${D}"/usr/share/man/man1/gimp-console{-${gimp_app_version},}.1 || die
-
- _clean_up_locales
-}
-
-pkg_postinst() {
- gnome2_pkg_postinst
-
- use python && python_mod_optimize /usr/$(get_libdir)/gimp/2.0/python \
- /usr/$(get_libdir)/gimp/2.0/plug-ins
-}
-
-pkg_postrm() {
- gnome2_pkg_postrm
-
- use python && python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
- /usr/$(get_libdir)/gimp/2.0/plug-ins
-}
diff --git a/media-gfx/gimp/gimp-2.8.4.ebuild b/media-gfx/gimp/gimp-2.8.4.ebuild
deleted file mode 100644
index 97ca228464e1..000000000000
--- a/media-gfx/gimp/gimp-2.8.4.ebuild
+++ /dev/null
@@ -1,166 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-2.8.4.ebuild,v 1.3 2013/06/05 21:46:23 sping Exp $
-
-EAPI="3"
-PYTHON_DEPEND="python? 2:2.5"
-
-inherit versionator autotools eutils gnome2 fdo-mime multilib python
-
-DESCRIPTION="GNU Image Manipulation Program"
-HOMEPAGE="http://www.gimp.org/"
-SRC_URI="mirror://gimp/v$(get_version_component_range 1-2)/${P}.tar.bz2"
-LICENSE="GPL-3 LGPL-3"
-SLOT="2"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~arm-linux ~x86-linux"
-
-LANGS="am ar ast az be bg br ca ca@valencia cs csb da de dz el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk km kn ko lt lv mk ml ms my nb nds ne nl nn oc pa pl pt pt_BR ro ru rw si sk sl sr sr@latin sv ta te th tr tt uk vi xh yi zh_CN zh_HK zh_TW"
-IUSE="alsa aalib altivec bzip2 curl dbus debug doc exif gnome postscript jpeg jpeg2k lcms mmx mng pdf png python smp sse svg tiff udev webkit wmf xpm"
-
-for lang in ${LANGS}; do
- IUSE+=" linguas_${lang}"
-done
-
-RDEPEND=">=dev-libs/glib-2.30.2:2
- >=dev-libs/atk-2.2.0
- >=x11-libs/gtk+-2.24.10:2
- >=x11-libs/gdk-pixbuf-2.24.1:2
- >=x11-libs/cairo-1.10.2
- >=x11-libs/pango-1.29.4
- xpm? ( x11-libs/libXpm )
- >=media-libs/freetype-2.1.7
- >=media-libs/fontconfig-2.2.0
- sys-libs/zlib
- dev-libs/libxml2
- dev-libs/libxslt
- x11-themes/hicolor-icon-theme
- >=media-libs/babl-0.1.10
- >=media-libs/gegl-0.2.0
- aalib? ( media-libs/aalib )
- alsa? ( media-libs/alsa-lib )
- curl? ( net-misc/curl )
- dbus? ( dev-libs/dbus-glib )
- gnome? ( gnome-base/gvfs )
- webkit? ( >=net-libs/webkit-gtk-1.6.1:2 )
- jpeg? ( virtual/jpeg:0 )
- jpeg2k? ( media-libs/jasper )
- exif? ( >=media-libs/libexif-0.6.15 )
- lcms? ( >=media-libs/lcms-1.16:0 )
- mng? ( media-libs/libmng )
- pdf? ( >=app-text/poppler-0.12.4[cairo] )
- png? ( >=media-libs/libpng-1.2.37:0 )
- python? ( >=dev-python/pygtk-2.10.4:2 )
- tiff? ( >=media-libs/tiff-3.5.7:0 )
- svg? ( >=gnome-base/librsvg-2.36.0:2 )
- wmf? ( >=media-libs/libwmf-0.2.8 )
- x11-libs/libXcursor
- sys-libs/zlib
- bzip2? ( app-arch/bzip2 )
- postscript? ( app-text/ghostscript-gpl )
- udev? ( virtual/udev[gudev] )"
-DEPEND="${RDEPEND}
- sys-apps/findutils
- virtual/pkgconfig
- >=dev-util/intltool-0.40.1
- >=sys-devel/gettext-0.17
- doc? ( >=dev-util/gtk-doc-1 )
- >=sys-devel/libtool-2.2
- >=sys-devel/automake-1.11
- dev-util/gtk-doc-am" # due to our call to eautoreconf below (bug #386453)
-
-DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
-
-S="${WORKDIR}"/${P}
-
-pkg_setup() {
- G2CONF="--enable-default-binary \
- --with-x \
- --disable-silent-rules \
- $(use_with aalib aa) \
- $(use_with alsa) \
- $(use_enable altivec) \
- $(use_with bzip2) \
- $(use_with curl libcurl) \
- $(use_with dbus) \
- $(use_with gnome gvfs) \
- $(use_with webkit) \
- $(use_with jpeg libjpeg) \
- $(use_with jpeg2k libjasper) \
- $(use_with exif libexif) \
- $(use_with lcms) \
- $(use_with postscript gs) \
- $(use_enable mmx) \
- $(use_with mng libmng) \
- $(use_with pdf poppler) \
- $(use_with png libpng) \
- $(use_enable python) \
- $(use_enable smp mp) \
- $(use_enable sse) \
- $(use_with svg librsvg) \
- $(use_with tiff libtiff) \
- $(use_with udev gudev) \
- $(use_with wmf) \
- --with-xmc \
- $(use_with xpm libxpm) \
- --without-xvfb-run"
-
- if use python; then
- python_set_active_version 2
- python_pkg_setup
- fi
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-2.7.4-no-deprecation.patch # bug 395695, comment 9 and 16
- epatch "${FILESDIR}"/${PN}-2.8.4-valid-desktop-file.patch # bug 433028
- eautoreconf # If you remove this: remove dev-util/gtk-doc-am from DEPEND, too
-
- echo '#!/bin/sh' > py-compile
- gnome2_src_prepare
-}
-
-_clean_up_locales() {
- einfo "Cleaning up locales..."
- for lang in ${LANGS}; do
- use "linguas_${lang}" && {
- einfo "- keeping ${lang}"
- continue
- }
- rm -Rf "${ED}"/usr/share/locale/"${lang}" || die
- done
-}
-
-src_install() {
- gnome2_src_install
-
- if use python; then
- python_convert_shebangs -r $(python_get_version) "${ED}"
- python_need_rebuild
- fi
-
- # Workaround for bug #321111 to give GIMP the least
- # precedence on PDF documents by default
- mv "${ED}"/usr/share/applications/{,zzz-}gimp.desktop || die
-
- find "${ED}" -name '*.la' -delete || die
-
- # Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
- local gimp_app_version=$(get_version_component_range 1-2)
- mv "${ED}"/usr/share/man/man1/gimp-console{-${gimp_app_version},}.1 || die
-
- _clean_up_locales
-}
-
-pkg_postinst() {
- gnome2_pkg_postinst
-
- use python && python_mod_optimize /usr/$(get_libdir)/gimp/2.0/python \
- /usr/$(get_libdir)/gimp/2.0/plug-ins
-}
-
-pkg_postrm() {
- gnome2_pkg_postrm
-
- use python && python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
- /usr/$(get_libdir)/gimp/2.0/plug-ins
-}