Cleaned and enhanced ebuild
authorJustin Lecher <jlec@gentoo.org>
Tue, 13 Sep 2011 21:05:24 +0000 (21:05 +0000)
committerJustin Lecher <jlec@gentoo.org>
Tue, 13 Sep 2011 21:05:24 +0000 (21:05 +0000)
Package-Manager: portage-2.2.0_alpha55/cvs/Linux x86_64

sci-libs/getdata/ChangeLog
sci-libs/getdata/Manifest
sci-libs/getdata/getdata-0.6.3-r1.ebuild [new file with mode: 0644]
sci-libs/getdata/metadata.xml

index 00ec1198aa78818dcc2d17dd01cd3bdfb3d8fe32..7962c51850b08c3652c839313571b02bb0153f38 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sci-libs/getdata
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/getdata/ChangeLog,v 1.4 2011/09/13 19:54:37 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/getdata/ChangeLog,v 1.5 2011/09/13 21:05:24 jlec Exp $
+
+*getdata-0.6.3-r1 (13 Sep 2011)
+
+  13 Sep 2011; Justin Lecher <jlec@gentoo.org> +getdata-0.6.3-r1.ebuild,
+  metadata.xml:
+  Cleaned and enhanced ebuild
 
   13 Sep 2011; Justin Lecher <jlec@gentoo.org> metadata.xml:
   sci takes maintainer ship
index 69517b712da6c06d306f2ca0f59310322e40d9b5..90353da138eb40997e59ff074c4eb96ae2d047cf 100644 (file)
@@ -2,13 +2,14 @@
 Hash: SHA512
 
 DIST getdata-0.6.3.tar.bz2 647109 RMD160 02989280206177077e2172cbd2e9891dbff2c417 SHA1 e79788fb2dc2e68a6f05ec4e6c065904cffb1a88 SHA256 1fb99ae1efbbee75602b0ba4f91ef1a9c5b8e0d7cb252e6346636a4519c9fa0c
+EBUILD getdata-0.6.3-r1.ebuild 2564 RMD160 e1e04e48e028f59020a62ad7c0cfcd31f5c78ae7 SHA1 d2b70e2fcf44b09f37cb0a2c88c1bf2f0a658c96 SHA256 b0401cf1c6192641dbdc081a55d30d4630a9b8d622d2ffcc3ebcdbfcdf7adcb0
 EBUILD getdata-0.6.3.ebuild 996 RMD160 93df0e11a6aaee44aa8bf64ca2be0b81740688be SHA1 e2470c3d1bf04ab1dcc8d1f6cfef0ca932c288b5 SHA256 aaaa6a97921cb04156ef05c5f80518ea7b898ad7c00d807d6f35060ab1dee23c
-MISC ChangeLog 732 RMD160 865ad408e504243e828fe5ecc4cd50838522f031 SHA1 5df799a98044cc8efd75476baa0ae928629bca00 SHA256 774630d26bff032d899018870933cd5257b4c4b3908756c6a19c010c0c80206e
-MISC metadata.xml 252 RMD160 04fe9afffc0f30d7764b4a47e2704b15dd76d2f1 SHA1 b67696efaa28c3d8558841e6ad1b83b7dd57b847 SHA256 aa965eee67b83c81a81b9cb15202c2eaaeae0d471145d5cbb3c7a59651db7030
+MISC ChangeLog 885 RMD160 e8cb48ab6e4a25780ec596dc3c361feb7f094364 SHA1 dd015ed6d7c004d9fe4cac86e4e76ae4277e2885 SHA256 9aaf156f37770e83ec830b280672238deeed3cac29629de0d904fa677cf7bb9b
+MISC metadata.xml 371 RMD160 6422b64b4d5b1356d2dfd1b406841f19249387cd SHA1 c218a674dcc3303f830fa5ff1051c788e6c59838 SHA256 cd87daeeb8f0a419282e47669afc78fe2880f695f0ece03931ba51dc3222226b
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.18 (GNU/Linux)
 
