/[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.4 - (hide annotations) (download)
Thu Oct 18 21:33:44 2012 UTC (5 years, 9 months ago) by jlec
Branch: MAIN
Changes since 1.3: +1 -5 lines
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 jlec 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jlec 1.4 # $Header: /var/cvsroot/gentoo-x86/sci-libs/cbflib/cbflib-0.9.2.3.ebuild,v 1.3 2012/05/21 19:17:42 ranger Exp $
4 jlec 1.1
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 xarthisius 1.2 test? (
18     mirror://sourceforge/${PN}/${MY_P2}_Data_Files_Input.tar.gz
19     mirror://sourceforge/${PN}/${MY_P2}_Data_Files_Output.tar.gz
20 jlec 1.1 )"
21    
22     LICENSE="GPL-2"
23     SLOT="0"
24 ranger 1.3 KEYWORDS="~amd64 ppc ~x86 ~amd64-linux ~x86-linux"
25 jlec 1.1 IUSE="doc test"
26    
27 xarthisius 1.2 S=${WORKDIR}/${MY_P1}
28 jlec 1.1
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