summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2010-12-31 16:51:18 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2010-12-31 16:51:18 +0000
commit75e7c9a6b108f75e0ff72d9c8d62d5d8be9d5f5a (patch)
tree24503eb22f3199a98dbf0c7a7d710052dda72f6b /media-gfx/mypaint
parentReplace patches (that should have been applied unconditionally anyway and do ... (diff)
downloadgentoo-2-75e7c9a6b108f75e0ff72d9c8d62d5d8be9d5f5a.tar.gz
gentoo-2-75e7c9a6b108f75e0ff72d9c8d62d5d8be9d5f5a.tar.bz2
gentoo-2-75e7c9a6b108f75e0ff72d9c8d62d5d8be9d5f5a.zip
Ebuild moved from sunrise overlay. Thanks to Arne Babenhauserheide ,Mike Limansky and Mike Frysinger. Bug #197672
(Portage version: 2.1.9.26/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/mypaint')
-rw-r--r--media-gfx/mypaint/ChangeLog12
-rw-r--r--media-gfx/mypaint/files/mypaint-0.9.0-gentoo.patch26
-rw-r--r--media-gfx/mypaint/metadata.xml12
-rw-r--r--media-gfx/mypaint/mypaint-0.9.0.ebuild43
4 files changed, 93 insertions, 0 deletions
diff --git a/media-gfx/mypaint/ChangeLog b/media-gfx/mypaint/ChangeLog
new file mode 100644
index 000000000000..e36eb82f9ba6
--- /dev/null
+++ b/media-gfx/mypaint/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for media-gfx/mypaint
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/mypaint/ChangeLog,v 1.1 2010/12/31 16:51:18 hwoarang Exp $
+
+*mypaint-0.9.0 (31 Dec 2010)
+
+ 31 Dec 2010; Markos Chandras <hwoarang@gentoo.org> +mypaint-0.9.0.ebuild,
+ +files/mypaint-0.9.0-gentoo.patch, +metadata.xml:
+ Ebuild moved from sunrise overlay. Thanks to Arne Babenhauserheide (ArneBab)
+ <arne_bab@web.de> and Mike Limansky <limanski@narod.ru>. Thanks to Mike
+ Frysinger for the scons build system shiny code. Bug #197672
+
diff --git a/media-gfx/mypaint/files/mypaint-0.9.0-gentoo.patch b/media-gfx/mypaint/files/mypaint-0.9.0-gentoo.patch
new file mode 100644
index 000000000000..329c8a981e6f
--- /dev/null
+++ b/media-gfx/mypaint/files/mypaint-0.9.0-gentoo.patch
@@ -0,0 +1,26 @@
+Index: mypaint-0.9.0/SConstruct
+===================================================================
+--- mypaint-0.9.0.orig/SConstruct
++++ mypaint-0.9.0/SConstruct
+@@ -64,6 +64,21 @@ if env['debug']:
+ env.Append(CPPDEFINES='HEAVY_DEBUG')
+ env.Append(CCFLAGS='-O0', LINKFLAGS='-O0')
+
++# Respect cxxflags,ldflags and cxx
++# Code found on
++# http://http://dev.gentoo.org/~vapier/scons-blows.txt
++import SCons.Util
++if os.environ.has_key('CC'):
++ env['CC'] = os.environ['CC']
++if os.environ.has_key('CFLAGS'):
++ env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS'])
++if os.environ.has_key('CXX'):
++ env['CXX'] = os.environ['CXX']
++if os.environ.has_key('CXXFLAGS'):
++ env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS'])
++if os.environ.has_key('LDFLAGS'):
++ env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS'])
++
+ Export('env')
+ module = SConscript('lib/SConscript')
+ SConscript('brushlib/SConscript')
diff --git a/media-gfx/mypaint/metadata.xml b/media-gfx/mypaint/metadata.xml
new file mode 100644
index 000000000000..87afd6e36004
--- /dev/null
+++ b/media-gfx/mypaint/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+<email>hwoarang@gentoo.org</email>
+<name>Markos Chandras</name>
+</maintainer>
+<longdescription lang="en">
+</longdescription>
+</pkgmetadata>
+
diff --git a/media-gfx/mypaint/mypaint-0.9.0.ebuild b/media-gfx/mypaint/mypaint-0.9.0.ebuild
new file mode 100644
index 000000000000..6603c9e09e58
--- /dev/null
+++ b/media-gfx/mypaint/mypaint-0.9.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/mypaint/mypaint-0.9.0.ebuild,v 1.1 2010/12/31 16:51:18 hwoarang Exp $
+
+EAPI=2
+
+inherit eutils 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"
+
+src_prepare() {
+ # multilib support
+ sed -i -e "s:lib\/${PN}:$(get_libdir)\/${PN}:" "${S}"/SConstruct || die
+ # respect CXXFLAGS,CXX,LDFLAGS
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+}
+
+src_compile() {
+ tc-export CXX
+ escons || die "scons failed"
+}
+
+src_install () {
+ escons prefix="${D}/usr" install || die "scons install failed"
+ doicon desktop/mypaint_48.png
+}