summaryrefslogtreecommitdiff
path: root/media-gfx/gimp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
commit7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch)
tree4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /media-gfx/gimp
parentb284a3168fa91a038925d2ecf5e4791011ea5e7d (diff)
gentoo resync : 15.12.2019
Diffstat (limited to 'media-gfx/gimp')
-rw-r--r--media-gfx/gimp/Manifest11
-rw-r--r--media-gfx/gimp/files/gimp-2.10_fix_test-appdata.patch14
-rw-r--r--media-gfx/gimp/gimp-2.10.10-r1.ebuild156
-rw-r--r--media-gfx/gimp/gimp-2.10.12.ebuild156
-rw-r--r--media-gfx/gimp/gimp-2.10.14.ebuild224
-rw-r--r--media-gfx/gimp/gimp-9999.ebuild185
-rw-r--r--media-gfx/gimp/metadata.xml9
7 files changed, 514 insertions, 241 deletions
diff --git a/media-gfx/gimp/Manifest b/media-gfx/gimp/Manifest
index c44e57747804..33ad5a41a80c 100644
--- a/media-gfx/gimp/Manifest
+++ b/media-gfx/gimp/Manifest
@@ -1,3 +1,4 @@
+AUX gimp-2.10_fix_test-appdata.patch 902 BLAKE2B 2b1a131d874d65422d8bdd44732b9843d89a570a1ea3c058cdb2a424a7791c686aa0e2ae2a0b472f333f2465f6e1a26750a532e9003933c5dffa1af32343c1dc SHA512 2983e8572f5e8113c9e2f564d31c1a5fe7e11ef273c50d2be739089124c6ec1a457da28222020bbd6015b2cbbcbf403b88d8660b9b35241800deb4fb3ad79067
AUX gimp-2.7.4-no-deprecation.patch 1061 BLAKE2B c34baed7be101547994f23a818d81b855c5b0058d5acce7bb185801083a07874a1a2c6fcc41a79502077cb03c3532d9cfba88212592449b747957b0c08eff205 SHA512 3454f3b1a7579b1da4c36b765ae2a54adab13f0a4ecf02c4c0c3c55a12ff7af57d6d0467f663d2ef3de6cda116095f5f662a29cb3d729e0533edd585731a1dc9
AUX gimp-2.8.10-clang.patch 7670 BLAKE2B 923573fe329c9b8268ec220b2a0441ae765085c088a1524c5e323cc9615cfec4b8a57b2195e441ea9f43dd609f51f2de60512833652e822b466188787ffe41ec SHA512 772ee0837a214f3ef70e823662fe12e57ee8fd5f800c6508e757b86169b86a5cbd86695870993a66d3726c019d24f79616831bed8baabce3e1d247ecbfe204fc
AUX gimp-2.8.14-blend-center.patch 999 BLAKE2B 5324cf539a3ef54356f943d3a4cff7ed6abd0aecc5fa7af54193c5cdea0b4c3ca2073696dd1253ad49a451f6a87a50476a48b8bb6c6820e1b90338f3dd7efb0b SHA512 1d3cbe9d1b02e2d10ba982265f7d89f593aa6973f76d529dd909f36efe1c9d968360ec208943f66c00f6589f5c679368099e0db579ddb3655c15cb6ce8bdf930
@@ -11,13 +12,15 @@ AUX gimp-2.8.22-cve-2017-17789.patch 1245 BLAKE2B 14d519b8b024e51b452806b4acb6f0
AUX gimp-2.9.8-cve-2017-17784.patch 1087 BLAKE2B 2398e735ccd7b0a5cc393f297b60d4a51038aeb146779268f78fb2f0a24ef912468510de2a0f640c5f905fe9959581686f55bccc022633b6f2a3a93ab3f12848 SHA512 5bc928860b2f2b53cc72c9c3caf6a532cf7e61b02e0716ee99a5166a07b01bdd46edfeae7bf6e333ce14ca11b5fcb963cbd42005e02f914d909431bf201dc6d5
DIST gimp-2.10.10.tar.bz2 32408724 BLAKE2B 7d4f06d255d7b853f08c2a8bd9695b5cbc27a417f2f78aab56c970675430534b7c6f870168c5555369b873971b4ca3889565085cfc0cb9b2e1bb60c3bfe938bd SHA512 87caab9643a018e741e5e51c61220b7b282a66ed5bb723750cdf4139950f98c9ab246f4d6450420531d0e878c4561150efc4063cda896f08b25669bac4d1d172
DIST gimp-2.10.12.tar.bz2 32614932 BLAKE2B 93e0c6c3ac58335920a9ebcfa81c970f0c657757860ab255e8a584ec2fa0c4d97c639797419eef58d5ef076797f2437eade20c1dea02c18bcbd8bd0fb30a8069 SHA512 dd4af3f0fa6fca815d254b7f42aeff15412c38294f1f5bd491563e2b597fcb868e6adff9001b196a68e01cf49bde61cbb153b662b8da1aa1b4b1f7285879659f
+DIST gimp-2.10.14.tar.bz2 32786424 BLAKE2B f1254ab0742cf0190f4e50f001d8120fe655b73d838c3ed56abb0a221c0eaec02e5c838f952d492069d55d89e4c3493c59b38aa2af87df8181f8979213e7659b SHA512 acbd095361d9211a5a23474693dd170ed76bf4ea5b1df69791f1d975ef5cdaba1e5fb9f5be9f592a360db5826d71eaaf464005075397cb6630070fe32833c030
DIST gimp-2.10.8.tar.bz2 31954568 BLAKE2B 11f88b1068fa1fe216a54bed27b26b94c3fdb2cbc67e1e444df74a080d00b678f8c81897a6c5fb5956fa107842b0a853ada44d15d51c2e58db7435ddd0f8e999 SHA512 b458dd710b786152f95a8e48a0727b71cac549fccb31ac9e1e6ac3c617652079773ce7076401f8ade750ed38bdc78dfdec3317423f4c4e9c931f78002bd7454e
DIST gimp-2.8.22.tar.bz2 20873278 BLAKE2B 673246fd2354f1cecc74bf389df698f594b7553cc88a1d2679ae410ad39923abae843dfe9623ec195b4f967b5eccd199769a6300bf028ae04b8df4932df11505 SHA512 84a78d428282538b606b3cd1ff571e52c3d828fceade171b2012bc1cdcb85919fc7734e7e6c45ed3a8683657fa580412b32c1b511b8a512172a8c1df930493e6
DIST gimp-2.9.8.tar.bz2 26161474 BLAKE2B f00a58d33848a818a2cb3b74920b33156330a26423a2b567cd8372258f87b44ae1ad812f2b3ee9a093b919d022e8b71ef518d40b76ab94c616f9916b3d1effec SHA512 897092aa823961e6ed5dac47eaadd3a25c419364d6ca791987d99e495d0d4eba1d75e08c809dfa305e8feec9da606193b608e3470e0ef18fcfaa98ee8aedfe02
-EBUILD gimp-2.10.10-r1.ebuild 6020 BLAKE2B 1b0c8bcd5a31c22686b7afb56ec23f50f25829073f357f3a898d2b93077967a27ddb55fc03f8efdb5beeef1f1e7c42c8bc48fc8481c18d52c8274a5c7680a8c7 SHA512 8b3cf0c9780ba21f4e2f95526be76784c97a442beb2c8e3636410836ba93f6760a59f16dca6c6eaf7cc51fa86727e113a77ae76a4a1d95e9d45df6d22b99be46
-EBUILD gimp-2.10.12.ebuild 6022 BLAKE2B 9ae48bd4b1a5bbdb5240d3b42fe7d1407a10e96991b92f4300f7ea57da359809250783a531f02327db37e4b5f4db7a1cad2a002e6191142ab1da0d1a7f9fbcc7 SHA512 912dd6614fd5f239078856b9bad3dbe191294fbdd8fc87dd98755b3772871b05663180b846902224081cecc03a50444f304bd4cf6510d44d179263aeb5389d56
+EBUILD gimp-2.10.10-r1.ebuild 5721 BLAKE2B d1f1001c4e61a2662f01e78dd51d3cfd257ac7998839ab1d373fd4865cd5c8ea0f2b01a607ed265279712886932c03cf0bb453c29e8cef7b8b31d146617c0b1d SHA512 4d8d2a2f1b417534fa1783a8a137a8b53c1acb64d0e72c1a0659199d8d6050661784d4c611d908ed83d00fb0cb269e251d5b69223707e4ac5d61842f941a06ab
+EBUILD gimp-2.10.12.ebuild 5721 BLAKE2B 1e46bca7e17c7ad3281ceed4ed6e9696d37b68c115b3dd22af7b8b06b34562b48bdaa18718b32f39dcf1f36348cc734c72c0e32af1495fb7c5eae6957951d05f SHA512 9c8886d90acc7ae3bf4f3e70bf27d30485fdf38a90e611e56e925bd1850784c802250bc9b5575ba0a182ead869656e45086672202ebaa6c069b445d3947ecb31
+EBUILD gimp-2.10.14.ebuild 5719 BLAKE2B 16acdf866f51f88dd9cfffb03aea7e6a4af4b91aee2f98333a17ffd0eff30d99a25e8a0c2b94b15721ec408015f6b3c6f7b11b714ed31a2356ad398e13e7a3c2 SHA512 2e73e99e77cb7a2dcd5a403294a84f142e93f5f500191aa843cbfafe5de4a98a8d78170ba4281768e21f70d70ded4b955460c55c453b739947516cd13a2d109d
EBUILD gimp-2.10.8-r1.ebuild 6104 BLAKE2B bec6521e91558be2f2282baf131598c519f92c93267f687dedcac78fe70d27851c09307eb438009d35f9307c2ae78a77411cb6238cdde84b0ace9165399308cd SHA512 20f59e5aa3a8d5424b65ed9f947123feee6723dd16f946991022b17ac964be37c6aa0a71022928293fc51c542f3a3ad24ad3432fc6680d7214393d87d5159db2
EBUILD gimp-2.8.22-r1.ebuild 5124 BLAKE2B b2fb64d49da0796f6eb2245eceade1ea5b5e2c5da2af918dba9c87a0fa4cb7f4c6dbe7688a6d7fe08b085c569413c06ffd4d22bf1cfa3a9f8c00277f634a11ac SHA512 e8cec3990a151e13c606498f5ebc4e685a28d5fb10919ec6bbb71b1f60d814b13722530f8737aff9e18065093800b8ebbe56d5f3844555accc475d2b74acf18d
EBUILD gimp-2.9.8-r1.ebuild 5661 BLAKE2B 0617f1c469d09aa5df2884bf54db4338a2ff851a301a3ee7b2daf229c1308aa4818b9693b3f757f23052a857eb6a584d37fbe98e4b2390687dbfb83740c2bb95 SHA512 a10f751e97fd8a1b8e3fb1cc8d4fda72f040aa6631ed22f72c10c29b3b57954fc062518572715643fb7da61bfd501bf0dc6226db49130e3efdb8cb4afe610eed
-EBUILD gimp-9999.ebuild 6009 BLAKE2B f254cda756f2e1c0de1013012c45748ae32739b18a23d4245833fc6994e01afd2cb77ef115200b8c8f6699cbcdfd1e66c89f6d767547dffa8ae0ff34d510629c SHA512 adb32cf41ed3af0aefe82cc3ff53fa40cdca552dafbf38fec508de1452bfb2eda24cfc5f96f8163e9a505b1a04527a12d12b113761a592722b86022c8dac246a
-MISC metadata.xml 425 BLAKE2B 3b3206df95f94e2ee61a5139b3c146c323348653803d8e7150aa2a56f01e46afcf91cee68286a2d86012fb990991012c6b7fa4150100fe45a21130d0ce3cab6d SHA512 0aa8538d2d93e5241dae2c14ffe416a448c4e1de7275dd2c81408bfd1e4dcd773474ade257f333ea2bd34555486c25768779132d37c1a44241318058c1f8d13d
+EBUILD gimp-9999.ebuild 6548 BLAKE2B b53fac4d6a5228fa21d39a2af406ec66dea3c0cde5dbb82a98bf7a6d189e7544700aeddfa4e27a2bd9a35c021e12650675e6d0f7c47dc747315d52f94b488da4 SHA512 e0405c9423550f387f0b3494ab3a1324a548406be8e633c03b45066902aeabb22869d89d6cb349c27031ff6ddf7ccd55d756c43f6e4a3204a0734b863d571e56
+MISC metadata.xml 628 BLAKE2B f1326f51db692d6e64d1bb7b44dfada65799d7ab94279771e6bd729189145a8a4bbe7a83c776bfc46acf682ad9f34c84598d25fb0a3606aabfa30383b35a9694 SHA512 cec60cde9763bdb9012fec754b95018f09da5cf7ff2f577206417651df5c18251dd5c58b1e32fb45e7c2121e06c0a5b7dc86d08b9511da4cf103bcf2fa1b6e52
diff --git a/media-gfx/gimp/files/gimp-2.10_fix_test-appdata.patch b/media-gfx/gimp/files/gimp-2.10_fix_test-appdata.patch
new file mode 100644
index 000000000000..77b7b2f3cbdf
--- /dev/null
+++ b/media-gfx/gimp/files/gimp-2.10_fix_test-appdata.patch
@@ -0,0 +1,14 @@
+diff -Nur a/desktop/test-appdata.sh.in b/desktop/test-appdata.sh.in
+--- a/desktop/test-appdata.sh.in 2019-04-07 14:38:14.000000000 +0300
++++ b/desktop/test-appdata.sh.in 2019-11-06 23:19:32.000000000 +0300
+@@ -2,8 +2,8 @@
+
+ # TODO: use validate-strict when the last errors for a strict validation
+ # are fixed.
+-appstream-util validate-relax ${GIMP_TESTING_ABS_TOP_BUILDDIR}/desktop/org.gimp.GIMP.appdata.xml && \
+-appstream-util validate-relax ${GIMP_TESTING_ABS_TOP_BUILDDIR}/desktop/gimp-data-extras.metainfo.xml && \
++appstream-util validate-relax --nonet ${GIMP_TESTING_ABS_TOP_BUILDDIR}/desktop/org.gimp.GIMP.appdata.xml && \
++appstream-util validate-relax --nonet ${GIMP_TESTING_ABS_TOP_BUILDDIR}/desktop/gimp-data-extras.metainfo.xml && \
+ if [ $(expr @GIMP_MICRO_VERSION@ % 2) = 0 ]; then
+ grep TODO ${GIMP_TESTING_ABS_TOP_BUILDDIR}/desktop/org.gimp.GIMP.appdata.xml
+ if [ $? = 0 ]; then
diff --git a/media-gfx/gimp/gimp-2.10.10-r1.ebuild b/media-gfx/gimp/gimp-2.10.10-r1.ebuild
index faa127d6d835..ff1bb96d42f1 100644
--- a/media-gfx/gimp/gimp-2.10.10-r1.ebuild
+++ b/media-gfx/gimp/gimp-2.10.10-r1.ebuild
@@ -5,83 +5,94 @@ EAPI=6
PYTHON_COMPAT=( python2_7 )
GNOME2_EAUTORECONF=yes
-inherit eapi7-ver virtualx autotools gnome2 multilib python-single-r1
+inherit autotools gnome2 python-single-r1 virtualx
DESCRIPTION="GNU Image Manipulation Program"
HOMEPAGE="https://www.gimp.org/"
-SRC_URI="mirror://gimp/v$(ver_cut 1-2)/${P}.tar.bz2"
+SRC_URI="mirror://gimp/v2.10/${P}.tar.bz2"
LICENSE="GPL-3 LGPL-3"
SLOT="2"
KEYWORDS="~amd64 ~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 aqua debug doc openexr gnome heif postscript jpeg2k cpu_flags_x86_mmx mng python cpu_flags_x86_sse udev unwind vector-icons webp wmf xpm"
+IUSE="aalib alsa altivec aqua debug doc gnome heif jpeg2k mng openexr postscript python udev unwind vector-icons webp wmf xpm cpu_flags_x86_mmx cpu_flags_x86_sse"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RESTRICT="!test? ( test )"
-RDEPEND=">=dev-libs/glib-2.56.0:2
+COMMON_DEPEND="
+ app-arch/bzip2
+ >=app-arch/xz-utils-5.0.0
+ >=app-text/poppler-0.50[cairo]
+ >=app-text/poppler-data-0.4.7
>=dev-libs/atk-2.2.0
- >=x11-libs/gtk+-2.24.32:2
- >=x11-libs/gdk-pixbuf-2.31:2
- >=x11-libs/cairo-1.12.2
- >=x11-libs/pango-1.29.4
- xpm? ( x11-libs/libXpm )
- >=media-libs/freetype-2.1.7
- >=media-libs/harfbuzz-0.9.19
- >=media-libs/gexiv2-0.10.6
- >=media-libs/libmypaint-1.3.0
- >=media-gfx/mypaint-brushes-1.3.0
- >=media-libs/fontconfig-2.12.4
- sys-libs/zlib
+ >=dev-libs/glib-2.54.2:2
dev-libs/libxml2
dev-libs/libxslt
- x11-themes/hicolor-icon-theme
+ >=gnome-base/librsvg-2.40.6:2
+ >=media-gfx/mypaint-brushes-1.3.0
>=media-libs/babl-0.1.62
+ >=media-libs/fontconfig-2.12.4
+ >=media-libs/freetype-2.1.7
>=media-libs/gegl-0.4.14:0.4[cairo]
- aalib? ( media-libs/aalib )
- alsa? ( media-libs/alsa-lib )
- aqua? ( x11-libs/gtk-mac-integration )
- gnome? ( gnome-base/gvfs )
+ >=media-libs/gexiv2-0.10.6
+ >=media-libs/harfbuzz-0.9.19
+ >=media-libs/lcms-2.8:2
+ >=media-libs/libmypaint-1.3.0:=
+ >=media-libs/libpng-1.6.25:0=
+ >=media-libs/tiff-3.5.7:0
+ net-libs/glib-networking[ssl]
+ sys-libs/zlib
virtual/jpeg:0
+ >=x11-libs/cairo-1.12.2
+ >=x11-libs/gdk-pixbuf-2.30.8:2
+ >=x11-libs/gtk+-2.24.32:2
+ x11-libs/libXcursor
+ >=x11-libs/pango-1.29.4
+ aalib? ( media-libs/aalib )
+ alsa? ( >=media-libs/alsa-lib-1.0.0 )
+ aqua? ( >=x11-libs/gtk-mac-integration-2.0.0 )
+ heif? ( >=media-libs/libheif-1.1.0:= )
jpeg2k? ( >=media-libs/openjpeg-2.1.0:2= )
- >=media-libs/lcms-2.8:2
- mng? ( media-libs/libmng )
+ mng? ( media-libs/libmng:= )
openexr? ( >=media-libs/openexr-1.6.1:= )
- >=app-text/poppler-0.50[cairo]
- >=app-text/poppler-data-0.4.7
- >=media-libs/libpng-1.6.25:0=
+ postscript? ( app-text/ghostscript-gpl )
python? (
${PYTHON_DEPS}
- >=dev-python/pygtk-2.10.4:2[${PYTHON_USEDEP}]
>=dev-python/pycairo-1.0.2[${PYTHON_USEDEP}]
+ >=dev-python/pygtk-2.10.4:2[${PYTHON_USEDEP}]
)
- >=media-libs/tiff-3.5.7:0
- >=gnome-base/librsvg-2.40.6:2
- webp? ( >=media-libs/libwebp-0.6.0 )
- wmf? ( >=media-libs/libwmf-0.2.8 )
- net-libs/glib-networking[ssl]
- x11-libs/libXcursor
- sys-libs/zlib
- app-arch/bzip2
- >=app-arch/xz-utils-5.0.0
- postscript? ( app-text/ghostscript-gpl )
udev? ( dev-libs/libgudev:= )
- unwind? ( sys-libs/libunwind:= )
- heif? ( >=media-libs/libheif-1.1.0:= )"
-DEPEND="${RDEPEND}
+ unwind? ( >=sys-libs/libunwind-1.1.0:= )
+ webp? ( >=media-libs/libwebp-0.6.0:= )
+ wmf? ( >=media-libs/libwmf-0.2.8 )
+ xpm? ( x11-libs/libXpm )
+"
+
+RDEPEND="
+ ${COMMON_DEPEND}
+ x11-themes/hicolor-icon-theme
+ gnome? ( gnome-base/gvfs )
+"
+
+DEPEND="
+ ${COMMON_DEPEND}
>=dev-lang/perl-5.10.0
dev-libs/appstream-glib
dev-util/gtk-update-icon-cache
- sys-apps/findutils
- virtual/pkgconfig
>=dev-util/intltool-0.40.1
+ sys-apps/findutils
+ >=sys-devel/automake-1.11
>=sys-devel/gettext-0.19
- doc? ( >=dev-util/gtk-doc-1 )
>=sys-devel/libtool-2.2
- >=sys-devel/automake-1.11
- dev-util/gtk-doc-am"
+ virtual/pkgconfig
+"
-DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
+DOCS=( "AUTHORS" "ChangeLog" "HACKING" "NEWS" "README" "README.i18n" )
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+# Bugs 685210 (and duplicate 691070)
+PATCHES=(
+ "${FILESDIR}/${PN}-2.10_fix_test-appdata.patch"
+)
pkg_setup() {
if use python; then
@@ -121,33 +132,32 @@ src_configure() {
GDBUS_CODEGEN="${EPREFIX}"/bin/false
--enable-default-binary
- --disable-silent-rules
- $(use_with !aqua x)
- $(use_with aalib aa)
- $(use_with alsa)
- $(use_enable altivec)
+ --enable-mp
--with-appdata-test
- --without-libbacktrace
--with-bug-report-url=https://bugs.gentoo.org/
+ --with-xmc
+ --without-libbacktrace
--without-webkit
- $(use_with jpeg2k jpeg2000)
- $(use_with postscript gs)
+ --without-xvfb-run
+ $(use_enable altivec)
$(use_enable cpu_flags_x86_mmx mmx)
+ $(use_enable cpu_flags_x86_sse sse)
+ $(use_enable python)
+ $(use_enable vector-icons)
+ $(use_with aalib aa)
+ $(use_with alsa)
+ $(use_with !aqua x)
+ $(use_with heif libheif)
+ $(use_with jpeg2k jpeg2000)
$(use_with mng libmng)
$(use_with openexr)
- $(use_with webp)
- $(use_with heif libheif)
- $(use_enable python)
- --enable-mp
- $(use_enable cpu_flags_x86_sse sse)
+ $(use_with postscript gs)
$(use_with udev gudev)
$(use_with unwind libunwind)
+ $(use_with webp)
$(use_with wmf)
- --with-xmc
$(use_with xpm libxpm)
- $(use_enable vector-icons)
- --without-xvfb-run
)
gnome2_src_configure "${myconf[@]}"
@@ -158,18 +168,6 @@ src_compile() {
gnome2_src_compile
}
-_clean_up_locales() {
- [[ -z ${LINGUAS+set} ]] && return
- einfo "Cleaning up locales..."
- for lang in ${LANGS}; do
- has ${lang} ${LINGUAS} && {
- einfo "- keeping ${lang}"
- continue
- }
- rm -Rf "${ED%/}"/usr/share/locale/"${lang}"
- done
-}
-
# for https://bugs.gentoo.org/664938
_rename_plugins() {
einfo 'Renaming plug-ins to not collide with pre-2.10.6 file layout (bug #664938)...'
@@ -209,8 +207,12 @@ src_install() {
local gimp_app_version=$(get_version_component_range 1-2)
mv "${ED%/}"/usr/share/man/man1/gimp-console{-${gimp_app_version},}.1 || die
+ # Remove gimp devel-docs html files if user doesn't need it
+ if ! use doc; then
+ rm -r "${ED%/}"/usr/share/gtk-doc || die
+ fi
+
_rename_plugins || die
- _clean_up_locales
}
pkg_postinst() {
diff --git a/media-gfx/gimp/gimp-2.10.12.ebuild b/media-gfx/gimp/gimp-2.10.12.ebuild
index c50fc2d19f7f..b3c8a9550e9a 100644
--- a/media-gfx/gimp/gimp-2.10.12.ebuild
+++ b/media-gfx/gimp/gimp-2.10.12.ebuild
@@ -5,83 +5,94 @@ EAPI=6
PYTHON_COMPAT=( python2_7 )
GNOME2_EAUTORECONF=yes
-inherit eapi7-ver virtualx autotools gnome2 multilib python-single-r1
+inherit autotools gnome2 python-single-r1 virtualx
DESCRIPTION="GNU Image Manipulation Program"
HOMEPAGE="https://www.gimp.org/"
-SRC_URI="mirror://gimp/v$(ver_cut 1-2)/${P}.tar.bz2"
+SRC_URI="mirror://gimp/v2.10/${P}.tar.bz2"
LICENSE="GPL-3 LGPL-3"
SLOT="2"
KEYWORDS="~amd64 ~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 aqua debug doc openexr gnome heif postscript jpeg2k cpu_flags_x86_mmx mng python cpu_flags_x86_sse udev unwind vector-icons webp wmf xpm"
+IUSE="aalib alsa altivec aqua debug doc gnome heif jpeg2k mng openexr postscript python udev unwind vector-icons webp wmf xpm cpu_flags_x86_mmx cpu_flags_x86_sse"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RESTRICT="!test? ( test )"
-RDEPEND=">=dev-libs/glib-2.56.0:2
+COMMON_DEPEND="
+ app-arch/bzip2
+ >=app-arch/xz-utils-5.0.0
+ >=app-text/poppler-0.50[cairo]
+ >=app-text/poppler-data-0.4.7
>=dev-libs/atk-2.2.0
- >=x11-libs/gtk+-2.24.32:2
- >=x11-libs/gdk-pixbuf-2.31:2
- >=x11-libs/cairo-1.12.2
- >=x11-libs/pango-1.29.4
- xpm? ( x11-libs/libXpm )
- >=media-libs/freetype-2.1.7
- >=media-libs/harfbuzz-0.9.19
- >=media-libs/gexiv2-0.10.6
- >=media-libs/libmypaint-1.3.0:=
- >=media-gfx/mypaint-brushes-1.3.0
- >=media-libs/fontconfig-2.12.4
- sys-libs/zlib
+ >=dev-libs/glib-2.54.2:2
dev-libs/libxml2
dev-libs/libxslt
- x11-themes/hicolor-icon-theme
+ >=gnome-base/librsvg-2.40.6:2
+ >=media-gfx/mypaint-brushes-1.3.0
>=media-libs/babl-0.1.66
+ >=media-libs/fontconfig-2.12.4
+ >=media-libs/freetype-2.1.7
>=media-libs/gegl-0.4.16:0.4[cairo]
- aalib? ( media-libs/aalib )
- alsa? ( media-libs/alsa-lib )
- aqua? ( x11-libs/gtk-mac-integration )
- gnome? ( gnome-base/gvfs )
+ >=media-libs/gexiv2-0.10.6
+ >=media-libs/harfbuzz-0.9.19
+ >=media-libs/lcms-2.8:2
+ >=media-libs/libmypaint-1.3.0:=
+ >=media-libs/libpng-1.6.25:0=
+ >=media-libs/tiff-3.5.7:0
+ net-libs/glib-networking[ssl]
+ sys-libs/zlib
virtual/jpeg:0
+ >=x11-libs/cairo-1.12.2
+ >=x11-libs/gdk-pixbuf-2.30.8:2
+ >=x11-libs/gtk+-2.24.32:2
+ x11-libs/libXcursor
+ >=x11-libs/pango-1.29.4
+ aalib? ( media-libs/aalib )
+ alsa? ( >=media-libs/alsa-lib-1.0.0 )
+ aqua? ( >=x11-libs/gtk-mac-integration-2.0.0 )
+ heif? ( >=media-libs/libheif-1.1.0:= )
jpeg2k? ( >=media-libs/openjpeg-2.1.0:2= )
- >=media-libs/lcms-2.8:2
- mng? ( media-libs/libmng )
+ mng? ( media-libs/libmng:= )
openexr? ( >=media-libs/openexr-1.6.1:= )
- >=app-text/poppler-0.50[cairo]
- >=app-text/poppler-data-0.4.7
- >=media-libs/libpng-1.6.25:0=
+ postscript? ( app-text/ghostscript-gpl )
python? (
${PYTHON_DEPS}
- >=dev-python/pygtk-2.10.4:2[${PYTHON_USEDEP}]
>=dev-python/pycairo-1.0.2[${PYTHON_USEDEP}]
+ >=dev-python/pygtk-2.10.4:2[${PYTHON_USEDEP}]
)
- >=media-libs/tiff-3.5.7:0
- >=gnome-base/librsvg-2.40.6:2
- webp? ( >=media-libs/libwebp-0.6.0 )
- wmf? ( >=media-libs/libwmf-0.2.8 )
- net-libs/glib-networking[ssl]
- x11-libs/libXcursor
- sys-libs/zlib
- app-arch/bzip2
- >=app-arch/xz-utils-5.0.0
- postscript? ( app-text/ghostscript-gpl )
udev? ( dev-libs/libgudev:= )
- unwind? ( sys-libs/libunwind:= )
- heif? ( >=media-libs/libheif-1.1.0:= )"
-DEPEND="${RDEPEND}
+ unwind? ( >=sys-libs/libunwind-1.1.0:= )
+ webp? ( >=media-libs/libwebp-0.6.0:= )
+ wmf? ( >=media-libs/libwmf-0.2.8 )
+ xpm? ( x11-libs/libXpm )
+"
+
+RDEPEND="
+ ${COMMON_DEPEND}
+ x11-themes/hicolor-icon-theme
+ gnome? ( gnome-base/gvfs )
+"
+
+DEPEND="
+ ${COMMON_DEPEND}
>=dev-lang/perl-5.10.0
dev-libs/appstream-glib
dev-util/gtk-update-icon-cache
- sys-apps/findutils
- virtual/pkgconfig
>=dev-util/intltool-0.40.1
+ sys-apps/findutils
+ >=sys-devel/automake-1.11
>=sys-devel/gettext-0.19
- doc? ( >=dev-util/gtk-doc-1 )
>=sys-devel/libtool-2.2
- >=sys-devel/automake-1.11
- dev-util/gtk-doc-am"
+ virtual/pkgconfig
+"
-DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
+DOCS=( "AUTHORS" "ChangeLog" "HACKING" "NEWS" "README" "README.i18n" )
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+# Bugs 685210 (and duplicate 691070)
+PATCHES=(
+ "${FILESDIR}/${PN}-2.10_fix_test-appdata.patch"
+)
pkg_setup() {
if use python; then
@@ -121,33 +132,32 @@ src_configure() {
GDBUS_CODEGEN="${EPREFIX}"/bin/false
--enable-default-binary
- --disable-silent-rules
- $(use_with !aqua x)
- $(use_with aalib aa)
- $(use_with alsa)
- $(use_enable altivec)
+ --enable-mp
--with-appdata-test
- --without-libbacktrace
--with-bug-report-url=https://bugs.gentoo.org/
+ --with-xmc
+ --without-libbacktrace
--without-webkit
- $(use_with jpeg2k jpeg2000)
- $(use_with postscript gs)
+ --without-xvfb-run
+ $(use_enable altivec)
$(use_enable cpu_flags_x86_mmx mmx)
+ $(use_enable cpu_flags_x86_sse sse)
+ $(use_enable python)
+ $(use_enable vector-icons)
+ $(use_with aalib aa)
+ $(use_with alsa)
+ $(use_with !aqua x)
+ $(use_with heif libheif)
+ $(use_with jpeg2k jpeg2000)
$(use_with mng libmng)
$(use_with openexr)
- $(use_with webp)
- $(use_with heif libheif)
- $(use_enable python)
- --enable-mp
- $(use_enable cpu_flags_x86_sse sse)
+ $(use_with postscript gs)
$(use_with udev gudev)
$(use_with unwind libunwind)
+ $(use_with webp)
$(use_with wmf)
- --with-xmc
$(use_with xpm libxpm)
- $(use_enable vector-icons)
- --without-xvfb-run
)
gnome2_src_configure "${myconf[@]}"
@@ -158,18 +168,6 @@ src_compile() {
gnome2_src_compile
}
-_clean_up_locales() {
- [[ -z ${LINGUAS+set} ]] && return
- einfo "Cleaning up locales..."
- for lang in ${LANGS}; do
- has ${lang} ${LINGUAS} && {
- einfo "- keeping ${lang}"
- continue
- }
- rm -Rf "${ED%/}"/usr/share/locale/"${lang}"
- done
-}
-
# for https://bugs.gentoo.org/664938
_rename_plugins() {
einfo 'Renaming plug-ins to not collide with pre-2.10.6 file layout (bug #664938)...'
@@ -209,8 +207,12 @@ src_install() {
local gimp_app_version=$(get_version_component_range 1-2)
mv "${ED%/}"/usr/share/man/man1/gimp-console{-${gimp_app_version},}.1 || die
+ # Remove gimp devel-docs html files if user doesn't need it
+ if ! use doc; then
+ rm -r "${ED%/}"/usr/share/gtk-doc || die
+ fi
+
_rename_plugins || die
- _clean_up_locales
}
pkg_postinst() {
diff --git a/media-gfx/gimp/gimp-2.10.14.ebuild b/media-gfx/gimp/gimp-2.10.14.ebuild
new file mode 100644
index 000000000000..0217d66c15c3
--- /dev/null
+++ b/media-gfx/gimp/gimp-2.10.14.ebuild
@@ -0,0 +1,224 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+GNOME2_EAUTORECONF=yes
+
+inherit autotools gnome2 python-single-r1 virtualx
+
+DESCRIPTION="GNU Image Manipulation Program"
+HOMEPAGE="https://www.gimp.org/"
+SRC_URI="mirror://gimp/v2.10/${P}.tar.bz2"
+LICENSE="GPL-3 LGPL-3"
+SLOT="2"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="aalib alsa altivec aqua debug doc gnome heif jpeg2k mng openexr postscript python udev unwind vector-icons webp wmf xpm cpu_flags_x86_mmx cpu_flags_x86_sse"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RESTRICT="!test? ( test )"
+
+COMMON_DEPEND="
+ app-arch/bzip2
+ >=app-arch/xz-utils-5.0.0
+ >=app-text/poppler-0.50[cairo]
+ >=app-text/poppler-data-0.4.7
+ >=dev-libs/atk-2.2.0
+ >=dev-libs/glib-2.56.0:2
+ dev-libs/libxml2
+ dev-libs/libxslt
+ >=gnome-base/librsvg-2.40.6:2
+ >=media-gfx/mypaint-brushes-1.3.0
+ >=media-libs/babl-0.1.72
+ >=media-libs/fontconfig-2.12.4
+ >=media-libs/freetype-2.1.7
+ >=media-libs/gegl-0.4.18:0.4[cairo]
+ >=media-libs/gexiv2-0.10.6
+ >=media-libs/harfbuzz-0.9.19
+ >=media-libs/lcms-2.8:2
+ >=media-libs/libmypaint-1.3.0:=
+ >=media-libs/libpng-1.6.25:0=
+ >=media-libs/tiff-3.5.7:0
+ net-libs/glib-networking[ssl]
+ sys-libs/zlib
+ virtual/jpeg:0
+ >=x11-libs/cairo-1.12.2
+ >=x11-libs/gdk-pixbuf-2.31:2
+ >=x11-libs/gtk+-2.24.32:2
+ x11-libs/libXcursor
+ >=x11-libs/pango-1.29.4
+ aalib? ( media-libs/aalib )
+ alsa? ( >=media-libs/alsa-lib-1.0.0 )
+ aqua? ( >=x11-libs/gtk-mac-integration-2.0.0 )
+ heif? ( >=media-libs/libheif-1.3.2:= )
+ jpeg2k? ( >=media-libs/openjpeg-2.1.0:2= )
+ mng? ( media-libs/libmng:= )
+ openexr? ( >=media-libs/openexr-1.6.1:= )
+ postscript? ( app-text/ghostscript-gpl )
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-python/pycairo-1.0.2[${PYTHON_USEDEP}]
+ >=dev-python/pygtk-2.10.4:2[${PYTHON_USEDEP}]
+ )
+ udev? ( dev-libs/libgudev:= )
+ unwind? ( >=sys-libs/libunwind-1.1.0:= )
+ webp? ( >=media-libs/libwebp-0.6.0:= )
+ wmf? ( >=media-libs/libwmf-0.2.8 )
+ xpm? ( x11-libs/libXpm )
+"
+
+RDEPEND="
+ ${COMMON_DEPEND}
+ x11-themes/hicolor-icon-theme
+ gnome? ( gnome-base/gvfs )
+"
+
+DEPEND="
+ ${COMMON_DEPEND}
+ >=dev-lang/perl-5.10.0
+ dev-libs/appstream-glib
+ dev-util/gtk-update-icon-cache
+ >=dev-util/intltool-0.40.1
+ sys-apps/findutils
+ >=sys-devel/automake-1.11
+ >=sys-devel/gettext-0.19
+ >=sys-devel/libtool-2.2
+ virtual/pkgconfig
+"
+
+DOCS=( "AUTHORS" "ChangeLog" "HACKING" "NEWS" "README" "README.i18n" )
+
+# Bugs 685210 (and duplicate 691070)
+PATCHES=(
+ "${FILESDIR}/${PN}-2.10_fix_test-appdata.patch"
+)
+
+pkg_setup() {
+ if use python; then
+ python-single-r1_pkg_setup
+ fi
+}
+
+src_prepare() {
+ sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
+ sed 's:-DGIMP_DISABLE_DEPRECATED:-DGIMP_protect_DISABLE_DEPRECATED:g' -i configure.ac || die #615144
+
+ gnome2_src_prepare # calls eautoreconf
+
+ sed 's:-DGIMP_protect_DISABLE_DEPRECATED:-DGIMP_DISABLE_DEPRECATED:g' -i configure || die #615144
+ fgrep -q GIMP_DISABLE_DEPRECATED configure || die #615144, self-test
+}
+
+_adjust_sandbox() {
+ # Bugs #569738 and #591214
+ local nv
+ for nv in /dev/nvidia-uvm /dev/nvidiactl /dev/nvidia{0..9} ; do
+ # We do not check for existence as they may show up later
+ # https://bugs.gentoo.org/show_bug.cgi?id=569738#c21
+ addwrite "${nv}"
+ done
+
+ addwrite /dev/dri/ # bugs #574038 and #684886
+ addwrite /dev/ati/ # bug #589198
+ addwrite /proc/mtrr # bug #589198
+}
+
+src_configure() {
+ _adjust_sandbox
+
+ local myconf=(
+ GEGL="${EPREFIX}"/usr/bin/gegl-0.4
+ GDBUS_CODEGEN="${EPREFIX}"/bin/false
+
+ --enable-default-binary
+
+ --enable-mp
+ --with-appdata-test
+ --with-bug-report-url=https://bugs.gentoo.org/
+ --with-xmc
+ --without-libbacktrace
+ --without-webkit
+ --without-xvfb-run
+ $(use_enable altivec)
+ $(use_enable cpu_flags_x86_mmx mmx)
+ $(use_enable cpu_flags_x86_sse sse)
+ $(use_enable python)
+ $(use_enable vector-icons)
+ $(use_with aalib aa)
+ $(use_with alsa)
+ $(use_with !aqua x)
+ $(use_with heif libheif)
+ $(use_with jpeg2k jpeg2000)
+ $(use_with mng libmng)
+ $(use_with openexr)
+ $(use_with postscript gs)
+ $(use_with udev gudev)
+ $(use_with unwind libunwind)
+ $(use_with webp)
+ $(use_with wmf)
+ $(use_with xpm libxpm)
+ )
+
+ gnome2_src_configure "${myconf[@]}"
+}
+
+src_compile() {
+ export XDG_DATA_DIRS="${EPREFIX}"/usr/share # bug 587004
+ gnome2_src_compile
+}
+
+# for https://bugs.gentoo.org/664938
+_rename_plugins() {
+ einfo 'Renaming plug-ins to not collide with pre-2.10.6 file layout (bug #664938)...'
+ local prepend=gimp-org-
+ (
+ cd "${ED%/}"/usr/$(get_libdir)/gimp/2.0/plug-ins || exit 1
+ for plugin_slash in $(ls -d1 */); do
+ plugin=${plugin_slash%/}
+ if [[ -f ${plugin}/${plugin} ]]; then
+ # NOTE: Folder and file name need to match for Gimp to load that plug-in
+ # so "file-svg/file-svg" becomes "${prepend}file-svg/${prepend}file-svg"
+ mv ${plugin}/{,${prepend}}${plugin} || exit 1
+ mv {,${prepend}}${plugin} || exit 1
+ fi
+ done
+ )
+}
+
+src_test() {
+ virtx emake check
+}
+
+src_install() {
+ gnome2_src_install
+
+ if use python; then
+ 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 "${D}" -name '*.la' -type f -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
+
+ # Remove gimp devel-docs html files if user doesn't need it
+ if ! use doc; then
+ rm -r "${ED%/}"/usr/share/gtk-doc || die
+ fi
+
+ _rename_plugins || die
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+}
+
+pkg_postrm() {
+ gnome2_pkg_postrm
+}
diff --git a/media-gfx/gimp/gimp-9999.ebuild b/media-gfx/gimp/gimp-9999.ebuild
index e5e13bd8d9a8..fb68f61b9b4d 100644
--- a/media-gfx/gimp/gimp-9999.ebuild
+++ b/media-gfx/gimp/gimp-9999.ebuild
@@ -2,10 +2,15 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=6
-PYTHON_COMPAT=( python2_7 )
+PLOCALES="am ar ast az be bg br bs ca ca@valencia cs csb da de dz el en_CA en_GB eo
+ es et eu fa fi fr ga gd gl gu he hi hr hu id is it ja ka kk km kn ko ky
+ lt lv mk ml mr 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"
+
+PYTHON_COMPAT=( python3_{6,7} )
GNOME2_EAUTORECONF=yes
-inherit virtualx autotools gnome2 multilib python-single-r1 git-r3
+inherit autotools git-r3 gnome2 l10n python-single-r1 virtualx
DESCRIPTION="GNU Image Manipulation Program"
HOMEPAGE="https://www.gimp.org/"
@@ -15,76 +20,94 @@ LICENSE="GPL-3 LGPL-3"
SLOT="2"
KEYWORDS=""
-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 aqua debug doc openexr gnome heif postscript jpeg2k cpu_flags_x86_mmx mng python cpu_flags_x86_sse udev unwind vector-icons webp wmf xpm"
+IUSE="aalib alsa altivec aqua debug doc gnome heif javascript jpeg2k lua mng openexr postscript python udev unwind vector-icons webp wmf xpm cpu_flags_x86_mmx cpu_flags_x86_sse"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-RDEPEND=">=dev-libs/glib-2.56.0:2
- >=dev-libs/atk-2.2.0
- >=x11-libs/gtk+-2.24.32:2
- >=x11-libs/gdk-pixbuf-2.31:2
- >=x11-libs/cairo-1.12.2
- >=x11-libs/pango-1.29.4
- xpm? ( x11-libs/libXpm )
+RESTRICT="!test? ( test )"
+
+# media-libs/{babl,gegl} are required to be built with USE="introspection"
+# to fix the compilation checking of /usr/share/gir-1.0/{Babl-0.1gir,Gegl-0.4.gir}
+COMMON_DEPEND="
+ app-arch/bzip2
+ >=app-arch/xz-utils-5.0.0
+ >=app-text/poppler-0.69[cairo]
+ >=app-text/poppler-data-0.4.9
+ >=dev-libs/atk-2.4.0
+ >=dev-libs/glib-2.56.0:2
+ dev-libs/libxml2
+ dev-libs/libxslt
+ >=gnome-base/librsvg-2.40.6:2
+ >=media-gfx/mypaint-brushes-1.3.0
+ >=media-libs/babl-0.1.72[introspection]
+ >=media-libs/fontconfig-2.12.4
>=media-libs/freetype-2.1.7
- >=media-libs/harfbuzz-0.9.19
+ >=media-libs/gegl-0.4.18:0.4[cairo,introspection]
>=media-libs/gexiv2-0.10.6
+ >=media-libs/harfbuzz-0.9.19
+ >=media-libs/lcms-2.8:2
>=media-libs/libmypaint-1.3.0:=
- >=media-gfx/mypaint-brushes-1.3.0
- >=media-libs/fontconfig-2.12.4
+ >=media-libs/libpng-1.6.25:0=
+ >=media-libs/tiff-3.5.7:0
+ net-libs/glib-networking[ssl]
sys-libs/zlib
- dev-libs/libxml2
- dev-libs/libxslt
- x11-themes/hicolor-icon-theme
- >=media-libs/babl-0.1.66
- >=media-libs/gegl-0.4.16:0.4[cairo]
- aalib? ( media-libs/aalib )
- alsa? ( media-libs/alsa-lib )
- aqua? ( x11-libs/gtk-mac-integration )
- gnome? ( gnome-base/gvfs )
virtual/jpeg:0
+ >=x11-libs/cairo-1.14.0
+ >=x11-libs/gdk-pixbuf-2.36:2
+ >=x11-libs/gtk+-3.22.29:3
+ x11-libs/libXcursor
+ >=x11-libs/pango-1.42.0
+ aalib? ( media-libs/aalib )
+ alsa? ( >=media-libs/alsa-lib-1.0.0 )
+ aqua? ( >=x11-libs/gtk-mac-integration-2.0.0 )
+ heif? ( >=media-libs/libheif-1.3.2:= )
+ javascript? ( dev-libs/gjs )
jpeg2k? ( >=media-libs/openjpeg-2.1.0:2= )
- >=media-libs/lcms-2.8:2
- mng? ( media-libs/libmng )
+ lua? ( dev-lang/luajit )
+ mng? ( media-libs/libmng:= )
openexr? ( >=media-libs/openexr-1.6.1:= )
- >=app-text/poppler-0.50[cairo]
- >=app-text/poppler-data-0.4.7
- >=media-libs/libpng-1.6.25:0=
- python? (
+ postscript? ( app-text/ghostscript-gpl )
+ python? (
${PYTHON_DEPS}
- >=dev-python/pygtk-2.10.4:2[${PYTHON_USEDEP}]
- >=dev-python/pycairo-1.0.2[${PYTHON_USEDEP}]
+ >=dev-python/pygobject-3.0:3[${PYTHON_USEDEP}]
)
- >=media-libs/tiff-3.5.7:0
- >=gnome-base/librsvg-2.40.6:2
- webp? ( >=media-libs/libwebp-0.6.0 )
+ udev? ( >=dev-libs/libgudev-167:= )
+ unwind? ( >=sys-libs/libunwind-1.1.0:= )
+ webp? ( >=media-libs/libwebp-0.6.0:= )
wmf? ( >=media-libs/libwmf-0.2.8 )
- net-libs/glib-networking[ssl]
- x11-libs/libXcursor
- sys-libs/zlib
- app-arch/bzip2
- >=app-arch/xz-utils-5.0.0
- postscript? ( app-text/ghostscript-gpl )
- udev? ( dev-libs/libgudev:= )
- unwind? ( sys-libs/libunwind:= )
- heif? ( >=media-libs/libheif-1.1.0:= )"
-DEPEND="${RDEPEND}
+ xpm? ( x11-libs/libXpm )
+"
+
+RDEPEND="
+ ${COMMON_DEPEND}
+ x11-themes/hicolor-icon-theme
+ gnome? ( gnome-base/gvfs )
+"
+
+DEPEND="
+ ${COMMON_DEPEND}
>=dev-lang/perl-5.10.0
- dev-libs/appstream-glib
+ >=dev-libs/appstream-glib-0.7.7
dev-util/gdbus-codegen
dev-util/gtk-update-icon-cache
- sys-apps/findutils
- virtual/pkgconfig
>=dev-util/intltool-0.40.1
- >=sys-devel/gettext-0.19
- doc? ( >=dev-util/gtk-doc-1 )
- >=sys-devel/libtool-2.2
+ sys-apps/findutils
>=sys-devel/autoconf-2.54
>=sys-devel/automake-1.11
- dev-util/gtk-doc-am"
+ >=sys-devel/gettext-0.19
+ >=sys-devel/libtool-2.2
+ virtual/pkgconfig
+ doc? (
+ >=dev-util/gtk-doc-1.0
+ dev-util/gtk-doc-am
+ )
+"
-DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
+DOCS=( "AUTHORS" "HACKING" "NEWS" "README" "README.i18n" )
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+# Bugs 685210 (and duplicate 691070)
+PATCHES=(
+ "${FILESDIR}/${PN}-2.10_fix_test-appdata.patch"
+)
pkg_setup() {
if use python; then
@@ -96,6 +119,15 @@ src_prepare() {
sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
sed 's:-DGIMP_DISABLE_DEPRECATED:-DGIMP_protect_DISABLE_DEPRECATED:g' -i configure.ac || die #615144
+ # Fix checking of gtk-doc.make if USE="-doc" like autogen.sh
+ if ! use doc ; then
+ echo "EXTRA_DIST = missing-gtk-doc" > gtk-doc.make
+ fi
+
+ # Remove disabled locales
+ _rm_locale() { sed -i -e "/${1}/d" po/LINGUAS || die "Failed to remove disabled locales"; }
+ l10n_for_each_disabled_locale_do _rm_locale
+
gnome2_src_prepare # calls eautoreconf
sed 's:-DGIMP_protect_DISABLE_DEPRECATED:-DGIMP_DISABLE_DEPRECATED:g' -i configure || die #615144
@@ -124,33 +156,35 @@ src_configure() {
GDBUS_CODEGEN="${EPREFIX}"/usr/bin/gdbus-codegen
--enable-default-binary
- --disable-silent-rules
- $(use_with !aqua x)
- $(use_with aalib aa)
- $(use_with alsa)
- $(use_enable altivec)
+ --enable-mp
--with-appdata-test
- --without-libbacktrace
--with-bug-report-url=https://bugs.gentoo.org/
+ --with-xmc
+ --without-libbacktrace
--without-webkit
- $(use_with jpeg2k jpeg2000)
- $(use_with postscript gs)
+ --without-xvfb-run
+ $(use_enable altivec)
$(use_enable cpu_flags_x86_mmx mmx)
+ $(use_enable cpu_flags_x86_sse sse)
+ $(use_enable doc gtk_doc)
+ $(use_enable vector-icons)
+ $(use_with aalib aa)
+ $(use_with alsa)
+ $(use_with !aqua x)
+ $(use_with heif libheif)
+ $(use_with javascript)
+ $(use_with jpeg2k jpeg2000)
+ $(use_with lua)
$(use_with mng libmng)
$(use_with openexr)
- $(use_with webp)
- $(use_with heif libheif)
- $(use_enable python)
- --enable-mp
- $(use_enable cpu_flags_x86_sse sse)
+ $(use_with postscript gs)
+ $(use_with python)
$(use_with udev gudev)
$(use_with unwind libunwind)
+ $(use_with webp)
$(use_with wmf)
- --with-xmc
$(use_with xpm libxpm)
- $(use_enable vector-icons)
- --without-xvfb-run
)
gnome2_src_configure "${myconf[@]}"
@@ -161,18 +195,6 @@ src_compile() {
gnome2_src_compile
}
-_clean_up_locales() {
- [[ -z ${LINGUAS+set} ]] && return
- einfo "Cleaning up locales..."
- for lang in ${LANGS}; do
- has ${lang} ${LINGUAS} && {
- einfo "- keeping ${lang}"
- continue
- }
- rm -Rf "${ED%/}"/usr/share/locale/"${lang}"
- done
-}
-
# for https://bugs.gentoo.org/664938
_rename_plugins() {
einfo 'Renaming plug-ins to not collide with pre-2.10.6 file layout (bug #664938)...'
@@ -212,7 +234,6 @@ src_install() {
mv "${ED%/}"/usr/share/man/man1/gimp-console{-*,}.1 || die
_rename_plugins || die
- _clean_up_locales
}
pkg_postinst() {
diff --git a/media-gfx/gimp/metadata.xml b/media-gfx/gimp/metadata.xml
index e615a07f9cf7..7d0fd04395e6 100644
--- a/media-gfx/gimp/metadata.xml
+++ b/media-gfx/gimp/metadata.xml
@@ -1,7 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <!-- maintainer-needed -->
+ <maintainer type="person">
+ <email>torokhov-s-a@yandex.ru</email>
+ <name>Sergey Torokhov</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
<use>
<flag name="smp">
Enable support for multiprocessors