summaryrefslogtreecommitdiff
blob: 54c8d8d2dca8477205ba03a748f5c6d6b6d23ea7 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/cifparse-obj/cifparse-obj-6.302.ebuild,v 1.3 2006/09/26 07:59:45 dberkholz Exp $

inherit eutils toolchain-funcs

MY_P="${PN}-v${PV}-prod-src"
DESCRIPTION="Provides an object-oriented application interface to information in mmCIF format"
HOMEPAGE="http://sw-tools.pdb.org/apps/CIFPARSE-OBJ/index.html"
SRC_URI="http://sw-tools.pdb.org/apps/CIFPARSE-OBJ/${MY_P}.tar.gz"
LICENSE="PDB"
SLOT="0"
KEYWORDS="ppc x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"

src_unpack() {
	unpack ${A}
	epatch ${FILESDIR}/respect-flags-and-add-gcc4.patch
	cd ${S}

	sed -i \
		-e "s:^\(CCC=\).*:\1$(tc-getCXX):g" \
		${S}/etc/make.*
}

src_compile() {
	emake || die "make failed"
}

src_install() {
	dolib.a lib/*
	insinto /usr/include/rcsb
	doins include/*
}