blob: 705e8d33509a58db75223084c7c123b029aefe05 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/gts/gts-0.7.6.ebuild,v 1.5 2008/04/22 08:21:31 bicatali Exp $
inherit eutils
DESCRIPTION="GNU Triangulated Surface Library"
LICENSE="LGPL-2"
HOMEPAGE="http://gts.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="doc"
RDEPEND=">=dev-libs/glib-2.4.0
sys-apps/gawk"
DEPEND="${RDEPEND}
sys-devel/libtool
dev-util/pkgconfig"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-include-fix.patch
}
src_compile() {
econf || die "Configure failed"
emake || die "Make failed"
}
src_install() {
make DESTDIR="${D}" install || die "Install failed"
dodoc AUTHORS ChangeLog NEWS README THANKS TODO
# fix up examples
sed -e "s:/var/tmp/portage/gts-0.7.6/work/gts-0.7.6/:/usr/share/gts/:g" \
-e "s:../src/.libs/libgts.so:/usr/lib/libgts.so:g" \
-i examples/* || \
die "Failed to fix-up example scripts"
# install examples
insinto /usr/share/${PN}/examples
doins examples/* || die "Failed to install examples"
# install additional docs
if use doc; then
dohtml doc/html/*
fi
}
|