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

Contents of /sci-libs/cbflib/cbflib-0.9.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Jul 5 11:36:51 2010 UTC (4 years ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Don't install obj files #326933; add python support
(Portage version: 2.2_rc67/cvs/Linux x86_64, RepoMan options: --force)

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.9.0.ebuild,v 1.3 2010/07/03 08:18:45 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}_14Feb10.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 rm -rf Py*
33 epatch "${FILESDIR}"/${PV}-Makefile.patch
34 cp Makefile_LINUX_gcc42 Makefile
35
36 append-fflags -fno-range-check
37 append-cflags -D_USE_XOPEN_EXTENDED
38
39 sed \
40 -e "s:^CC.*$:CC = $(tc-getCC):" \
41 -e "s:^C++.*$:C++ = $(tc-getCXX):" \
42 -e "s:C++:CXX:g" \
43 -e "s:^CFLAGS.*$:CFLAGS = ${CFLAGS}:" \
44 -e "s:^F90C.*$:F90C = $(tc-getFC):" \
45 -e "s:^F90FLAGS.*$:F90FLAGS = ${FFLAGS}:" \
46 -e "s:^SOLDFLAGS.*$:SOLDFLAGS = -shared ${LDFLAGS}:g" \
47 -e "s: /bin: ${EPREFIX}/bin:g" \
48 -e "s:/usr:${EPREFIX}/usr:g" \
49 -i Makefile || die
50 }
51
52 src_compile() {
53 emake -j1 shared || die
54 }
55
56 # test app is borked in this version
57 # produces buffer overflows
58 #src_test(){
59 # emake -j1 tests || die
60 #}
61
62 src_install() {
63 insinto /usr/include/${PN}
64 doins include/* || die
65
66 dolib.so solib/* || die
67 }

  ViewVC Help
Powered by ViewVC 1.1.20