summaryrefslogtreecommitdiff
blob: 6932290d93e7a5b0035f7ea8f74dd5cdbd0377cf (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="5"

inherit eutils

DESCRIPTION="smooth Class Library"
HOMEPAGE="http://www.smooth-project.org/"
SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.zip"

LICENSE="Artistic-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="
	dev-libs/atk
	dev-libs/fribidi
	dev-libs/glib:*
	dev-libs/libxml2
	media-libs/fontconfig
	media-libs/freetype
	media-libs/libpng:*
	sys-devel/gcc:*[cxx]
	sys-libs/zlib
	virtual/jpeg:*
	x11-libs/cairo
	x11-libs/gdk-pixbuf
	x11-libs/gtk+:2
	x11-libs/libX11
	x11-libs/libXmu
	x11-libs/libXt
	x11-libs/pango
	"
DEPEND="${RDEPEND}"

DOCS=( ChangeLog ToDo.xml )

src_prepare() {
	epatch "${FILESDIR}"/${P}-compile-flags.patch
	epatch "${FILESDIR}"/${P}-destdir.patch
	epatch "${FILESDIR}"/${P}-ldconfig.patch
	epatch "${FILESDIR}"/${P}-no-uninstall.patch
}

src_compile() {
	emake
	emake -C tools/translator
}

src_install() {
	emake DESTDIR="${D}" PREFIX=/usr install

	insinto /usr/share/${PF}/
	doins -r doc samples tutorial
}