diff options
author | Maxim Koltsov <maksbotan@gentoo.org> | 2011-12-05 08:49:15 +0000 |
---|---|---|
committer | Maxim Koltsov <maksbotan@gentoo.org> | 2011-12-05 08:49:15 +0000 |
commit | 0d582aeed7bbe7c6d55acabac0d8ed83c4ca60b5 (patch) | |
tree | 77d5d38ea081a357ad3b6a51154d4c7776559c23 /media-gfx/mypaint | |
parent | change HOMEPAGE (diff) | |
download | gentoo-2-0d582aeed7bbe7c6d55acabac0d8ed83c4ca60b5.tar.gz gentoo-2-0d582aeed7bbe7c6d55acabac0d8ed83c4ca60b5.tar.bz2 gentoo-2-0d582aeed7bbe7c6d55acabac0d8ed83c4ca60b5.zip |
Revision bump, port to python.eclass
(Portage version: 2.1.10.39/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/mypaint')
-rw-r--r-- | media-gfx/mypaint/ChangeLog | 8 | ||||
-rw-r--r-- | media-gfx/mypaint/mypaint-1.0.0-r1.ebuild | 64 |
2 files changed, 71 insertions, 1 deletions
diff --git a/media-gfx/mypaint/ChangeLog b/media-gfx/mypaint/ChangeLog index fbefeb946c0b..c71e29a9fdfa 100644 --- a/media-gfx/mypaint/ChangeLog +++ b/media-gfx/mypaint/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-gfx/mypaint # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/mypaint/ChangeLog,v 1.11 2011/12/04 21:19:59 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/mypaint/ChangeLog,v 1.12 2011/12/05 08:49:15 maksbotan Exp $ + +*mypaint-1.0.0-r1 (05 Dec 2011) + + 05 Dec 2011; Maxim Koltsov <maksbotan@gentoo.org> +mypaint-1.0.0-r1.ebuild: + Ported to python.eclass, dropped python dependecy, dropped scons dependency + (set by scons-utils.eclass) 04 Dec 2011; Markos Chandras <hwoarang@gentoo.org> mypaint-1.0.0.ebuild: Add missing pkgconfig dependency. Bug #393165 diff --git a/media-gfx/mypaint/mypaint-1.0.0-r1.ebuild b/media-gfx/mypaint/mypaint-1.0.0-r1.ebuild new file mode 100644 index 000000000000..20903b958ddc --- /dev/null +++ b/media-gfx/mypaint/mypaint-1.0.0-r1.ebuild @@ -0,0 +1,64 @@ +# 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-r1.ebuild,v 1.1 2011/12/05 08:49:15 maksbotan Exp $ + +EAPI=4 + +PYTHON_DEPEND="2:2.4" + +inherit eutils fdo-mime gnome2-utils multilib scons-utils toolchain-funcs python + +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-libs/protobuf[python]" +DEPEND="${RDEPEND} + dev-lang/swig + dev-util/pkgconfig" + +pkg_setup(){ + python_set_active_version 2 +} + +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 + python_mod_optimize /usr/share/${PN} +} + +pkg_postrm() { + fdo-mime_desktop_database_update + python_mod_cleanup /usr/share/${PN} +} |