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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Aug 7 03:15:54 2007 UTC (7 years, 4 months ago) by leonardop
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
New release: 0.9.17 (bug #187918)
(Portage version: 2.1.3_rc9)

1 # Copyright 1999-2007 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.16.ebuild,v 1.3 2007/07/12 04:08:47 mr_bones_ Exp $
4
5 inherit eutils
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="gnome kde nls"
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 media-libs/netpbm
24 nls? ( sys-devel/gettext )"
25
26 src_unpack() {
27 unpack "${A}"
28 cd "${S}"
29
30 # Sanitize the Makefile and correct a few other issues.
31 epatch "${FILESDIR}"/${P}-gentoo.patch
32 }
33
34 src_compile() {
35 local myopts=""
36
37 use nls && myopts="${myopts} ENABLE_GETTEXT=1"
38
39 # emake may break things
40 make ${myopts} || die "Compilation failed"
41 }
42
43 src_install () {
44 local myopts=""
45
46 use gnome && myopts="${myopts} GNOME_PREFIX=/usr"
47
48 if use kde; then
49 myopts="${myopts} \
50 KDE_PREFIX=/usr/share/applnk \
51 KDE_ICON_PREFIX=/usr/share/icons"
52 fi
53
54 use nls && myopts="${myopts} ENABLE_GETTEXT=1"
55
56 make PKG_ROOT="${D}" ${myopts} install || die "Installation failed"
57
58 rm -f docs/COPYING.txt docs/INSTALL.txt
59 dodoc docs/*.txt
60 }
61
62 pkg_postinst() {
63 elog ""
64 elog "For additional graphic stamps, you can emerge the"
65 elog "media-gfx/tuxpaint-stamps package."
66 elog ""
67 }

  ViewVC Help
Powered by ViewVC 1.1.20