/[gentoo-x86]/media-gfx/tuxpaint/tuxpaint-0.9.20.ebuild
Gentoo

Contents of /media-gfx/tuxpaint/tuxpaint-0.9.20.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Jan 31 21:54:53 2010 UTC (4 years, 6 months ago) by maekke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.2_rc62/cvs/Linux i686)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/tuxpaint/tuxpaint-0.9.20.ebuild,v 1.4 2009/03/19 14:10:45 ranger Exp $
4
5 EAPI="2"
6
7 inherit eutils gnome2-utils multilib toolchain-funcs
8
9 DESCRIPTION="Drawing program designed for young children"
10 HOMEPAGE="http://www.tuxpaint.org/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ppc x86"
16
17 IUSE="nls"
18
19 DEPEND="
20 app-text/libpaper
21 gnome-base/librsvg
22 >=media-libs/libpng-1.2
23 >=media-libs/freetype-2
24 media-libs/libsdl
25 media-libs/sdl-image[png]
26 media-libs/sdl-mixer
27 media-libs/sdl-pango
28 media-libs/sdl-ttf
29 x11-libs/cairo
30 nls? ( sys-devel/gettext )"
31
32 src_prepare() {
33 # Sanitize the Makefile and correct a few other issues.
34 epatch "${FILESDIR}/${P}-gentoo.patch"
35 sed -i -e "s|linux_PREFIX:=/usr/local|linux_PREFIX:=/usr|" Makefile || die
36
37 # Make multilib-strict compliant, see bug #200740
38 sed -i -e "s:/lib/:/$(get_libdir)/:" Makefile || die
39 }
40
41 src_compile() {
42 local myopts=""
43
44 use nls && myopts="${myopts} ENABLE_GETTEXT=1"
45
46 # emake may break things
47 make CC="$(tc-getCC)" ${myopts} || die "Compilation failed"
48 }
49
50 src_install () {
51 local myopts=""
52
53 use nls && myopts="${myopts} ENABLE_GETTEXT=1"
54
55 make PKG_ROOT="${D}" ${myopts} install || die "Installation failed"
56
57 rm -f docs/COPYING.txt docs/INSTALL.txt
58 dodoc docs/*.txt
59 }
60
61 pkg_postinst() {
62 gnome2_icon_cache_update
63
64 elog ""
65 elog "For additional graphic stamps, you can emerge the"
66 elog "media-gfx/tuxpaint-stamps package."
67 elog ""
68 }

  ViewVC Help
Powered by ViewVC 1.1.20