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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Tue Apr 19 09:09:57 2005 UTC (9 years, 4 months ago) by leonardop
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Marking 0.9.14 stable (x86). Removing old ebuild.
(Portage version: 2.0.51.19)

1 # Copyright 1999-2005 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.13-r1.ebuild,v 1.6 2005/03/23 17:22:13 mr_bones_ Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Drawing program designed for young children"
8 HOMEPAGE="http://www.newbreedsoftware.com/tuxpaint/"
9
10 DEPEND="media-libs/libpng
11 media-libs/sdl-ttf
12 media-libs/sdl-mixer
13 media-libs/sdl-image
14 media-libs/libsdl
15 >=media-libs/freetype-2
16 media-libs/netpbm
17 nls? ( sys-devel/gettext )"
18
19 IUSE="gnome kde nls"
20 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
21 mirror://gentoo/${P}-makefile.patch"
22
23 SLOT="0"
24 LICENSE="GPL-2"
25 KEYWORDS="x86 ~ppc ~amd64"
26
27 src_unpack() {
28 unpack ${P}.tar.gz
29 cd ${S}
30
31 # Sanitize the hack that is its Makefile
32 epatch ${DISTDIR}/${P}-makefile.patch
33 # Remove outdated error directives that break compilation. See bug #82598.
34 epatch ${FILESDIR}/${P}-fix_error_directives.patch
35 }
36
37 src_compile() {
38 local myopts=""
39
40 use nls && myopts="${myopts} ENABLE_GETTEXT=1"
41
42 # emake may break things
43 make ${myopts} || die
44 }
45
46 src_install () {
47 local myopts=""
48
49 use gnome && myopts="${myopts} GNOME_PREFIX=/usr"
50
51 if use kde && which kde-config ; then
52 myopts="${myopts} \
53 KDE_PREFIX=/usr/share/applnk \
54 KDE_ICON_PREFIX=/usr/share/icons"
55 fi
56
57 use nls && myopts="${myopts} ENABLE_GETTEXT=1"
58
59 make DESTDIR=${D} ${myopts} install || die
60
61 rm docs/INSTALL.txt
62 dodoc docs/*.txt
63 }

  ViewVC Help
Powered by ViewVC 1.1.20