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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Mar 19 19:01:01 2009 UTC (5 years ago) by maekke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.2_rc26/cvs/Linux i686)

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

  ViewVC Help
Powered by ViewVC 1.1.20