diff options
author | Christoph Junghans <kleiner_otti@gmx.de> | 2010-12-17 20:40:44 +0100 |
---|---|---|
committer | Christoph Junghans <kleiner_otti@gmx.de> | 2010-12-18 14:52:45 +0100 |
commit | 85be17103abf44e7dab63068971bc019ced23c2f (patch) | |
tree | b98f39f0ff9f83fdffc802a6bd73a0ca68351763 /sci-libs/votca-tools/votca-tools-9999.ebuild | |
parent | [sci-libs/votca-tools] removed link to live ebuild (diff) | |
download | sci-85be17103abf44e7dab63068971bc019ced23c2f.tar.gz sci-85be17103abf44e7dab63068971bc019ced23c2f.tar.bz2 sci-85be17103abf44e7dab63068971bc019ced23c2f.zip |
[sci-libs/votca-tools] using autotools-utils eclass
(Portage version: 2.1.9.24/git/Linux i686, signed Manifest commit with key A9ECD7F9)
Diffstat (limited to 'sci-libs/votca-tools/votca-tools-9999.ebuild')
-rw-r--r-- | sci-libs/votca-tools/votca-tools-9999.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/sci-libs/votca-tools/votca-tools-9999.ebuild b/sci-libs/votca-tools/votca-tools-9999.ebuild new file mode 100644 index 000000000..2d064119d --- /dev/null +++ b/sci-libs/votca-tools/votca-tools-9999.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="3" + +inherit eutils autotools-utils + +if [ "${PV}" != "9999" ]; then + SRC_URI="http://votca.googlecode.com/files/${PF}.tar.gz" +else + SRC_URI="" + inherit mercurial + EHG_REPO_URI="https://tools.votca.googlecode.com/hg" + S="${WORKDIR}/${EHG_REPO_URI##*/}" +fi + +DESCRIPTION="Votca tools library" +HOMEPAGE="http://www.votca.org" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="-boost +fftw +gsl static-libs" + +RDEPEND="fftw? ( sci-libs/fftw:3.0 ) + dev-libs/expat + gsl? ( sci-libs/gsl ) + boost? ( dev-libs/boost )" + +DEPEND="${RDEPEND} + >=app-text/txt2tags-2.5 + dev-util/pkgconfig" + +src_prepare() { + use gsl || ewarn "Disabling gsl will lead to reduced functionality" + use fftw || ewarn "Disabling fftw will lead to reduced functionality" + + #remove bundled libs + rm -rf src/libexpat + if use boost; then + rm -rf src/libboost + else + #fix a qa issue ../../config is not support as m4 dir + mkdir -p src/libboost/config + sed -i 's@\.\./\.\./config@config@' \ + src/libboost/configure.ac \ + src/libboost/Makefile.am + fi + eautoreconf || die "eautoreconf failed" +} + +src_configure() { + local myconf + use boost && myconf="--disable-votca-boost" || myconf="--enable-votca-boost" + + myeconfargs=( ${myconf} --disable-rc-files + $(use_with gsl) + $(use_with fftw) + ) + autotools-utils_src_configure +} + +src_install() { + DOCS=(${AUTOTOOLS_BUILD_DIR}/CHANGELOG NOTICE) + autotools-utils_src_install +} |