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

Contents of /media-gfx/mypaint/mypaint-1.1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jan 15 19:59:13 2013 UTC (17 months, 3 weeks ago) by hwoarang
Branch: MAIN
Changes since 1.1: +3 -2 lines
Fix SConscript file for proper multilib support

(Portage version: 2.1.11.38/cvs/Linux x86_64, signed Manifest commit with key B4AFF2C2)

1 # Copyright 1999-2013 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.1.0.ebuild,v 1.1 2013/01/15 19:49:47 hwoarang 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 dev-libs/json-c
30 >=media-libs/lcms-2.0
31 media-libs/libpng"
32 DEPEND="${RDEPEND}
33 dev-lang/swig
34 virtual/pkgconfig"
35
36 pkg_setup(){
37 python_set_active_version 2
38 python_pkg_setup
39 }
40
41 src_prepare() {
42 # multilib support
43 sed -i -e "s:lib\/${PN}:$(get_libdir)\/${PN}:" \
44 SConstruct SConscript || die
45 # respect CXXFLAGS,CXX,LDFLAGS
46 epatch "${FILESDIR}"/${PN}-1.1.0-gentoo.patch
47 }
48
49 src_compile() {
50 #workaround scons bug with locales. Bug #352700
51 export LANG="en_US.UTF-8"
52 tc-export CXX
53 escons || die "scons failed"
54 }
55
56 src_install () {
57 escons prefix="${D}/usr" install || die "scons install failed"
58 newicon pixmaps/${PN}_logo.png ${PN}.png
59 for x in ${LANGS}; do
60 if ! has ${x} ${LINGUAS}; then
61 find "${D}"/usr/share/locale/${x} -name "mypaint.mo" -exec rm {} \;
62 fi
63 done
64 }
65
66 pkg_preinst() {
67 gnome2_icon_savelist
68 }
69
70 pkg_postinst() {
71 fdo-mime_desktop_database_update
72 gnome2_icon_cache_update
73 python_mod_optimize /usr/share/${PN}
74 }
75
76 pkg_postrm() {
77 fdo-mime_desktop_database_update
78 python_mod_cleanup /usr/share/${PN}
79 }

  ViewVC Help
Powered by ViewVC 1.1.20