blob: a3bef58406f822142c6fa63c4c0b4d12a2c6b791 (
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
58
59
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
inherit eutils multilib
DESCRIPTION="Stanford GraphBase"
HOMEPAGE="ftp://labrea.stanford.edu/pub/sgb/"
SRC_URI="ftp://labrea.stanford.edu/pub/sgb/sgb-${PV:0:4}-${PV:4:2}-${PV:6:2}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
IUSE=""
DEPEND="|| ( >=dev-util/cweb-3.00 virtual/tex-base )"
S="${WORKDIR}"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}"/sgb-20030623-parallel-make-fix.patch
epatch "${FILESDIR}"/sgb-20030623-destdir.patch
}
src_compile() {
# bug #299028
emake -j1 \
CFLAGS="${CFLAGS}" \
SGBDIR=/usr/share/${PN} \
INCLUDEDIR=/usr/include/sgb \
LIBDIR=/usr/$(get_libdir) \
BINDIR=/usr/bin \
CFLAGS="${CFLAGS}" \
lib demos tests || die "Failed to build"
#CWEBINPUTS=/usr/share/${PN}/cweb \
#LDFLAGS="${LDFLAGS}" \
}
src_install() {
dodir /usr/share/${PN} /usr/include/sgb /usr/lib /usr/bin /usr/share/${PN}/cweb
emake \
DESTDIR="${D}" \
SGBDIR=/usr/share/${PN} \
INCLUDEDIR=/usr/include/sgb \
LIBDIR=/usr/$(get_libdir) \
BINDIR=/usr/bin \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" \
CWEBINPUTS=/usr/share/${PN}/cweb \
install \
|| die "Failed to install"
# we don't need no makefile
rm "${D}"/usr/include/sgb/Makefile
dodoc ERRATA README
}
src_test() {
emake tests
}
|