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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Oct 29 20:08:33 2011 UTC (2 years, 8 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha71_p73/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.21.ebuild,v 1.4 2011/07/09 15:50:35 xarthisius 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 dev-libs/fribidi
22 gnome-base/librsvg
23 >=media-libs/libpng-1.2
24 >=media-libs/freetype-2
25 media-libs/libsdl
26 media-libs/sdl-image[png]
27 media-libs/sdl-mixer
28 media-libs/sdl-pango
29 media-libs/sdl-ttf
30 x11-libs/cairo
31 nls? ( sys-devel/gettext )"
32
33 src_prepare() {
34 # Sanitize the Makefile and correct a few other issues.
35 epatch "${FILESDIR}/${PN}-0.9.20-gentoo.patch"
36 sed -i \
37 -e "s|linux_PREFIX:=/usr/local|linux_PREFIX:=/usr|" \
38 -e "s:/lib/:/$(get_libdir)/:" \
39 -e "s:/share/doc/tuxpaint.*:/share/doc/${PF}:g" \
40 Makefile || die
41 }
42
43 src_compile() {
44 # emake may break things
45 make CC="$(tc-getCC)" \
46 $(use nls && echo ENABLE_GETTEXT=1) || die "Compilation failed"
47 }
48
49 src_install () {
50 make PKG_ROOT="${D}" \
51 $(use nls && echo ENABLE_GETTEXT=1) install || die "Installation failed"
52
53 rm -f docs/COPYING.txt docs/INSTALL.txt
54 dodoc docs/*.txt
55 }
56
57 pkg_postinst() {
58 gnome2_icon_cache_update
59
60 elog ""
61 elog "For additional graphic stamps, you can emerge the"
62 elog "media-gfx/tuxpaint-stamps package."
63 elog ""
64 }

  ViewVC Help
Powered by ViewVC 1.1.20