/[gentoo-x86]/media-gfx/mypaint/mypaint-1.0.0-r1.ebuild
Gentoo

Contents of /media-gfx/mypaint/mypaint-1.0.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Tue Jul 24 21:13:45 2012 UTC (2 years, 1 month ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +2 -2 lines
Stable on amd64 wrt bug #427630. Remove old

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/mypaint/mypaint-1.0.0-r1.ebuild,v 1.7 2012/07/23 06:05:00 jdhore Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="2:2.5"
8
9 inherit eutils fdo-mime gnome2-utils multilib scons-utils toolchain-funcs python
10
11 DESCRIPTION="fast and easy graphics application for digital painters"
12 HOMEPAGE="http://mypaint.intilinux.com/"
13 SRC_URI="http://download.gna.org/${PN}/${P}.tar.bz2"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="amd64 x86"
18 IUSE=""
19
20 LANGS="cs de en_CA es fr hu id it ja ko nb nn_NO pl pt_BR ru sl sv uk zh_CN zh_TW"
21 for x in ${LANGS}; do
22 IUSE+="linguas_${x} "
23 done
24
25 RDEPEND="dev-python/pygtk
26 dev-python/numpy
27 >=dev-python/pycairo-1.4
28 dev-libs/protobuf[python]"
29 DEPEND="${RDEPEND}
30 dev-lang/swig
31 virtual/pkgconfig"
32
33 pkg_setup(){
34 python_set_active_version 2
35 python_pkg_setup
36 }
37
38 src_prepare() {
39 # multilib support
40 sed -i -e "s:lib\/${PN}:$(get_libdir)\/${PN}:" "${S}"/SConstruct || die
41 # respect CXXFLAGS,CXX,LDFLAGS
42 epatch "${FILESDIR}"/${PN}-0.9.1-gentoo.patch
43 }
44
45 src_compile() {
46 #workaround scons bug with locales. Bug #352700
47 export LANG="en_US.UTF-8"
48 tc-export CXX
49 escons || die "scons failed"
50 }
51
52 src_install () {
53 escons prefix="${D}/usr" install || die "scons install failed"
54 newicon pixmaps/${PN}_logo.png ${PN}.png
55 for x in ${LANGS}; do
56 if ! has ${x} ${LINGUAS}; then
57 find "${D}"/usr/share/locale/${x} -name "mypaint.mo" -exec rm {} \;
58 fi
59 done
60 }
61
62 pkg_preinst() {
63 gnome2_icon_savelist
64 }
65
66 pkg_postinst() {
67 fdo-mime_desktop_database_update
68 gnome2_icon_cache_update
69 python_mod_optimize /usr/share/${PN}
70 }
71
72 pkg_postrm() {
73 fdo-mime_desktop_database_update
74 python_mod_cleanup /usr/share/${PN}
75 }

  ViewVC Help
Powered by ViewVC 1.1.20