public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/SnpEff/
Date: Sun, 14 Feb 2016 17:32:44 +0000 (UTC)	[thread overview]
Message-ID: <1455470236.b39edea7ff9a3cd0e7f0b5986b60fd27a46a20cd.jlec@gentoo> (raw)

commit:     b39edea7ff9a3cd0e7f0b5986b60fd27a46a20cd
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 14 17:17:02 2016 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Feb 14 17:17:16 2016 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=b39edea7

sci-biology/SnpEff: Bump to EAPI=6

* Clean multiverion code

Package-Manager: portage-2.2.27
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 sci-biology/SnpEff/SnpEff-4.1e.ebuild | 48 +++++++++++++++++++----------------
 sci-biology/SnpEff/metadata.xml       |  2 +-
 2 files changed, 27 insertions(+), 23 deletions(-)

diff --git a/sci-biology/SnpEff/SnpEff-4.1e.ebuild b/sci-biology/SnpEff/SnpEff-4.1e.ebuild
index 5e9434a..7ba4236 100644
--- a/sci-biology/SnpEff/SnpEff-4.1e.ebuild
+++ b/sci-biology/SnpEff/SnpEff-4.1e.ebuild
@@ -1,51 +1,55 @@
 # Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: $
+# $Id$
 
-EAPI=5
+EAPI=6
 
 inherit java-pkg-2 java-ant-2
 
-[ "$PV" == "9999" ] && inherit git-2
-
 DESCRIPTION="Annotate SNP changes and predict their effect"
 HOMEPAGE="http://snpeff.sourceforge.net"
-
-if [ "$PV" == "9999" ]; then
-	EGIT_REPO_URI="https://github.com/pcingola/SnpEff.git"
-	#EGIT_BRANCH="v4.1B"
-	KEYWORDS=""
-else
-	SRC_URI="http://sourceforge.net/projects/snpeff/files/snpEff_v4_1e_core.zip
-			http://snpeff.sourceforge.net/SnpSift.html -> ${P}.html"
-	KEYWORDS="~amd64"
-	S="${WORKDIR}"
-fi
+SRC_URI="
+	http://sourceforge.net/projects/snpeff/files/snpEff_v4_1e_core.zip
+	http://snpeff.sourceforge.net/SnpSift.html -> ${P}.html"
 
 LICENSE="LGPL-3"
 SLOT="0"
+KEYWORDS="~amd64"
 IUSE=""
 
 # https://github.com/pcingola/SnpEff/blob/master/README_release.txt
-DEPEND=">=virtual/jre-1.7:*
+DEPEND="
+	>=virtual/jre-1.7:*
 	dev-java/maven-bin:*
 	dev-java/antlr:*"
 RDEPEND="${DEPEND}
 	>=virtual/jdk-1.7:*"
 
+	S="${WORKDIR}"
+
 #src_compile(){
 #	mvn || die
 #}
 
 src_install(){
 	cd .. || die
-	mkdir -p "${D}"/usr/share
+	mkdir -p "${D}"/usr/share || die
 	# but portage does not install the .* files and subdirs, grr!
-	unzip "${DISTDIR}"/snpEff_v4_1e_core.zip -d "${D}"/usr/share || die "failed to unzip ${DISTDIR}/snpEff_v4_1e_core.zip"
-	sed -e 's#$HOME/tools/picard/#/usr/share/picard/lib/#' -i "${D}"/usr/share/snpEff/scripts/annotate_demo_GATK.sh || die
-	sed -e 's#$HOME/tools/gatk/#/usr/share/gatk/lib/#' -i "${D}"/usr/share/snpEff/scripts/annotate_demo_GATK.sh || die
-	sed -e 's#$HOME/snpEff/#/usr/share/snpEff/#' -i "${D}"/usr/share/snpEff/scripts/annotate_demo_GATK.sh || die
-	sed -e 's#$HOME/snpEff/snpEff.config#/usr/share/snpEff/snpEff.config#' -i "${D}"/usr/share/snpEff/scripts/annotate_demo_GATK.sh || die
+	unzip \
+		"${DISTDIR}"/snpEff_v4_1e_core.zip -d "${D}"/usr/share \
+		|| die "failed to unzip ${DISTDIR}/snpEff_v4_1e_core.zip"
+	sed \
+		-e 's#$HOME/tools/picard/#/usr/share/picard/lib/#' \
+		-i "${ED}"/usr/share/snpEff/scripts/annotate_demo_GATK.sh || die
+	sed \
+		-e 's#$HOME/tools/gatk/#/usr/share/gatk/lib/#' \
+		-i "${ED}"/usr/share/snpEff/scripts/annotate_demo_GATK.sh || die
+	sed \
+		-e 's#$HOME/snpEff/#/usr/share/snpEff/#' \
+		-i "${ED}"/usr/share/snpEff/scripts/annotate_demo_GATK.sh || die
+	sed \
+	-e 's#$HOME/snpEff/snpEff.config#/usr/share/snpEff/snpEff.config#' \
+	-i "${ED}"/usr/share/snpEff/scripts/annotate_demo_GATK.sh || die
 }
 
 # now fetch the version-specific databases from http://sourceforge.net/projects/snpeff/files/databases/v4_1/

diff --git a/sci-biology/SnpEff/metadata.xml b/sci-biology/SnpEff/metadata.xml
index 1699e58..f68a1b6 100644
--- a/sci-biology/SnpEff/metadata.xml
+++ b/sci-biology/SnpEff/metadata.xml
@@ -5,7 +5,7 @@
     <email>mmokrejs@fold.natur.cuni.cz</email>
     <name>Martin Mokrejs</name>
   </maintainer>
-<maintainer type="project">
+  <maintainer type="project">
     <email>sci-biology@gentoo.org</email>
     <name>Gentoo Biology Project</name>
   </maintainer>


             reply	other threads:[~2016-02-14 17:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-14 17:32 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-01-24 13:54 [gentoo-commits] proj/sci:master commit in: sci-biology/SnpEff/ Andrew Ammerlaan
2017-02-20 22:50 Martin Mokrejs
2016-12-07 10:15 Martin Mokrejs
2016-12-07 10:00 Martin Mokrejs
2016-08-01 12:44 Martin Mokrejs
2016-07-31 22:15 Martin Mokrejs
2016-07-27  8:56 Martin Mokrejs
2016-02-10 13:31 Martin Mokrejs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1455470236.b39edea7ff9a3cd0e7f0b5986b60fd27a46a20cd.jlec@gentoo \
    --to=jlec@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox