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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Feb 14 13:09:21 2006 UTC (8 years, 10 months ago) by leonardop
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Modified patch to avoid installing stuff under /usr/X11R6. Pruning old ebuild/patch.
(Portage version: 2.1_pre4-r1)

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.14.ebuild,v 1.5 2005/05/26 18:49:39 luckyduck Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Drawing program designed for young children"
8 HOMEPAGE="http://www.newbreedsoftware.com/tuxpaint/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="x86 ppc amd64"
14
15 IUSE="gnome kde nls"
16
17 DEPEND="media-libs/libpng
18 media-libs/sdl-ttf
19 media-libs/sdl-mixer
20 media-libs/sdl-image
21 media-libs/libsdl
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 find . -name CVS | xargs rm -rf
31 # Sanitize the Makefile and correct a few other issues.
32 epatch ${FILESDIR}/${P}-gentoo.patch
33 }
34
35 src_compile() {
36 local myopts=""
37
38 use nls && myopts="${myopts} ENABLE_GETTEXT=1"
39
40 # emake may break things
41 make ${myopts} || die
42 }
43
44 src_install () {
45 local myopts=""
46
47 use gnome && myopts="${myopts} GNOME_PREFIX=${D}/usr"
48
49 if use kde; then
50 myopts="${myopts} \
51 KDE_PREFIX=${D}/usr/share/applnk \
52 KDE_ICON_PREFIX=${D}/usr/share/icons"
53 fi
54
55 use nls && myopts="${myopts} ENABLE_GETTEXT=1"
56
57 make PREFIX="${D}/usr" ${myopts} install || die
58
59 rm docs/COPYING.txt docs/INSTALL.txt
60 dodoc docs/*.txt
61 }
62
63 pkg_postinst() {
64 einfo ""
65 einfo "For additional graphic stamps, you can emerge the"
66 einfo "media-gfx/tuxpaint-stamps package."
67 einfo ""
68 }

  ViewVC Help
Powered by ViewVC 1.1.20