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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Aug 9 19:18:58 2011 UTC (3 years, 2 months ago) by pva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Respect LDFLAGS, bug #334571; build with libpng-1.5, bug #378199 thank Diego Elio Pettenò for reporting both. Drop old.

(Portage version: 2.1.10.10/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.20-r1.ebuild,v 1.4 2010/01/31 18:12:40 hwoarang Exp $
4
5 EAPI="2"
6
7 inherit eutils gnome2-utils multilib toolchain-funcs
8
9 DESCRIPTION="Drawing program designed for young children"
10 HOMEPAGE="http://www.tuxpaint.org/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ppc x86"
16
17 IUSE="nls"
18
19 DEPEND="
20 app-text/libpaper
21 gnome-base/librsvg
22 >=media-libs/libpng-1.2
23 >=media-libs/freetype-2
24 media-libs/libsdl
25 media-libs/sdl-image[png]
26 media-libs/sdl-mixer
27 media-libs/sdl-pango
28 media-libs/sdl-ttf
29 x11-libs/cairo
30 nls? ( sys-devel/gettext )"
31
32 src_prepare() {
33 # Sanitize the Makefile and correct a few other issues.
34 epatch "${FILESDIR}/${P}-gentoo.patch"
35 sed -i \
36 -e "s|linux_PREFIX:=/usr/local|linux_PREFIX:=/usr|" \
37 -e "s:/lib/:/$(get_libdir)/:" \
38 -e "s:/share/doc/tuxpaint.*:/share/doc/${PF}:g" \
39 Makefile || die
40 }
41
42 src_compile() {
43 local myopts=""
44
45 use nls && myopts="${myopts} ENABLE_GETTEXT=1"
46
47 # emake may break things
48 make CC="$(tc-getCC)" ${myopts} || die "Compilation failed"
49 }
50
51 src_install () {
52 local myopts=""
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 gnome2_icon_cache_update
64
65 elog ""
66 elog "For additional graphic stamps, you can emerge the"
67 elog "media-gfx/tuxpaint-stamps package."
68 elog ""
69 }

  ViewVC Help
Powered by ViewVC 1.1.20