/[gentoo-x86]/sci-libs/cbflib/cbflib-0.8.1-r5.ebuild
Gentoo

Contents of /sci-libs/cbflib/cbflib-0.8.1-r5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Feb 7 21:01:56 2010 UTC (4 years, 5 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Its not possible to compile in parallel
(Portage version: 2.2_rc62/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/cbflib/cbflib-0.8.1-r5.ebuild,v 1.1 2010/02/06 19:35:10 jlec Exp $
4
5 EAPI="3"
6
7 inherit eutils flag-o-matic toolchain-funcs
8
9 MY_P1="CBFlib-${PV}"
10 MY_P2="CBFlib_${PV}"
11
12 DESCRIPTION="Library providing a simple mechanism for accessing CBF files and imgCIF files."
13 HOMEPAGE="http://www.bernstein-plus-sons.com/software/CBF/"
14 #BASE_TEST_URI="http://arcib.dowling.edu/software/CBFlib/downloads/version_${PV}/"
15 SRC_URI="mirror://sourceforge/${PN}/${MY_P1}.tar.gz"
16 # test? (
17 # ${BASE_TEST_URI}/${MY_P2}_Data_Files_Input.tar.gz
18 # ${BASE_TEST_URI}/${MY_P2}_Data_Files_Output.tar.gz
19 # )"
20
21 LICENSE="GPL-2"
22 SLOT="0"
23 KEYWORDS="~amd64 ~x86"
24 IUSE=""
25
26 #RDEPEND=""
27 #DEPEND="test? ( sys-process/time )"
28
29 S="${WORKDIR}/${MY_P1}"
30
31 src_prepare(){
32 cp Makefile_LINUX_gcc42 Makefile
33
34 epatch "${FILESDIR}"/${PV}-Makefile.patch
35 epatch "${FILESDIR}"/${PV}-parallel.patch
36 epatch "${FILESDIR}"/${PV}-as-needed.patch
37
38 append-fflags -fno-range-check
39 append-cflags -D_USE_XOPEN_EXTENDED
40
41 sed \
42 -e "s:^CC.*$:CC = $(tc-getCC):" \
43 -e "s:^C++.*$:C++ = $(tc-getCXX):" \
44 -e "s:C++:CXX:g" \
45 -e "s:^CFLAGS.*$:CFLAGS = ${CFLAGS}:" \
46 -e "s:^F90C.*$:F90C = $(tc-getFC):" \
47 -e "s:^F90FLAGS.*$:F90FLAGS = ${FFLAGS}:" \
48 -e "s:^SOLDFLAGS.*$:SOLDFLAGS = -shared ${LDFLAGS}:g" \
49 -e "s: /bin: ${EPREFIX}/bin:g" \
50 -e "s:/usr:${EPREFIX}/usr:g" \
51 -i Makefile || die
52 }
53
54 src_compile() {
55 emake shared || die
56 }
57
58 # test app is borked in this version
59 # produces buffer overflows
60 #src_test(){
61 # emake -j1 tests || die
62 #}
63
64 src_install() {
65 insinto /usr/include/${PN}
66 doins include/* || die
67
68 dolib.so solib/* || die
69 }

  ViewVC Help
Powered by ViewVC 1.1.20