Gentoo Archives: gentoo-commits

From: "Ian Delaney (idella4)" <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/mypaint: mypaint-1.1.0-r2.ebuild ChangeLog
Date: Thu, 26 Feb 2015 14:26:29
Message-Id: 20150226142618.2418F12991@oystercatcher.gentoo.org
1 idella4 15/02/26 14:26:18
2
3 Modified: ChangeLog
4 Added: mypaint-1.1.0-r2.ebuild
5 Log:
6 revbump; convert -> python-single-r1 and upgrade EAPI, consent by maintainer hwoarang
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
9
10 Revision Changes Path
11 1.24 media-gfx/mypaint/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/mypaint/ChangeLog?rev=1.24&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/mypaint/ChangeLog?rev=1.24&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/mypaint/ChangeLog?r1=1.23&r2=1.24
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-gfx/mypaint/ChangeLog,v
20 retrieving revision 1.23
21 retrieving revision 1.24
22 diff -u -r1.23 -r1.24
23 --- ChangeLog 11 Oct 2013 21:07:13 -0000 1.23
24 +++ ChangeLog 26 Feb 2015 14:26:18 -0000 1.24
25 @@ -1,6 +1,12 @@
26 # ChangeLog for media-gfx/mypaint
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/mypaint/ChangeLog,v 1.23 2013/10/11 21:07:13 hwoarang Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/mypaint/ChangeLog,v 1.24 2015/02/26 14:26:18 idella4 Exp $
31 +
32 +*mypaint-1.1.0-r2 (26 Feb 2015)
33 +
34 + 26 Feb 2015; Ian Delaney <idella4@g.o> +mypaint-1.1.0-r2.ebuild:
35 + revbump; convert -> python-single-r1 and upgrade EAPI, consent by maintainer
36 + hwoarang
37
38 *mypaint-1.1.0-r1 (11 Oct 2013)
39
40
41
42
43 1.1 media-gfx/mypaint/mypaint-1.1.0-r2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/mypaint/mypaint-1.1.0-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/mypaint/mypaint-1.1.0-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mypaint-1.1.0-r2.ebuild
49 ===================================================================
50 # Copyright 1999-2015 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-gfx/mypaint/mypaint-1.1.0-r2.ebuild,v 1.1 2015/02/26 14:26:18 idella4 Exp $
53
54 EAPI=5
55
56 PYTHON_COMPAT=( python2_7 )
57
58 inherit fdo-mime gnome2-utils multilib scons-utils toolchain-funcs python-single-r1
59
60 DESCRIPTION="fast and easy graphics application for digital painters"
61 HOMEPAGE="http://mypaint.intilinux.com/"
62 SRC_URI="http://download.gna.org/${PN}/${P}.tar.bz2"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE=""
68
69 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"
70 for x in ${LANGS}; do
71 IUSE+="linguas_${x} "
72 done
73
74 RDEPEND="
75 dev-python/pygtk:2[${PYTHON_USEDEP}]
76 dev-python/numpy[${PYTHON_USEDEP}]
77 >=dev-python/pycairo-1.4[${PYTHON_USEDEP}]
78 dev-libs/protobuf[python,${PYTHON_USEDEP}]
79 >=dev-libs/json-c-0.11:=
80 media-libs/lcms:2
81 media-libs/libpng:0=
82 ${PYTHON_DEPS}
83 "
84 DEPEND="${RDEPEND}
85 dev-lang/swig
86 virtual/pkgconfig"
87
88 REQUIRED_USE=${PYTHON_REQUIRED_USE}
89
90 pkg_setup() {
91 python-single-r1_pkg_setup
92 }
93
94 src_prepare() {
95 # multilib support
96 sed -i -e "s:lib\/${PN}:$(get_libdir)\/${PN}:" \
97 SConstruct SConscript || die
98 # respect CXXFLAGS,CXX,LDFLAGS
99 epatch "${FILESDIR}"/${P}-build-env-vars.patch
100 # fix mypaint.desktop
101 epatch "${FILESDIR}"/${P}-desktop.patch
102 # pkgconfig patch for json-c-0.11. 467322
103 epatch "${FILESDIR}"/${P}-json-c-0.11.patch
104 }
105
106 src_compile() {
107 #workaround scons bug with locales. Bug #352700
108 export LANG="en_US.UTF-8"
109 tc-export CC CXX
110 escons
111 }
112
113 src_install () {
114 escons prefix="${D}/usr" install
115 newicon pixmaps/${PN}_logo.png ${PN}.png
116 for x in ${LANGS}; do
117 if ! has ${x} ${LINGUAS}; then
118 rm -rf "${ED}"/usr/share/locale/${x} || die
119 fi
120 done
121
122 python_optimize "${D}"usr/share/${PN}
123 # not used and broken
124 rm -rf "${ED}"/usr/{include/,lib/libmypaint.a,lib/pkgconfig/} || die
125 }
126
127 pkg_preinst() {
128 gnome2_icon_savelist
129 }
130
131 pkg_postinst() {
132 fdo-mime_desktop_database_update
133 gnome2_icon_cache_update
134 }
135
136 pkg_postrm() {
137 fdo-mime_desktop_database_update
138 }