-iEYEAREKAAYFAk5vtQgACgkQgAnW8HDreRYCagCdFsxgNpwrI+AyYbO3s6eLknvn
-VkcAnA2BllrqH1pxuUUaPlR6nX80NgRh
-=/524
+iEYEAREKAAYFAk5vxZ4ACgkQgAnW8HDreRYQ2QCeL+xc5wXFSvl2aM22du7ZaXjc
+A3IAoLOwdYg/KIDbYssOgubk3aUUFbc4
+=uybp
 -----END PGP SIGNATURE-----
diff --git a/sci-libs/getdata/getdata-0.6.3-r1.ebuild b/sci-libs/getdata/getdata-0.6.3-r1.ebuild
new file mode 100644 (file)
index 0000000..1701235
--- /dev/null
@@ -0,0 +1,92 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/getdata/getdata-0.6.3-r1.ebuild,v 1.1 2011/09/13 21:05:24 jlec Exp $
+
+EAPI=3
+
+PYTHON_DEPEND="python? 2"
+SUPPORT_PYTHON_ABIS="1"
+
+FORTRAN_STANDARD="95"
+
+inherit autotools fortran-2 python
+
+DESCRIPTION="Reference implementation of the Dirfile, format for time-ordered binary data"
+HOMEPAGE="http://getdata.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="bzip2 fortran lzma python static-libs"
+
+DEPEND="
+       bzip2? ( app-arch/bzip2 )
+       lzma? ( app-arch/xz-utils )"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+       use fortran && fortran-2_pkg_setup
+}
+
+src_prepare() {
+       # Python bindings are built/tested/installed manually.
+       sed -e "/PY_SUBDIR/s/python//" -i bindings/Makefile.am
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               --disable-idl \
+               --without-libslim \
+               --with-libz \
+               --enable-shared \
+               --docdir="${EPREFIX}/usr/share/doc/${P}" \
+               $(use_enable fortran) \
+               $(use_enable fortran fortran95) \
+               $(use_enable python) \
+               $(use_enable static-libs static) \
+               $(use_with bzip2 libbz2) \
+               $(use_with lzma liblzma)
+}
+
+src_compile() {
+       default
+
+       if use python; then
+               python_copy_sources bindings/python
+               building() {
+                       sed "s:-lpython...:$(python_get_library --linker-option):g" -i Makefile || die
+                       emake \
+                               PYTHON_VERSION="$(python_get_version)" \
+                               NUMPY_CPPFLAGS="-I${EPREFIX}$(python_get_sitedir)/numpy/core/include" \
+                               PYTHON_CPPFLAGS="-I${EPREFIX}$(python_get_includedir)" \
+                               pyexecdir="$(python_get_sitedir)" \
+            pythondir="$(python_get_sitedir)"
+               }
+               python_execute_function -s --source-dir bindings/python building
+       fi
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "Install failed"
+       if use python; then
+               installation() {
+                       emake \
+                               DESTDIR="${D}" \
+                               PYTHON_VERSION="$(python_get_version)" \
+                               NUMPY_CPPFLAGS="-I${EPREFIX}$(python_get_sitedir)/numpy/core/include" \
+                               PYTHON_CPPFLAGS="-I${EPREFIX}$(python_get_includedir)" \
+                               PYTHON_VERSION="$(python_get_version)" \
+                               pyexecdir="$(python_get_sitedir)" \
+            pythondir="$(python_get_sitedir)" \
+                               install
+                               if use static-libs; then
+                                       find "${ED}/$(python_get_sitedir)" -type f -name "*.a" -delete || die
+                               fi
+               }
+               python_execute_function -s --source-dir bindings/python installation
+               python_clean_installation_image
+       fi
+       dodoc AUTHORS ChangeLog NEWS README TODO || die "Installing docs failed"
+}
index be3ea5eeb44fa851a9ba834e0a07886ec9a81cc1..7527ea188d26494faafc107fd229ef55191d6046 100644 (file)
@@ -6,4 +6,8 @@
                <email>sci@gentoo.org</email>
        </maintainer>
        <longdescription lang="en"/>
+       <use>
+               <flag name="fortran">Build fortran bindings</flag>
+               <flag name="python">Build python bindings</flag>
+       </use>
 </pkgmetadata>