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

Contents of /sci-libs/cbflib/cbflib-0.8.1-r7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Dec 14 08:29:48 2011 UTC (2 years, 11 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Version Bump

(Portage version: 2.2.0_alpha80/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.8.1-r7.ebuild,v 1.4 2011/06/28 19:30:30 jlec Exp $
4
5 EAPI=3
6
7 inherit eutils flag-o-matic fortran-2 toolchain-funcs
8
9 MY_P1="CBFlib-${PV}"
10 MY_P2="CBFlib_${PV}"
11
12 DESCRIPTION="Library providing a simple mechanism for accessing CBF files and imgCIF files"
13 HOMEPAGE="http://www.bernstein-plus-sons.com/software/CBF/"
14 #BASE_TEST_URI="http://arcib.dowling.edu/software/CBFlib/downloads/version_${PV}/"
15 SRC_URI="mirror://sourceforge/${PN}/${MY_P1}.tar.gz"
16 # test? (
17 # ${BASE_TEST_URI}/${MY_P2}_Data_Files_Input.tar.gz
18 # ${BASE_TEST_URI}/${MY_P2}_Data_Files_Output.tar.gz
19 # )"
20
21 LICENSE="GPL-2"
22 SLOT="0"
23 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
24 IUSE=""
25
26 DEPEND="virtual/fortran "
27 RDEPEND="${DEPEND}"
28 #test? ( sys-process/time )"
29
30 S="${WORKDIR}/${MY_P1}"
31
32 src_prepare(){
33 epatch "${FILESDIR}"/${PV}-Makefile.patch
34 cp Makefile_LINUX_gcc42 Makefile
35
36 append-fflags -fno-range-check
37 append-cflags -D_USE_XOPEN_EXTENDED
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 || die
54 }
55
56 # test app is borked in this version
57 # produces buffer overflows
58 #src_test(){
59 # emake -j1 tests || die
60 #}
61
62 src_install() {
63 insinto /usr/include/${PN}
64 doins include/* || die
65
66 dolib.so solib/* || die
67 }

  ViewVC Help
Powered by ViewVC 1.1.20