diff options
author | Sébastien Fabbro <sebfabbro@gmail.com> | 2014-03-27 17:46:29 -0700 |
---|---|---|
committer | Sébastien Fabbro <sebfabbro@gmail.com> | 2014-03-27 17:46:29 -0700 |
commit | f15e5fa4a05a114db4bbcb79bfb99a2cbed64cad (patch) | |
tree | d9705ee88a13bff69aec667bc78dcfd4b5706b2f | |
parent | sci-misc/fitscut: Switch to EAPI5, autotools-utils, fixed for prefix (diff) | |
parent | Unify the specialties between live and non-live ebuild so only one if-clause ... (diff) | |
download | sci-f15e5fa4a05a114db4bbcb79bfb99a2cbed64cad.tar.gz sci-f15e5fa4a05a114db4bbcb79bfb99a2cbed64cad.tar.bz2 sci-f15e5fa4a05a114db4bbcb79bfb99a2cbed64cad.zip |
Merge pull request #207 from olifre/genfit-live
Add live-ebuild, add subslot-dependencies
-rw-r--r-- | sci-physics/genfit/ChangeLog | 12 | ||||
-rw-r--r-- | sci-physics/genfit/genfit-02.00.00.ebuild | 22 | ||||
-rw-r--r-- | sci-physics/genfit/genfit-9999.ebuild | 56 |
3 files changed, 80 insertions, 10 deletions
diff --git a/sci-physics/genfit/ChangeLog b/sci-physics/genfit/ChangeLog index f074dc78a..deeb279ac 100644 --- a/sci-physics/genfit/ChangeLog +++ b/sci-physics/genfit/ChangeLog @@ -2,6 +2,18 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 28 Mar 2014; Oliver Freyermuth <o.freyermuth@googlemail.com> + genfit-02.00.00.ebuild, genfit-9999.ebuild: + Unify the specialties between live and non-live ebuild so only one if-clause + is needed. + +*genfit-9999 (25 Mar 2014) + + 25 Mar 2014; Oliver Freyermuth <o.freyermuth@googlemail.com> + genfit-02.00.00.ebuild, +genfit-9999.ebuild: + Add live-ebuild, add subslot-dependency on sci-physics/root (depends on + #505358 to become effective) and dev-libs/boost . + 22 Mar 2014; <o.freyermuth@googlemail.com> genfit-02.00.00.ebuild: Fix incorrect working directory (adapt to zipped file) diff --git a/sci-physics/genfit/genfit-02.00.00.ebuild b/sci-physics/genfit/genfit-02.00.00.ebuild index 596f3e9e1..963de559e 100644 --- a/sci-physics/genfit/genfit-02.00.00.ebuild +++ b/sci-physics/genfit/genfit-02.00.00.ebuild @@ -6,28 +6,30 @@ EAPI=5 inherit cmake-utils versionator -#ESVN_REPO_URI="https://svn.code.sf.net/p/${PN}/code/tags/v$(replace_all_version_separators '-')" -#ESVN_PROJECT="${PN}.${PV}" - -TAG_VER=${PN}-code-1688-tags-v$(replace_all_version_separators '-') +if [[ ${PV} == *9999* ]]; then + inherit subversion + ESVN_REPO_URI="https://svn.code.sf.net/p/${PN}/code/trunk" + ESVN_PROJECT="${PN}.${PV}" +else + TAG_VER=${PN}-code-1688-tags-v$(replace_all_version_separators '-') + SRC_URI="http://sourceforge.net/code-snapshots/svn/g/ge/genfit/code/${TAG_VER}.zip" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + S=${WORKDIR}/${TAG_VER} +fi DESCRIPTION="a generic toolkit for track reconstruction for experiments in particle and nuclear physics" HOMEPAGE="http://genfit.sourceforge.net/Main.html" -SRC_URI="http://sourceforge.net/code-snapshots/svn/g/ge/genfit/code/${TAG_VER}.zip" LICENSE="LGPL-3" SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" IUSE="doc examples" RDEPEND=" - sci-physics/root - dev-libs/boost" + sci-physics/root:= + dev-libs/boost:=" DEPEND="${RDEPEND} doc? ( app-doc/doxygen[dot] )" -S=${WORKDIR}/${TAG_VER} - src_compile() { cmake-utils_src_compile use doc && cmake-utils_src_compile doc diff --git a/sci-physics/genfit/genfit-9999.ebuild b/sci-physics/genfit/genfit-9999.ebuild new file mode 100644 index 000000000..963de559e --- /dev/null +++ b/sci-physics/genfit/genfit-9999.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit cmake-utils versionator + +if [[ ${PV} == *9999* ]]; then + inherit subversion + ESVN_REPO_URI="https://svn.code.sf.net/p/${PN}/code/trunk" + ESVN_PROJECT="${PN}.${PV}" +else + TAG_VER=${PN}-code-1688-tags-v$(replace_all_version_separators '-') + SRC_URI="http://sourceforge.net/code-snapshots/svn/g/ge/genfit/code/${TAG_VER}.zip" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + S=${WORKDIR}/${TAG_VER} +fi + +DESCRIPTION="a generic toolkit for track reconstruction for experiments in particle and nuclear physics" +HOMEPAGE="http://genfit.sourceforge.net/Main.html" + +LICENSE="LGPL-3" +SLOT="0" +IUSE="doc examples" + +RDEPEND=" + sci-physics/root:= + dev-libs/boost:=" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen[dot] )" + +src_compile() { + cmake-utils_src_compile + use doc && cmake-utils_src_compile doc + use examples && cmake-utils_src_compile tests +} + +src_install() { + cmake-utils_src_install + if use examples; then + insinto /usr/share/doc/${PF} + doins -r "${BUILD_DIR}/bin" + doins "${S}/test/makeGeom.C" + doins "${S}/test/README" + fi + cd doc || die + use doc && dohtml -r "${S}/doc/html/"* + echo + elog "Note that there is no support in this ebuild for RAVE yet," + elog "which is also not in portage." + elog "It should be possible to use a local installation of RAVE" + elog "and set:" + elog " export RAVEPATH=<yourRaveDirectory>" + echo +} |