summaryrefslogtreecommitdiff
blob: 6ddd7777d7bf1fe513c0aafff5ed49b31c816564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"

inherit eutils autotools

DESCRIPTION="Simple paint program inspired by MS Paint"
HOMEPAGE="https://launchpad.net/gnome-paint"
SRC_URI="https://launchpad.net/gnome-paint/trunk/0.4.0/+download/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND=">=x11-libs/gtk+-2.16:2"
DEPEND="${RDEPEND}
	>=dev-util/intltool-0.35"

src_prepare() {
	epatch "${FILESDIR}"/${P}-libm.patch
	epatch "${FILESDIR}"/${P}-crash-get_gtk_image.patch

	eautoreconf
}

src_install() {
	emake DESTDIR="${D}" install || die

	# Resolve non-FHS /usr/doc/
	dodir /usr/share/doc/ || die
	mv "${D}"/usr/{,share/}doc/gnome-paint || die
	rmdir "${D}"/usr/doc/ || die

	# Remove .xpms installed to /usr/include/
	rm -R "${D}"/usr/include/ || die
}