1 |
commit: bcd4cee81065125672f1903237e086c3f0db741f |
2 |
Author: Guillaume Castagnino <casta <AT> xwing <DOT> info> |
3 |
AuthorDate: Tue Jul 31 20:25:34 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 31 21:57:29 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcd4cee8 |
7 |
|
8 |
media-gfx/mypaint: drop broken multilib handling |
9 |
|
10 |
The current multilib handling is only partial as it moves libs to |
11 |
$(get_libdir) but does not fix the python entry point to load librbries |
12 |
from the correct directory. The bug is only triggered on SYMLINK_LIB |
13 |
systems. |
14 |
As this package will never be installed for multiple libdirs, drop this |
15 |
and stick to upstream. |
16 |
|
17 |
Closes: https://bugs.gentoo.org/648960 |
18 |
Closes: https://github.com/gentoo/gentoo/pull/9337 |
19 |
Package-Manager: Portage-2.3.44, Repoman-2.3.10 |
20 |
|
21 |
media-gfx/mypaint/mypaint-1.2.1-r1.ebuild | 77 +++++++++++++++++++++++++++++++ |
22 |
1 file changed, 77 insertions(+) |
23 |
|
24 |
diff --git a/media-gfx/mypaint/mypaint-1.2.1-r1.ebuild b/media-gfx/mypaint/mypaint-1.2.1-r1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..8489c3857e4 |
27 |
--- /dev/null |
28 |
+++ b/media-gfx/mypaint/mypaint-1.2.1-r1.ebuild |
29 |
@@ -0,0 +1,77 @@ |
30 |
+# Copyright 1999-2018 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python2_7 ) |
36 |
+ |
37 |
+inherit fdo-mime gnome2-utils scons-utils toolchain-funcs python-single-r1 |
38 |
+ |
39 |
+DESCRIPTION="fast and easy graphics application for digital painters" |
40 |
+HOMEPAGE="http://mypaint.org/" |
41 |
+SRC_URI="https://github.com/mypaint/${PN}/releases/download/v${PV}/${P}.tar.xz" |
42 |
+ |
43 |
+LICENSE="GPL-2" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+IUSE="" |
47 |
+ |
48 |
+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" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
52 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/pycairo-1.4[${PYTHON_USEDEP}] |
54 |
+ dev-python/protobuf-python[${PYTHON_USEDEP}] |
55 |
+ >=dev-libs/json-c-0.11:= |
56 |
+ media-libs/lcms:2 |
57 |
+ >=media-libs/libmypaint-1.3.0 |
58 |
+ media-libs/libpng:0= |
59 |
+ gnome-base/librsvg |
60 |
+ ${PYTHON_DEPS} |
61 |
+" |
62 |
+DEPEND="${RDEPEND} |
63 |
+ dev-lang/swig |
64 |
+ virtual/pkgconfig" |
65 |
+ |
66 |
+REQUIRED_USE=${PYTHON_REQUIRED_USE} |
67 |
+ |
68 |
+pkg_setup() { |
69 |
+ python-single-r1_pkg_setup |
70 |
+} |
71 |
+ |
72 |
+src_compile() { |
73 |
+ #workaround scons bug with locales. Bug #352700 |
74 |
+ export LANG="en_US.UTF-8" |
75 |
+ tc-export CC CXX |
76 |
+ escons |
77 |
+} |
78 |
+ |
79 |
+src_install () { |
80 |
+ escons prefix="${D}/usr" install |
81 |
+ newicon pixmaps/${PN}_logo.png ${PN}.png |
82 |
+ for x in ${LANGS}; do |
83 |
+ if ! has ${x} ${LINGUAS}; then |
84 |
+ rm -rf "${ED}"/usr/share/locale/${x} || die |
85 |
+ fi |
86 |
+ done |
87 |
+ |
88 |
+ python_optimize "${D}"usr/share/${PN} |
89 |
+ # not used and broken |
90 |
+ rm -r "${ED}"/usr/{include/,lib/libmypaint.a,lib/pkgconfig/} || die |
91 |
+ # already provided by system-libmypaint |
92 |
+ rm "${ED}"/usr/share/locale/*/LC_MESSAGES/libmypaint* || die |
93 |
+} |
94 |
+ |
95 |
+pkg_preinst() { |
96 |
+ gnome2_icon_savelist |
97 |
+} |
98 |
+ |
99 |
+pkg_postinst() { |
100 |
+ fdo-mime_desktop_database_update |
101 |
+ gnome2_icon_cache_update |
102 |
+} |
103 |
+ |
104 |
+pkg_postrm() { |
105 |
+ fdo-mime_desktop_database_update |
106 |
+} |