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-physics/camfr: ChangeLog camfr-20070717-r2.ebuild
Date: Fri, 25 Jun 2010 13:25:03
Message-Id: 20100625132500.860312CF61@corvid.gentoo.org
1 jlec 10/06/25 13:25:00
2
3 Modified: ChangeLog
4 Added: camfr-20070717-r2.ebuild
5 Log:
6 Fixes for PYTHON ABIs, #316245
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.17 sci-physics/camfr/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/camfr/ChangeLog?rev=1.17&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/camfr/ChangeLog?rev=1.17&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/camfr/ChangeLog?r1=1.16&r2=1.17
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-physics/camfr/ChangeLog,v
19 retrieving revision 1.16
20 retrieving revision 1.17
21 diff -u -r1.16 -r1.17
22 --- ChangeLog 4 Jun 2010 16:34:26 -0000 1.16
23 +++ ChangeLog 25 Jun 2010 13:25:00 -0000 1.17
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sci-physics/camfr
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/camfr/ChangeLog,v 1.16 2010/06/04 16:34:26 arfrever Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/camfr/ChangeLog,v 1.17 2010/06/25 13:25:00 jlec Exp $
29 +
30 +*camfr-20070717-r2 (25 Jun 2010)
31 +
32 + 25 Jun 2010; Justin Lecher <jlec@g.o> +camfr-20070717-r2.ebuild,
33 + +files/camfr-20070717-python.patch:
34 + Fixes for PYTHON ABIs, #316245
35
36 04 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
37 camfr-20070717-r1.ebuild:
38
39
40
41 1.1 sci-physics/camfr/camfr-20070717-r2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/camfr/camfr-20070717-r2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/camfr/camfr-20070717-r2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: camfr-20070717-r2.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sci-physics/camfr/camfr-20070717-r2.ebuild,v 1.1 2010/06/25 13:25:00 jlec Exp $
51
52 EAPI=2
53
54 PYTHON_DEPEND="2"
55 PYTHON_USE_WITH="tk"
56 SUPPORT_PYTHON_ABIS="1"
57
58 inherit eutils distutils toolchain-funcs
59
60 DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="true"
61
62 DESCRIPTION="Full vectorial Maxwell solver based on eigenmode expansion"
63 HOMEPAGE="http://camfr.sourceforge.net/"
64 SRC_URI="mirror://sourceforge/camfr/${P}.tgz"
65
66 SLOT="0"
67 LICENSE="GPL-2"
68 KEYWORDS="~amd64 ~x86"
69 IUSE=""
70
71 RDEPEND="
72 dev-libs/blitz
73 dev-libs/boost[python]
74 dev-python/imaging[tk]
75 dev-python/matplotlib
76 sci-libs/scipy
77 virtual/lapack"
78 DEPEND="${RDEPEND}
79 dev-util/pkgconfig
80 >=dev-util/scons-0.98"
81
82 RESTRICT_PYTHON_ABIS="3.*"
83
84 S="${WORKDIR}/${P/-/_}"
85
86 src_prepare() {
87 epatch "${FILESDIR}"/${P}-gcc43.patch
88 epatch "${FILESDIR}"/${P}-python.patch
89 cp "${FILESDIR}"/machine_cfg.py.gentoo machine_cfg.py || die
90 python_copy_sources
91
92 preparation() {
93 local libfort
94 local lapack_libs=
95 local lapack_libdirs=
96 # Configure to compile against selected python version
97 cat <<-EOF >> machine_cfg.py
98 include_dirs = []
99 include_dirs.append("$(python_get_includedir)")
100 include_dirs.append("$(python_get_sitedir)")
101 EOF
102
103 for x in $(pkg-config --libs-only-l lapack); do
104 lapack_libs="${lapack_libs}, \"${x#-l}\""
105 done
106 for x in $(pkg-config --libs-only-L lapack); do
107 lapack_libdirs="${lapack_libdirs}, \"${x#-L}\""
108 done
109 case "$(tc-getF77)" in
110 *gfortran) libfort=gfortran ;;
111 *g77) libfort=g2c ;;
112 esac
113 cat <<-EOF >> machine_cfg.py
114 library_dirs = [${lapack_libdirs#,}]
115 libs = ["boost_python", "${libfort}", "blitz"${lapack_libs}]
116 EOF
117 }
118 python_execute_function -s preparation
119 export F77=$(tc-getF77)
120 }
121
122 src_test() {
123 # trick to avoid X in testing (bug #229753)
124 echo "backend : Agg" > matplotlibrc
125 PYTHONPATH=".:visualisation" "$(PYTHON)" testsuite/camfr_test.py \
126 || die "tests failed"
127 rm -f matplotlibrc
128 }
129
130 src_install() {
131 distutils_src_install
132 dodoc docs/camfr.pdf || die "doc install failed"
133 }