1 |
commit: b02a5e3cda51170b7d63b2ad702dcdc85791bc82 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 13 17:10:25 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 13 17:35:03 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b02a5e3c |
7 |
|
8 |
media-gfx/mypaint: Pull missing and automagic deps |
9 |
|
10 |
Closes: https://bugs.gentoo.org/578580 |
11 |
Closes: https://bugs.gentoo.org/657482 |
12 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
13 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
14 |
|
15 |
media-gfx/mypaint/mypaint-1.2.1-r3.ebuild | 81 +++++++++++++++++++++++++++++++ |
16 |
1 file changed, 81 insertions(+) |
17 |
|
18 |
diff --git a/media-gfx/mypaint/mypaint-1.2.1-r3.ebuild b/media-gfx/mypaint/mypaint-1.2.1-r3.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..43afe4219d7 |
21 |
--- /dev/null |
22 |
+++ b/media-gfx/mypaint/mypaint-1.2.1-r3.ebuild |
23 |
@@ -0,0 +1,81 @@ |
24 |
+# Copyright 1999-2018 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=6 |
28 |
+PYTHON_COMPAT=( python2_7 ) |
29 |
+ |
30 |
+inherit flag-o-matic gnome2-utils scons-utils toolchain-funcs python-single-r1 xdg |
31 |
+ |
32 |
+DESCRIPTION="fast and easy graphics application for digital painters" |
33 |
+HOMEPAGE="http://mypaint.org/" |
34 |
+SRC_URI="https://github.com/mypaint/${PN}/releases/download/v${PV}/${P}.tar.xz" |
35 |
+ |
36 |
+LICENSE="GPL-2" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+ |
40 |
+IUSE="" |
41 |
+REQUIRED_USE=${PYTHON_REQUIRED_USE} |
42 |
+ |
43 |
+LANGS="cs de en_CA en_GB es fr hu id it ja ko nb nn_NO pl pt_BR ro ru sl sv uk zh_CN zh_TW" |
44 |
+ |
45 |
+RDEPEND="${PYTHON_DEPS} |
46 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
47 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
48 |
+ >=dev-python/pycairo-1.4[${PYTHON_USEDEP}] |
49 |
+ dev-python/protobuf-python[${PYTHON_USEDEP}] |
50 |
+ >=dev-libs/json-c-0.11:= |
51 |
+ media-libs/lcms:2 |
52 |
+ >=media-libs/libmypaint-1.3.0 |
53 |
+ media-libs/libpng:0= |
54 |
+ gnome-base/librsvg |
55 |
+ sys-libs/libomp |
56 |
+ x11-libs/gtk+:3 |
57 |
+" |
58 |
+DEPEND="${RDEPEND} |
59 |
+ dev-lang/swig |
60 |
+ virtual/pkgconfig |
61 |
+" |
62 |
+ |
63 |
+pkg_setup() { |
64 |
+ python-single-r1_pkg_setup |
65 |
+} |
66 |
+ |
67 |
+src_compile() { |
68 |
+ # Workaround scons bug with locales. Bug #352700 |
69 |
+ export LANG="en_US.UTF-8" |
70 |
+ tc-export CC CXX |
71 |
+ strip-flags # scons upstream issue #3017 |
72 |
+ escons |
73 |
+} |
74 |
+ |
75 |
+src_install () { |
76 |
+ escons prefix="${D}/usr" install |
77 |
+ newicon pixmaps/${PN}_logo.png ${PN}.png |
78 |
+ for x in ${LANGS}; do |
79 |
+ if ! has ${x} ${LINGUAS}; then |
80 |
+ rm -rf "${ED}"/usr/share/locale/${x} || die |
81 |
+ fi |
82 |
+ done |
83 |
+ |
84 |
+ python_optimize "${D}"usr/share/${PN} |
85 |
+ # not used and broken |
86 |
+ rm -r "${ED}"/usr/{include/,lib/libmypaint.a,lib/pkgconfig/} || die |
87 |
+ # already provided by system-libmypaint |
88 |
+ rm "${ED}"/usr/share/locale/*/LC_MESSAGES/libmypaint* || die |
89 |
+} |
90 |
+ |
91 |
+pkg_preinst() { |
92 |
+ xdg_pkg_preinst |
93 |
+ gnome2_icon_savelist |
94 |
+} |
95 |
+ |
96 |
+pkg_postinst() { |
97 |
+ xdg_pkg_postinst |
98 |
+ gnome2_icon_cache_update |
99 |
+} |
100 |
+ |
101 |
+pkg_postrm() { |
102 |
+ xdg_pkg_postrm |
103 |
+ fdo-mime_desktop_database_update |
104 |
+} |