diff options
author | Justin Lecher <jlec@gentoo.org> | 2011-09-13 21:05:24 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2011-09-13 21:05:24 +0000 |
commit | fe2f14c15757953b70462bde3cb9f5041f1989bb (patch) | |
tree | 69d30aaac3498b724e1d61e15fed22e966860764 /sci-libs | |
parent | Backport performance improvement from upstream to 4.6 (diff) | |
download | historical-fe2f14c15757953b70462bde3cb9f5041f1989bb.tar.gz historical-fe2f14c15757953b70462bde3cb9f5041f1989bb.tar.bz2 historical-fe2f14c15757953b70462bde3cb9f5041f1989bb.zip |
Cleaned and enhanced ebuild
Package-Manager: portage-2.2.0_alpha55/cvs/Linux x86_64
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/getdata/ChangeLog | 8 | ||||
-rw-r--r-- | sci-libs/getdata/Manifest | 11 | ||||
-rw-r--r-- | sci-libs/getdata/getdata-0.6.3-r1.ebuild | 92 | ||||
-rw-r--r-- | sci-libs/getdata/metadata.xml | 4 |
4 files changed, 109 insertions, 6 deletions
diff --git a/sci-libs/getdata/ChangeLog b/sci-libs/getdata/ChangeLog index 00ec1198aa78..7962c51850b0 100644 --- a/sci-libs/getdata/ChangeLog +++ b/sci-libs/getdata/ChangeLog @@ -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 diff --git a/sci-libs/getdata/Manifest b/sci-libs/getdata/Manifest index 69517b712da6..90353da138eb 100644 --- a/sci-libs/getdata/Manifest +++ b/sci-libs/getdata/Manifest @@ -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 index 000000000000..1701235de76b --- /dev/null +++ b/sci-libs/getdata/getdata-0.6.3-r1.ebuild @@ -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" +} diff --git a/sci-libs/getdata/metadata.xml b/sci-libs/getdata/metadata.xml index be3ea5eeb44f..7527ea188d26 100644 --- a/sci-libs/getdata/metadata.xml +++ b/sci-libs/getdata/metadata.xml @@ -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> |