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

Contents of /media-gfx/tuxpaint/tuxpaint-0.9.17-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Nov 8 14:34:36 2008 UTC (5 years, 10 months ago) by maekke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.2_rc13/cvs/Linux 2.6.26.7 x86_64)

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.17-r1.ebuild,v 1.5 2008/11/04 01:36:57 jmbsvicetto Exp $
4
5 inherit eutils gnome2-utils
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/libpng-1.2
22 >=media-libs/freetype-2
23 app-text/libpaper
24 nls? ( sys-devel/gettext )
25 svg? (
26 gnome-base/librsvg
27 x11-libs/cairo )"
28
29 src_unpack() {
30 unpack ${A}
31 cd "${S}"
32
33 # Sanitize the Makefile and correct a few other issues.
34 epatch "${FILESDIR}"/${P}-gentoo.patch
35
36 # Fix printing on localised systems (bug #191987)
37 epatch "${FILESDIR}"/${P}-printing.patch
38 }
39
40 src_compile() {
41 local myopts=""
42
43 use nls && myopts="${myopts} ENABLE_GETTEXT=1"
44 use svg || myopts="${myopts} nosvg"
45
46 # emake may break things
47 make ${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