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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Dec 4 11:17:42 2012 UTC (21 months, 2 weeks ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
Stable for x86, wrt bug #440368

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2012 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.2.4.ebuild,v 1.5 2012/11/01 11:50:45 blueness Exp $
4
5 EAPI=4
6
7 inherit eutils flag-o-matic fortran-2 toolchain-funcs
8
9 MY_P1="CBFlib-${PV}"
10 #MY_P2="CBFlib_${PV}"
11 MY_P2="CBFlib_0.9.3"
12
13 DESCRIPTION="Library providing a simple mechanism for accessing CBF files and imgCIF files"
14 HOMEPAGE="http://www.bernstein-plus-sons.com/software/CBF/"
15 BASE_TEST_URI="http://arcib.dowling.edu/software/CBFlib/downloads/version_${PV}/"
16 SRC_URI="mirror://sourceforge/${PN}/${MY_P1}.tar.gz"
17 # test? (
18 # mirror://sourceforge/${PN}/${MY_P2}_Data_Files_Input.tar.gz
19 # mirror://sourceforge/${PN}/${MY_P2}_Data_Files_Output.tar.gz
20 # )"
21
22 LICENSE="GPL-2"
23 SLOT="0"
24 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
25 IUSE="doc test"
26
27 S=${WORKDIR}/${MY_P1}
28
29 RESTRICT="test"
30
31 src_prepare(){
32 rm -rf Py* drel* dRel* ply*
33 epatch "${FILESDIR}"/0.9.2.3-Makefile.patch
34 cp Makefile_LINUX_gcc42 Makefile
35
36 append-fflags -fno-range-check
37 append-cflags -D_USE_XOPEN_EXTENDED -DCBF_DONT_USE_LONG_LONG
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
54 }
55
56 src_test(){
57 emake -j1 basic
58 }
59
60 src_install() {
61 insinto /usr/include/${PN}
62 doins include/*.h
63
64 dolib.so solib/lib*
65
66 dodoc README
67 use doc && dohtml -r README.html html_graphics doc
68 }

  ViewVC Help
Powered by ViewVC 1.1.20