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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Dec 4 11:49:31 2012 UTC (21 months, 3 weeks ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
sci-libs/cbflib: Drop old

(Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)

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.3.ebuild,v 1.4 2012/10/18 21:33:44 jlec 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.2"
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 src_prepare(){
30 rm -rf Py* drel* dRel* ply*
31 epatch "${FILESDIR}"/${PV}-Makefile.patch
32 cp Makefile_LINUX_gcc42 Makefile
33
34 append-fflags -fno-range-check
35 append-cflags -D_USE_XOPEN_EXTENDED -DCBF_DONT_USE_LONG_LONG
36
37 sed \
38 -e "s|^CC.*$|CC = $(tc-getCC)|" \
39 -e "s|^C++.*$|C++ = $(tc-getCXX)|" \
40 -e "s|C++|CXX|g" \
41 -e "s|^CFLAGS.*$|CFLAGS = ${CFLAGS}|" \
42 -e "s|^F90C.*$|F90C = $(tc-getFC)|" \
43 -e "s|^F90FLAGS.*$|F90FLAGS = ${FFLAGS}|" \
44 -e "s|^SOLDFLAGS.*$|SOLDFLAGS = -shared ${LDFLAGS}|g" \
45 -e "s| /bin| ${EPREFIX}/bin|g" \
46 -e "s|/usr|${EPREFIX}/usr|g" \
47 -i Makefile || die
48 }
49
50 src_compile() {
51 emake -j1 shared
52 }
53
54 src_test(){
55 emake -j1 basic
56 }
57
58 src_install() {
59 insinto /usr/include/${PN}
60 doins include/*.h
61
62 dolib.so solib/lib*
63
64 dodoc README
65 if use doc; then
66 dohtml -r README.html html_graphics doc
67 fi
68 }

  ViewVC Help
Powered by ViewVC 1.1.20