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

Contents of /sci-libs/cbflib/cbflib-0.9.0-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jul 6 18:51:38 2010 UTC (4 years, 1 month ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Build against new lib and not installed one
(Portage version: 2.2_rc67/cvs/Linux x86_64, RepoMan options: --force)

1 # Copyright 1999-2010 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.0-r2.ebuild,v 1.1 2010/07/05 12:45:05 jlec Exp $
4
5 EAPI="3"
6
7 PYTHON_DEPEND="python? 2"
8 SUPPORT_PYTHON_ABIS="1"
9 RESTRICT_PYTHON_ABIS="3.*"
10
11 inherit distutils eutils flag-o-matic toolchain-funcs
12
13 PYTHON_MODNAME="pycbf.py"
14 MY_P1="CBFlib-${PV}"
15 MY_P2="CBFlib_${PV}"
16
17 DESCRIPTION="Library providing a simple mechanism for accessing CBF files and imgCIF files."
18 HOMEPAGE="http://www.bernstein-plus-sons.com/software/CBF/"
19 #BASE_TEST_URI="http://arcib.dowling.edu/software/CBFlib/downloads/version_${PV}/"
20 SRC_URI="mirror://sourceforge/${PN}/${MY_P1}_14Feb10.tar.gz"
21 # test? (
22 # ${BASE_TEST_URI}/${MY_P2}_Data_Files_Input.tar.gz
23 # ${BASE_TEST_URI}/${MY_P2}_Data_Files_Output.tar.gz
24 # )"
25
26 LICENSE="GPL-2"
27 SLOT="0"
28 KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
29 IUSE="doc python"
30
31 #RDEPEND=""
32 #DEPEND="test? ( sys-process/time )"
33
34 S="${WORKDIR}/${MY_P1}"
35
36 src_prepare(){
37 rm -rf Py* drel* dRel* ply*
38 epatch "${FILESDIR}"/${PV}-Makefile.patch
39 edos2unix pycbf/setup.py
40 epatch "${FILESDIR}"/${PV}-python.patch
41 cp Makefile_LINUX_gcc42 Makefile
42
43 append-fflags -fno-range-check
44 append-cflags -D_USE_XOPEN_EXTENDED
45
46 sed \
47 -e "s:^CC.*$:CC = $(tc-getCC):" \
48 -e "s:^C++.*$:C++ = $(tc-getCXX):" \
49 -e "s:C++:CXX:g" \
50 -e "s:^CFLAGS.*$:CFLAGS = ${CFLAGS}:" \
51 -e "s:^F90C.*$:F90C = $(tc-getFC):" \
52 -e "s:^F90FLAGS.*$:F90FLAGS = ${FFLAGS}:" \
53 -e "s:^SOLDFLAGS.*$:SOLDFLAGS = -shared ${LDFLAGS}:g" \
54 -e "s: /bin: ${EPREFIX}/bin:g" \
55 -e "s:/usr:${EPREFIX}/usr:g" \
56 -i Makefile || die
57 }
58
59 src_compile() {
60 emake -j1 shared || die
61
62 if use python; then
63 cd pycbf
64 distutils_src_compile
65 fi
66 }
67
68 # test app is borked in this version
69 # produces buffer overflows
70 #src_test(){
71 # emake -j1 tests || die
72 #}
73
74 src_install() {
75 insinto /usr/include/${PN}
76 doins include/*.h || die
77
78 dolib.so solib/lib* || die
79
80 dodoc README || die
81 if use doc; then
82 dohtml -r README.html html_graphics doc || die
83 fi
84 if use python; then
85 cd pycbf
86 distutils_src_install
87 fi
88 }
89
90 pkg_postinst() {
91 use python && distutils_pkg_postinst
92 }
93
94 pkg_postrm() {
95 use python && distutils_pkg_postrm
96 }

  ViewVC Help
Powered by ViewVC 1.1.20