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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Dec 6 08:27:07 2012 UTC (21 months, 1 week ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
sci-libs/cbflib: Resurrect old version

(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/Attic/cbflib-0.9.2.2.ebuild,v 1.3 2012/02/17 19:37:14 xarthisius 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 SRC_URI="mirror://sourceforge/${PN}/${MY_P1}.tar.gz
16 test? (
17 mirror://sourceforge/${PN}/${MY_P2}_Data_Files_Input.tar.gz
18 mirror://sourceforge/${PN}/${MY_P2}_Data_Files_Output.tar.gz
19 )"
20
21 LICENSE="GPL-2"
22 SLOT="0"
23 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
24 IUSE="doc test"
25
26 DEPEND="virtual/fortran"
27 RDEPEND="${DEPEND}"
28 #test? ( sys-process/time )"
29
30 S=${WORKDIR}/${MY_P1}
31
32 src_prepare(){
33 rm -rf Py* drel* dRel* ply*
34 epatch "${FILESDIR}"/${PV}-Makefile.patch
35 cp Makefile_LINUX_gcc42 Makefile
36
37 append-fflags -fno-range-check
38 append-cflags -D_USE_XOPEN_EXTENDED -DCBF_DONT_USE_LONG_LONG
39
40 sed \
41 -e "s|^CC.*$|CC = $(tc-getCC)|" \
42 -e "s|^C++.*$|C++ = $(tc-getCXX)|" \
43 -e "s|C++|CXX|g" \
44 -e "s|^CFLAGS.*$|CFLAGS = ${CFLAGS}|" \
45 -e "s|^F90C.*$|F90C = $(tc-getFC)|" \
46 -e "s|^F90FLAGS.*$|F90FLAGS = ${FFLAGS}|" \
47 -e "s|^SOLDFLAGS.*$|SOLDFLAGS = -shared ${LDFLAGS}|g" \
48 -e "s| /bin| ${EPREFIX}/bin|g" \
49 -e "s|/usr|${EPREFIX}/usr|g" \
50 -i Makefile || die
51 }
52
53 src_compile() {
54 emake -j1 shared
55 }
56
57 src_test(){
58 emake -j1 basic
59 }
60
61 src_install() {
62 insinto /usr/include/${PN}
63 doins include/*.h
64
65 dolib.so solib/lib*
66
67 dodoc README
68 if use doc; then
69 dohtml -r README.html html_graphics doc
70 fi
71 }

  ViewVC Help
Powered by ViewVC 1.1.20