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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Nov 24 01:48:43 2004 UTC (10 years, 1 month ago) by leonardop
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Removed old ebuild. New revision, should fix bug #42971.

1 # Copyright 1999-2004 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.12.ebuild,v 1.7 2004/06/24 22:51:12 agriffis Exp $
4
5 DESCRIPTION="Drawing program designed for young children (kids ages 3 and up)"
6 HOMEPAGE="http://www.newbreedsoftware.com/tuxpaint/"
7
8 DEPEND="media-libs/libpng
9 media-libs/sdl-ttf
10 media-libs/sdl-mixer
11 media-libs/sdl-image
12 media-libs/libsdl
13 >=media-libs/freetype-2
14 media-libs/netpbm
15 sys-devel/gettext"
16
17 IUSE="gnome kde"
18 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
19 SLOT="0"
20 LICENSE="GPL-2"
21 KEYWORDS="x86"
22
23 src_compile() {
24 sed -i "s:^PREFIX=.*:PREFIX=/usr:" Makefile
25 sed -i "s:^ CONFDIR=.*: CONFDIR=/etc/tuxpaint:" Makefile
26 sed -i "s/^CFLAGS=.*/CFLAGS=${CFLAGS}/" Makefile
27 sed -i "s/^SDL_LIBS=/SDL_LIBS:=-lSDL_mixer /" Makefile
28 sed -i "s/^SDL_CFLAGS=/SDL_CFLAGS:=/" Makefile
29
30 if use gnome
31 then
32 sed -i "s:^GNOME_PREFIX=:GNOME_PREFIX=${D}:" Makefile
33 else
34 sed -i "s:^GNOME_PREFIX=.*:GNOME_PREFIX=:" Makefile
35 fi
36
37 if use kde
38 then
39 sed -i "s:^KDE_PREFIX=:KDE_PREFIX=${D}:" Makefile
40 sed -i "s:^KDE_ICON_PREFIX=:KDE_ICON_PREFIX=${D}:" Makefile
41 else
42 sed -i "s:^KDE_PREFIX=.*:KDE_PREFIX=:" Makefile
43 sed -i "s:^KDE_ICON_PREFIX=.*:KDE_ICON_PREFIX=:" Makefile
44 fi
45
46 # emake can cause some grief at this point..
47 make || die
48 }
49
50 src_install () {
51 sed -i "s:^PREFIX=.*:PREFIX=${D}usr:" Makefile
52 sed -i "s:^ CONFDIR=.*: CONFDIR=${D}etc/tuxpaint:" Makefile
53 sed -i 's:make install-gnome.*:echo " Nothing to install"; \\:' Makefile
54
55 dodir /usr/bin
56 use kde && dodir /usr/kde/3.1/share/applnk/Graphics \
57 /usr/kde/3.1/share/icons/hicolor/48x48/apps \
58 /usr/kde/3.1/share/icons/hicolor/32x32/apps \
59 /usr/kde/3.1/share/icons/hicolor/16x16/apps
60
61 make install || die
62
63 rm docs/INSTALL.txt
64 dodoc docs/*.txt
65 }

  ViewVC Help
Powered by ViewVC 1.1.20