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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Mar 31 20:25:10 2010 UTC (5 years ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
added missing linking against libm, #312357
(Portage version: 2.2_rc67/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-r6.ebuild,v 1.2 2010/03/07 17:02:20 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 ~amd64-linux ~x86-linux"
24 IUSE=""
25
26 #RDEPEND=""
27 #DEPEND="test? ( sys-process/time )"
28
29 S="${WORKDIR}/${MY_P1}"
30
31 src_prepare(){
32 epatch "${FILESDIR}"/${PV}-Makefile.patch
33 cp Makefile_LINUX_gcc42 Makefile
34
35 append-fflags -fno-range-check
36 append-cflags -D_USE_XOPEN_EXTENDED
37
38 sed \
39 -e "s:^CC.*$:CC = $(tc-getCC):" \
40 -e "s:^C++.*$:C++ = $(tc-getCXX):" \
41 -e "s:C++:CXX:g" \
42 -e "s:^CFLAGS.*$:CFLAGS = ${CFLAGS}:" \
43 -e "s:^F90C.*$:F90C = $(tc-getFC):" \
44 -e "s:^F90FLAGS.*$:F90FLAGS = ${FFLAGS}:" \
45 -e "s:^SOLDFLAGS.*$:SOLDFLAGS = -shared ${LDFLAGS}:g" \
46 -e "s: /bin: ${EPREFIX}/bin:g" \
47 -e "s:/usr:${EPREFIX}/usr:g" \
48 -i Makefile || die
49 }
50
51 src_compile() {
52 emake -j1 shared || die
53 }
54
55 # test app is borked in this version
56 # produces buffer overflows
57 #src_test(){
58 # emake -j1 tests || die
59 #}
60
61 src_install() {
62 insinto /usr/include/${PN}
63 doins include/* || die
64
65 dolib.so solib/* || die
66 }

  ViewVC Help
Powered by ViewVC 1.1.20