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-r2.ebuild cbflib-0.9.0-r1.ebuild
Date: Mon, 05 Jul 2010 12:45:09
Message-Id: 20100705124506.1F9422CE14@corvid.gentoo.org
1 jlec 10/07/05 12:45:05
2
3 Modified: ChangeLog
4 Added: cbflib-0.9.0-r2.ebuild
5 Removed: cbflib-0.9.0-r1.ebuild
6 Log:
7 Small python fix
8 (Portage version: 2.2_rc67/cvs/Linux x86_64, RepoMan options: --force)
9
10 Revision Changes Path
11 1.12 sci-libs/cbflib/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/cbflib/ChangeLog?rev=1.12&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/cbflib/ChangeLog?rev=1.12&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/cbflib/ChangeLog?r1=1.11&r2=1.12
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/cbflib/ChangeLog,v
20 retrieving revision 1.11
21 retrieving revision 1.12
22 diff -u -r1.11 -r1.12
23 --- ChangeLog 5 Jul 2010 11:36:51 -0000 1.11
24 +++ ChangeLog 5 Jul 2010 12:45:05 -0000 1.12
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.11 2010/07/05 11:36:51 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/cbflib/ChangeLog,v 1.12 2010/07/05 12:45:05 jlec Exp $
30 +
31 +*cbflib-0.9.0-r2 (05 Jul 2010)
32 +
33 + 05 Jul 2010; Justin Lecher <jlec@g.o> +files/0.9.0-python.patch,
34 + -cbflib-0.9.0-r1.ebuild, +cbflib-0.9.0-r2.ebuild:
35 + Small python fix
36
37 *cbflib-0.9.0-r1 (05 Jul 2010)
38
39
40
41
42 1.1 sci-libs/cbflib/cbflib-0.9.0-r2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/cbflib/cbflib-0.9.0-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/cbflib/cbflib-0.9.0-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: cbflib-0.9.0-r2.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-r2.ebuild,v 1.1 2010/07/05 12:45:05 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 PYTHON_MODNAME="pycbf.py"
62 MY_P1="CBFlib-${PV}"
63 MY_P2="CBFlib_${PV}"
64
65 DESCRIPTION="Library providing a simple mechanism for accessing CBF files and imgCIF files."
66 HOMEPAGE="http://www.bernstein-plus-sons.com/software/CBF/"
67 #BASE_TEST_URI="http://arcib.dowling.edu/software/CBFlib/downloads/version_${PV}/"
68 SRC_URI="mirror://sourceforge/${PN}/${MY_P1}_14Feb10.tar.gz"
69 # test? (
70 # ${BASE_TEST_URI}/${MY_P2}_Data_Files_Input.tar.gz
71 # ${BASE_TEST_URI}/${MY_P2}_Data_Files_Output.tar.gz
72 # )"
73
74 LICENSE="GPL-2"
75 SLOT="0"
76 KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
77 IUSE="doc python"
78
79 #RDEPEND=""
80 #DEPEND="test? ( sys-process/time )"
81
82 S="${WORKDIR}/${MY_P1}"
83
84 src_prepare(){
85 rm -rf Py* drel* dRel* ply*
86 epatch "${FILESDIR}"/${PV}-Makefile.patch
87 edos2unix pycbf/setup.py
88 epatch "${FILESDIR}"/${PV}-python.patch
89 cp Makefile_LINUX_gcc42 Makefile
90
91 append-fflags -fno-range-check
92 append-cflags -D_USE_XOPEN_EXTENDED
93
94 sed \
95 -e "s:^CC.*$:CC = $(tc-getCC):" \
96 -e "s:^C++.*$:C++ = $(tc-getCXX):" \
97 -e "s:C++:CXX:g" \
98 -e "s:^CFLAGS.*$:CFLAGS = ${CFLAGS}:" \
99 -e "s:^F90C.*$:F90C = $(tc-getFC):" \
100 -e "s:^F90FLAGS.*$:F90FLAGS = ${FFLAGS}:" \
101 -e "s:^SOLDFLAGS.*$:SOLDFLAGS = -shared ${LDFLAGS}:g" \
102 -e "s: /bin: ${EPREFIX}/bin:g" \
103 -e "s:/usr:${EPREFIX}/usr:g" \
104 -i Makefile || die
105 }
106
107 src_compile() {
108 emake -j1 shared || die
109
110 if use python; then
111 cd pycbf
112 distutils_src_compile
113 fi
114 }
115
116 # test app is borked in this version
117 # produces buffer overflows
118 #src_test(){
119 # emake -j1 tests || die
120 #}
121
122 src_install() {
123 insinto /usr/include/${PN}
124 doins include/*.h || die
125
126 dolib.so solib/lib* || die
127
128 dodoc README || die
129 if use doc; then
130 dohtml -r README.html html_graphics doc || die
131 fi
132 if use python; then
133 cd pycbf
134 distutils_src_install
135 fi
136 }
137
138 pkg_postinst() {
139 use python && distutils_pkg_postinst
140 }
141
142 pkg_postrm() {
143 use python && distutils_pkg_postrm
144 }