blob: c845ba25671a4741df15e951203e96cc40fa4388 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/mypaint/mypaint-1.0.0.ebuild,v 1.2 2011/12/04 21:19:59 hwoarang Exp $
EAPI=2
inherit eutils fdo-mime gnome2-utils multilib scons-utils toolchain-funcs
DESCRIPTION="fast and easy graphics application for digital painters"
HOMEPAGE="http://mypaint.intilinux.com/"
SRC_URI="http://download.gna.org/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="dev-python/pygtk
dev-python/numpy
>=dev-python/pycairo-1.4
>=dev-lang/python-2.4
<dev-lang/python-3
dev-libs/protobuf[python]"
DEPEND="${RDEPEND}
>=dev-util/scons-1.0
dev-lang/swig
dev-util/pkgconfig"
src_prepare() {
# multilib support
sed -i -e "s:lib\/${PN}:$(get_libdir)\/${PN}:" "${S}"/SConstruct || die
# respect CXXFLAGS,CXX,LDFLAGS
epatch "${FILESDIR}"/${PN}-0.9.1-gentoo.patch
}
src_compile() {
#workaround scons bug with locales. Bug #352700
export LANG="en_US.UTF-8"
tc-export CXX
escons || die "scons failed"
}
src_install () {
escons prefix="${D}/usr" install || die "scons install failed"
newicon pixmaps/${PN}_logo.png ${PN}.png
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
}
|