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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Oct 18 21:33:44 2012 UTC (23 months, 1 week ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
sci-libs/cbflib: Remove virtual/fortran and always call fortran-2_pkg_setup as intend by the updated fortran-2.eclass

(Portage version: 2.2.0_alpha141/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)

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

  ViewVC Help
Powered by ViewVC 1.1.20