Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/cbflib: ChangeLog cbflib-0.9.0-r1.ebuild cbflib-0.9.0.ebuild
Date: Mon, 05 Jul 2010 11:36:57
Message-Id: 20100705113651.CCC7B2CE14@corvid.gentoo.org
1 jlec 10/07/05 11:36:51
2
3 Modified: ChangeLog
4 Added: cbflib-0.9.0-r1.ebuild
5 Removed: cbflib-0.9.0.ebuild
6 Log:
7 Don't install obj files #326933; add python support
8 (Portage version: 2.2_rc67/cvs/Linux x86_64, RepoMan options: --force)
9
10 Revision Changes Path
11 1.11 sci-libs/cbflib/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/cbflib/ChangeLog?rev=1.11&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/cbflib/ChangeLog?rev=1.11&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/cbflib/ChangeLog?r1=1.10&r2=1.11
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/cbflib/ChangeLog,v
20 retrieving revision 1.10
21 retrieving revision 1.11
22 diff -u -r1.10 -r1.11
23 --- ChangeLog 3 Jul 2010 08:18:45 -0000 1.10
24 +++ ChangeLog 5 Jul 2010 11:36:51 -0000 1.11
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-libs/cbflib
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/cbflib/ChangeLog,v 1.10 2010/07/03 08:18:45 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/cbflib/ChangeLog,v 1.11 2010/07/05 11:36:51 jlec Exp $
30 +
31 +*cbflib-0.9.0-r1 (05 Jul 2010)
32 +
33 + 05 Jul 2010; Justin Lecher <jlec@g.o> files/0.9.0-Makefile.patch,
34 + -cbflib-0.9.0.ebuild, +cbflib-0.9.0-r1.ebuild:
35 + Don't install obj files #326933; add python support
36
37 03 Jul 2010; Justin Lecher <jlec@g.o> cbflib-0.9.0.ebuild:
38 Remove spaming during emerge
39
40
41
42 1.1 sci-libs/cbflib/cbflib-0.9.0-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/cbflib/cbflib-0.9.0-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/cbflib/cbflib-0.9.0-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: cbflib-0.9.0-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-libs/cbflib/cbflib-0.9.0-r1.ebuild,v 1.1 2010/07/05 11:36:51 jlec Exp $
52
53 EAPI="3"
54
55 PYTHON_DEPEND="python? 2"
56 SUPPORT_PYTHON_ABIS="1"
57 RESTRICT_PYTHON_ABIS="3.*"
58
59 inherit distutils eutils flag-o-matic toolchain-funcs
60
61 MY_P1="CBFlib-${PV}"
62 MY_P2="CBFlib_${PV}"
63
64 DESCRIPTION="Library providing a simple mechanism for accessing CBF files and imgCIF files."
65 HOMEPAGE="http://www.bernstein-plus-sons.com/software/CBF/"
66 #BASE_TEST_URI="http://arcib.dowling.edu/software/CBFlib/downloads/version_${PV}/"
67 SRC_URI="mirror://sourceforge/${PN}/${MY_P1}_14Feb10.tar.gz"
68 # test? (
69 # ${BASE_TEST_URI}/${MY_P2}_Data_Files_Input.tar.gz
70 # ${BASE_TEST_URI}/${MY_P2}_Data_Files_Output.tar.gz
71 # )"
72
73 LICENSE="GPL-2"
74 SLOT="0"
75 KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
76 IUSE="doc python"
77
78 #RDEPEND=""
79 #DEPEND="test? ( sys-process/time )"
80
81 S="${WORKDIR}/${MY_P1}"
82
83 src_prepare(){
84 rm -rf Py* drel* dRel* ply*
85 epatch "${FILESDIR}"/${PV}-Makefile.patch
86 cp Makefile_LINUX_gcc42 Makefile
87
88 append-fflags -fno-range-check
89 append-cflags -D_USE_XOPEN_EXTENDED
90
91 sed \
92 -e "s:^CC.*$:CC = $(tc-getCC):" \
93 -e "s:^C++.*$:C++ = $(tc-getCXX):" \
94 -e "s:C++:CXX:g" \
95 -e "s:^CFLAGS.*$:CFLAGS = ${CFLAGS}:" \
96 -e "s:^F90C.*$:F90C = $(tc-getFC):" \
97 -e "s:^F90FLAGS.*$:F90FLAGS = ${FFLAGS}:" \
98 -e "s:^SOLDFLAGS.*$:SOLDFLAGS = -shared ${LDFLAGS}:g" \
99 -e "s: /bin: ${EPREFIX}/bin:g" \
100 -e "s:/usr:${EPREFIX}/usr:g" \
101 -i Makefile || die
102 }
103
104 src_compile() {
105 emake -j1 shared || die
106
107 if use python; then
108 cd pycbf
109 distutils_src_compile
110 fi
111 }
112
113 # test app is borked in this version
114 # produces buffer overflows
115 #src_test(){
116 # emake -j1 tests || die
117 #}
118
119 src_install() {
120 insinto /usr/include/${PN}
121 doins include/*.h || die
122
123 dolib.so solib/lib* || die
124
125 dodoc README || die
126 if use doc; then
127 dohtml -r README.html html_graphics doc || die
128 fi
129 if use python; then
130 cd pycbf
131 distutils_src_install
132 fi
133 }