Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/getdata/, sci-libs/getdata/files/
Date: Sun, 20 Dec 2015 17:06:55
Message-Id: 1450631204.0e930a6532f6df3ce4b097e9e2d72d4dfb036fe4.jlec@gentoo
1 commit: 0e930a6532f6df3ce4b097e9e2d72d4dfb036fe4
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 20 17:03:04 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 20 17:06:44 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e930a65
7
8 sci-libs/getdata: Version Bump
9
10 Package-Manager: portage-2.2.26
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 sci-libs/getdata/Manifest | 1 +
14 .../getdata/files/getdata-0.9.0-serial-test.patch | 41 ++++++++++
15 sci-libs/getdata/getdata-0.9.0.ebuild | 95 ++++++++++++++++++++++
16 3 files changed, 137 insertions(+)
17
18 diff --git a/sci-libs/getdata/Manifest b/sci-libs/getdata/Manifest
19 index df04fe9..62511a0 100644
20 --- a/sci-libs/getdata/Manifest
21 +++ b/sci-libs/getdata/Manifest
22 @@ -1 +1,2 @@
23 DIST getdata-0.8.5.tar.bz2 1015954 SHA256 ee0322c1cca62660daed7941b24d41fc902cd7989539dcba432f5514f682a64e SHA512 3a87ea2fbaa5491ac1d6faecdf10f0a80eef62fb8beefc6103f7f18e74efd404884f100f1d123b1fec672d1a09ea2c87e75626b7c62ea56b568a11cc44feaad0 WHIRLPOOL 7c4566bf7a56d99d41da7d007469d85ea5194f7b7417e6c5e976397f5514f9efd2ad47476f03e050f8dc30cd5348fc02eb7aa5048b14bf62fce629d602d7d84a
24 +DIST getdata-0.9.0.tar.xz 920652 SHA256 b38de059ff21df873e95978867eb82f716b89fc7e8e503e2cc7cef93d22685a2 SHA512 28d720141e34cc56a5166594d0a6ac293144d123706988ed170e40dd9d7aaf13b920305e8bd8343ecd7cbe43eee5d83720e3e5f5d2da0cdccdc1444725cc6844 WHIRLPOOL afc557f26b60edb5aa787fcff35aec2cd6b1bc599b74ddd1583b526f1c9d22e522baf093675f11c2367c42f28f236d53a1e88a7b6613acfa44f52cc277691ed2
25
26 diff --git a/sci-libs/getdata/files/getdata-0.9.0-serial-test.patch b/sci-libs/getdata/files/getdata-0.9.0-serial-test.patch
27 new file mode 100644
28 index 0000000..ea17e54
29 --- /dev/null
30 +++ b/sci-libs/getdata/files/getdata-0.9.0-serial-test.patch
31 @@ -0,0 +1,41 @@
32 + bindings/Makefile.am | 6 +-----
33 + bindings/python/test/Makefile.am | 2 +-
34 + 2 files changed, 2 insertions(+), 6 deletions(-)
35 +
36 +diff --git a/bindings/Makefile.am b/bindings/Makefile.am
37 +index ad9f0d2..9e333a5 100644
38 +--- a/bindings/Makefile.am
39 ++++ b/bindings/Makefile.am
40 +@@ -38,10 +38,6 @@ if MAKE_MATLABBINDINGS
41 + MATLAB_SUBDIR=matlab
42 + endif
43 +
44 +-if MAKE_PYBINDINGS
45 +-PY_SUBDIR=python
46 +-endif
47 +-
48 + if MAKE_PERLBINDINGS
49 + PERL_SUBDIR=perl
50 + endif
51 +@@ -55,7 +51,7 @@ noinst_PROGRAMS=make_parameters
52 + make_parameters_SOURCES = make_parameters.c
53 + nodist_make_parameters_SOURCES = ../src/getdata.h ../src/gd_config.h
54 +
55 +-SUBDIRS = . ${F77_SUBDIR} ${CXX_SUBDIR} ${IDL_SUBDIR} ${PY_SUBDIR} \
56 ++SUBDIRS = . ${F77_SUBDIR} ${CXX_SUBDIR} ${IDL_SUBDIR} \
57 + ${PERL_SUBDIR} ${MATLAB_SUBDIR} ${PHP_SUBDIR}
58 +
59 + make_parameters$(EXEEXT): $(make_parameters_SOURCES) \
60 +diff --git a/bindings/python/test/Makefile.am b/bindings/python/test/Makefile.am
61 +index 32d786f..f4be3de 100644
62 +--- a/bindings/python/test/Makefile.am
63 ++++ b/bindings/python/test/Makefile.am
64 +@@ -18,7 +18,7 @@
65 + # along with GetData; if not, write to the Free Software Foundation, Inc.,
66 + # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
67 + #
68 +-AUTOMAKE_OPTIONS = foreign serial-tests
69 ++AUTOMAKE_OPTIONS = foreign
70 +
71 + if TEST_PYTHON
72 + TESTS_ENVIRONMENT=${DL_LIBRARY_PATH}=../../../src/.libs:${${DL_LIBRARY_PATH}} PYTHONPATH=..:${PYTHONPATH} ${PYTHON}
73
74 diff --git a/sci-libs/getdata/getdata-0.9.0.ebuild b/sci-libs/getdata/getdata-0.9.0.ebuild
75 new file mode 100644
76 index 0000000..6cd783a
77 --- /dev/null
78 +++ b/sci-libs/getdata/getdata-0.9.0.ebuild
79 @@ -0,0 +1,95 @@
80 +# Copyright 1999-2015 Gentoo Foundation
81 +# Distributed under the terms of the GNU General Public License v2
82 +# $Id$
83 +
84 +EAPI=5
85 +
86 +PYTHON_COMPAT=( python2_7 )
87 +
88 +AUTOTOOLS_AUTORECONF=true
89 +
90 +FORTRAN_STANDARD="95"
91 +FORTRAN_NEEDED=fortran
92 +
93 +inherit autotools-utils fortran-2 python-single-r1
94 +
95 +DESCRIPTION="Reference implementation of the Dirfile, format for time-ordered binary data"
96 +HOMEPAGE="http://getdata.sourceforge.net/"
97 +SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.xz"
98 +
99 +SLOT="0"
100 +LICENSE="LGPL-2.1"
101 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
102 +IUSE="bzip2 debug fortran lzma python perl static-libs"
103 +
104 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
105 +
106 +DEPEND="
107 + bzip2? ( app-arch/bzip2 )
108 + lzma? ( app-arch/xz-utils )
109 + python? ( ${PYTHON_DEPS} )
110 + perl? ( dev-lang/perl )"
111 +RDEPEND="${DEPEND}"
112 +
113 +PATCHES=(
114 + "${FILESDIR}"/${P}-serial-test.patch
115 + )
116 +
117 +src_configure() {
118 + local myeconfargs=()
119 + use perl && myeconfargs+=( --with-perl-dir=vendor )
120 + myeconfargs+=(
121 + --disable-idl
122 + --without-libslim
123 + --with-libz
124 + --docdir="${EPREFIX}/usr/share/doc/${P}"
125 + $(use_enable debug)
126 + $(use_enable fortran)
127 + $(use_enable fortran fortran95)
128 + $(use_enable python)
129 + $(use_enable perl)
130 + $(use_with bzip2 libbz2)
131 + $(use_with lzma liblzma)
132 + )
133 + autotools-utils_src_configure
134 +}
135 +
136 +src_compile() {
137 + autotools-utils_src_compile
138 +
139 + if use python; then
140 + python_copy_sources
141 + building() {
142 + cd "${BUILD_DIR}"/bindings/python || die
143 + sed "s:-lpython...:$(python_get_LIBS):g" -i Makefile || die
144 + emake \
145 + PYTHON_VERSION="${EPYTHON#python}" \
146 + NUMPY_CPPFLAGS="-I${EPREFIX}$(python_get_sitedir)/numpy/core/include" \
147 + PYTHON_CPPFLAGS="-I${EPREFIX}$(python_get_includedir)" \
148 + pyexecdir="${EPREFIX}$(python_get_sitedir)" \
149 + pythondir="${EPREFIX}$(python_get_sitedir)"
150 + }
151 + python_foreach_impl building
152 + fi
153 +}
154 +
155 +src_install() {
156 + autotools-utils_src_install
157 + if use python; then
158 + installation() {
159 + cd "${BUILD_DIR}"/bindings/python || die
160 + emake \
161 + DESTDIR="${D}" \
162 + PYTHON_VERSION="${EPYTHON#python}" \
163 + NUMPY_CPPFLAGS="-I${EPREFIX}$(python_get_sitedir)/numpy/core/include" \
164 + PYTHON_CPPFLAGS="-I${EPREFIX}$(python_get_includedir)" \
165 + pyexecdir="${EPREFIX}$(python_get_sitedir)" \
166 + pythondir="${EPREFIX}$(python_get_sitedir)" \
167 + install
168 + find \
169 + "${ED}/$(python_get_sitedir)" \
170 + -type f \( -name "*.a" -o -name "*.la" \) -delete || die
171 + }
172 + python_foreach_impl installation
173 + fi
174 +}