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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Oct 15 14:46:32 2011 UTC (2 years, 6 months ago) by xarthisius
Branch: MAIN
Changes since 1.3: +2 -2 lines
ppc stable wrt #385915

(Portage version: 2.2.0_alpha63/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-r1.ebuild,v 1.3 2011/10/08 16:37:10 phajdan.jr 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 RDEPEND="
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
32 DEPEND="
33 ${RDEPEND}
34 nls? ( sys-devel/gettext )"
35
36 src_prepare() {
37 # Sanitize the Makefile and correct a few other issues.
38 epatch "${FILESDIR}/${PN}-0.9.20-gentoo.patch"
39 epatch "${FILESDIR}/${P}-libpng1.5.patch" #378199
40 epatch "${FILESDIR}/${P}-LDFLAGS.patch" #334571
41
42 sed -i \
43 -e "s|linux_PREFIX:=/usr/local|linux_PREFIX:=/usr|" \
44 -e "s:/lib/:/$(get_libdir)/:" \
45 -e "s:/share/doc/tuxpaint.*:/share/doc/${PF}:g" \
46 Makefile || die
47 }
48
49 src_compile() {
50 # emake may break things
51 make CC="$(tc-getCC)" \
52 $(use nls && echo ENABLE_GETTEXT=1) || die "Compilation failed"
53 }
54
55 src_install () {
56 make PKG_ROOT="${D}" \
57 $(use nls && echo ENABLE_GETTEXT=1) install || die "Installation failed"
58
59 rm -f docs/COPYING.txt docs/INSTALL.txt
60 dodoc docs/*.txt
61 }
62
63 pkg_postinst() {
64 gnome2_icon_cache_update
65
66 elog ""
67 elog "For additional graphic stamps, you can emerge the"
68 elog "media-gfx/tuxpaint-stamps package."
69 elog ""
70 }

  ViewVC Help
Powered by ViewVC 1.1.20