summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2010-01-15 21:34:49 +0000
committerPeter Volkov <pva@gentoo.org>2010-01-15 21:34:49 +0000
commit32b793b34104c5a8ed402adb32360c9e1583473d (patch)
tree0df4ceca8bb4c3b971bafc6cc5f6552476bb6f3f /media-gfx/tuxpaint/tuxpaint-0.9.21.ebuild
parentTransfer Prefix keywords (diff)
downloadgentoo-2-32b793b34104c5a8ed402adb32360c9e1583473d.tar.gz
gentoo-2-32b793b34104c5a8ed402adb32360c9e1583473d.tar.bz2
gentoo-2-32b793b34104c5a8ed402adb32360c9e1583473d.zip
Version bump.
(Portage version: 2.1.7.16/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/tuxpaint/tuxpaint-0.9.21.ebuild')
-rw-r--r--media-gfx/tuxpaint/tuxpaint-0.9.21.ebuild64
1 files changed, 64 insertions, 0 deletions
diff --git a/media-gfx/tuxpaint/tuxpaint-0.9.21.ebuild b/media-gfx/tuxpaint/tuxpaint-0.9.21.ebuild
new file mode 100644
index 000000000000..fdc95f9b91fb
--- /dev/null
+++ b/media-gfx/tuxpaint/tuxpaint-0.9.21.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/tuxpaint/tuxpaint-0.9.21.ebuild,v 1.1 2010/01/15 21:34:49 pva Exp $
+
+EAPI="2"
+
+inherit eutils gnome2-utils multilib toolchain-funcs
+
+DESCRIPTION="Drawing program designed for young children"
+HOMEPAGE="http://www.tuxpaint.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+IUSE="nls"
+
+DEPEND="
+ app-text/libpaper
+ dev-libs/fribidi
+ gnome-base/librsvg
+ >=media-libs/libpng-1.2
+ >=media-libs/freetype-2
+ media-libs/libsdl
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer
+ media-libs/sdl-pango
+ media-libs/sdl-ttf
+ x11-libs/cairo
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ # Sanitize the Makefile and correct a few other issues.
+ epatch "${FILESDIR}/${PN}-0.9.20-gentoo.patch"
+ sed -i \
+ -e "s|linux_PREFIX:=/usr/local|linux_PREFIX:=/usr|" \
+ -e "s:/lib/:/$(get_libdir)/:" \
+ -e "s:/share/doc/tuxpaint.*:/share/doc/${PF}:g" \
+ Makefile || die
+}
+
+src_compile() {
+ # emake may break things
+ make CC="$(tc-getCC)" \
+ $(use nls && echo ENABLE_GETTEXT=1) || die "Compilation failed"
+}
+
+src_install () {
+ make PKG_ROOT="${D}" \
+ $(use nls && echo ENABLE_GETTEXT=1) install || die "Installation failed"
+
+ rm -f docs/COPYING.txt docs/INSTALL.txt
+ dodoc docs/*.txt
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+
+ elog ""
+ elog "For additional graphic stamps, you can emerge the"
+ elog "media-gfx/tuxpaint-stamps package."
+ elog ""
+}