/[gentoo-x86]/dev-util/sgb/sgb-20030623.ebuild
Gentoo

Contents of /dev-util/sgb/sgb-20030623.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Thu Jun 7 21:47:16 2012 UTC (2 years, 3 months ago) by zmedico
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +3 -3 lines
inherit multilib for get_libdir

(Portage version: 2.2.0_alpha110/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/sgb/sgb-20030623.ebuild,v 1.9 2010/01/05 23:43:04 flameeyes Exp $
4
5 inherit eutils multilib
6
7 DESCRIPTION="Stanford GraphBase"
8 HOMEPAGE="ftp://labrea.stanford.edu/pub/sgb/"
9 SRC_URI="ftp://labrea.stanford.edu/pub/sgb/sgb-${PV:0:4}-${PV:4:2}-${PV:6:2}.tar.gz"
10 LICENSE="BSD"
11 SLOT="0"
12 KEYWORDS="~amd64 ~ppc x86"
13 IUSE=""
14 DEPEND="|| ( >=dev-util/cweb-3.00 virtual/tex-base )"
15 S="${WORKDIR}"
16
17 src_unpack() {
18 unpack ${A}
19 epatch "${FILESDIR}"/sgb-20030623-parallel-make-fix.patch
20 epatch "${FILESDIR}"/sgb-20030623-destdir.patch
21 }
22
23 src_compile() {
24 # bug #299028
25 emake -j1 \
26 CFLAGS="${CFLAGS}" \
27 SGBDIR=/usr/share/${PN} \
28 INCLUDEDIR=/usr/include/sgb \
29 LIBDIR=/usr/$(get_libdir) \
30 BINDIR=/usr/bin \
31 CFLAGS="${CFLAGS}" \
32 lib demos tests || die "Failed to build"
33 #CWEBINPUTS=/usr/share/${PN}/cweb \
34 #LDFLAGS="${LDFLAGS}" \
35 }
36
37 src_install() {
38 dodir /usr/share/${PN} /usr/include/sgb /usr/lib /usr/bin /usr/share/${PN}/cweb
39 emake \
40 DESTDIR="${D}" \
41 SGBDIR=/usr/share/${PN} \
42 INCLUDEDIR=/usr/include/sgb \
43 LIBDIR=/usr/$(get_libdir) \
44 BINDIR=/usr/bin \
45 CFLAGS="${CFLAGS}" \
46 LDFLAGS="${LDFLAGS}" \
47 CWEBINPUTS=/usr/share/${PN}/cweb \
48 install \
49 || die "Failed to install"
50
51 # we don't need no makefile
52 rm "${D}"/usr/include/sgb/Makefile
53
54 dodoc ERRATA README
55 }
56
57 src_test() {
58 emake tests
59 }

  ViewVC Help
Powered by ViewVC 1.1.20