diff options
author | Martin Mokrejs <mmokrejs@fold.natur.cuni.cz> | 2011-12-26 18:11:02 +0100 |
---|---|---|
committer | Martin Mokrejs <mmokrejs@fold.natur.cuni.cz> | 2011-12-26 18:11:02 +0100 |
commit | cbb2b1076148dcff9f1acd272b25d7557071b21e (patch) | |
tree | c11131baae658484b5f5ffe5aa2f5ddceffe6ec2 /sci-biology/OBO-Edit/OBO-Edit-2.1.0.ebuild | |
parent | sci-mathematics/scilab-5.3.3 fixes for jdk-1.7 (diff) | |
download | sci-cbb2b1076148dcff9f1acd272b25d7557071b21e.tar.gz sci-cbb2b1076148dcff9f1acd272b25d7557071b21e.tar.bz2 sci-cbb2b1076148dcff9f1acd272b25d7557071b21e.zip |
Sync ebuild to use install4j as in sci-biology/tablet-bin. Awaiting a fix from upstream so that the installer really respects --destination or -dir options.
(Portage version: 2.1.10.38/git/Linux i686, unsigned Manifest commit)
Diffstat (limited to 'sci-biology/OBO-Edit/OBO-Edit-2.1.0.ebuild')
-rw-r--r-- | sci-biology/OBO-Edit/OBO-Edit-2.1.0.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/sci-biology/OBO-Edit/OBO-Edit-2.1.0.ebuild b/sci-biology/OBO-Edit/OBO-Edit-2.1.0.ebuild new file mode 100644 index 000000000..77bd2409f --- /dev/null +++ b/sci-biology/OBO-Edit/OBO-Edit-2.1.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit toolchain-funcs versionator java-pkg-2 + +MY_PV=$(replace_all_version_separators '-') + +DESCRIPTION="Java-based editor optimized for the OBO biological ontology file format" +HOMEPAGE="http://www.oboedit.org/" +SRC_URI="http://sourceforge.net/projects/geneontology/files/OBO-Edit%202%20%5BLatest%20versions%5D/OBO-Edit%20"${PV}"/"${MY_PV}"_unix_install4j.sh/download -> OBO-Edit_unix_install4j-"${PV}".sh + http://sourceforge.net/projects/geneontology/files/OBO-Edit%202%20%5BLatest%20versions%5D/OBO-Edit%20"${PV}"/ReleaseNotes-"${PV}".txt" + +LICENSE="OBO-Edit" # Artistic-like +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="app-arch/rpm2targz" +RDEPEND="virtual/jre" + +S="${WORKDIR}" + +src_install(){ + mkdir -p "${D}"/opt/OBO-Edit2/.install4j || die "Cannot pre-create "${D}"/opt/OBO-Edit2/.install4j/" + sed "s#\"\${D}\"#"${D}"#g" "${FILESDIR}"/response.varfile > "${D}"/opt/OBO-Edit2/.install4j/response.varfile || die "sed failed" + sed "s#/bin/java\" -Dinstall4j.jvmDir#/bin/java\" -Duser.home="${D}"/../temp -Dinstall4j.jvmDir#" -i "${DISTDIR}"/OBO-Edit_unix_install4j-"${PV}".sh || die "failed to set userHome value" + + sh "${DISTDIR}"/OBO-Edit_unix_install4j-"${PV}".sh -q -overwrite --varfile="${D}"/opt/OBO-Edit2/.install4j/response.varfile --destination="${D}"/opt/OBO-Edit2 -dir "${D}"/opt/OBO-Edit2 || die "Failed to run the self-extracting "${DISTDIR}"/OBO-Edit_unix_install4j-"${PV}".sh file" + find . -name firstrun -delete + find . -name .svn -exec rm -rf '{}' \; + + insinto /opt/ + doins -r OBO-Edit2 + chmod 755 "${ED}"/opt/OBO-Edit2/* + + dodoc "${DISTDIR}"/ReleaseNotes-2.1.0.txt +} |