public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Martin Mokrejs" <mmokrejs@fold.natur.cuni.cz>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/sra_sdk/
Date: Fri, 28 Dec 2012 19:19:14 +0000 (UTC)	[thread overview]
Message-ID: <1356721900.a62460750fb06d27ecfffb78dc3f1f34bb3321d7.mmokrejs@gentoo> (raw)

commit:     a62460750fb06d27ecfffb78dc3f1f34bb3321d7
Author:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Fri Dec 28 19:11:40 2012 +0000
Commit:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Fri Dec 28 19:11:40 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=a6246075

sci-biology/sra_sdk-2.2.2a: a version bump, still requires MAKEOPTS=-j1 and copies softlinks to binaries and libraries as files, so everything is in 3 physical copies

Package-Manager: portage-2.1.11.38

---
 sci-biology/sra_sdk/ChangeLog             |    9 ++-
 sci-biology/sra_sdk/sra_sdk-2.2.2a.ebuild |  106 +++++++++++++++++++++++++++++
 2 files changed, 114 insertions(+), 1 deletions(-)

diff --git a/sci-biology/sra_sdk/ChangeLog b/sci-biology/sra_sdk/ChangeLog
index 6965e3d..a57b683 100644
--- a/sci-biology/sra_sdk/ChangeLog
+++ b/sci-biology/sra_sdk/ChangeLog
@@ -2,6 +2,14 @@
 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*sra_sdk-2.2.2a (28 Dec 2012)
+
+  28 Dec 2012; Martin Mokrejs <mmokrejs@fold.natur.cuni.cz>
+  +sra_sdk-2.2.2a.ebuild:
+  sci-biology/sra_sdk-2.2.2a: a version bump, still requires MAKEOPTS=-j1 and
+  copies softlinks to binaries and libraries as files, so everything is in 3
+  physical copies
+
   15 Mar 2012; Martin Mokrejs <mmokrejs@fold.natur.cuni.cz>
   sra_sdk-2.1.9.ebuild:
   added missing insinto sra_sdk-2.1.9.ebuild
@@ -53,4 +61,3 @@
   sra_sdk-2.0.1.ebuild:
   backbone of a new package, should probably use a lot of stuff from
   ncbi-tools++ ebuild
-

diff --git a/sci-biology/sra_sdk/sra_sdk-2.2.2a.ebuild b/sci-biology/sra_sdk/sra_sdk-2.2.2a.ebuild
new file mode 100644
index 0000000..c759f57
--- /dev/null
+++ b/sci-biology/sra_sdk/sra_sdk-2.2.2a.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit eutils
+
+W="${WORKDIR}"/"${P}"
+
+DESCRIPTION="NCBI Sequence Read Archive (SRA) sratoolkit"
+HOMEPAGE="http://trace.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?cmd=show&f=faspftp_runs_v1&m=downloads&s=download_sra"
+SRC_URI="http://ftp-private.ncbi.nlm.nih.gov/sra/sdk/2.2.2a/sra_sdk-"${PV}".tar.gz"
+# http://ftp-private.ncbi.nlm.nih.gov/sra/sdk/2.2.2a/sratoolkit.2.2.2a-centos_linux64.tar.gz
+
+LICENSE="public-domain"
+SLOT="0"
+#KEYWORDS=""
+KEYWORDS="~amd64 ~x86"
+IUSE="static"
+
+DEPEND="app-shells/bash
+	sys-libs/zlib
+	app-arch/bzip2
+	dev-libs/libxml2"
+RDEPEND="${DEPEND}"
+
+# upstream says:
+# icc, icpc are supported: tested with 11.0 (64-bit) and 10.1 (32-bit), 32-bit 11.0 does not work
+
+#src_prepare(){
+	# epatch "${FILESDIR}"/sra_sdk-destdir.patch || die
+	# epatch "${FILESDIR}"/tools_vdb-vcopy_Makefile.patch || die
+	# epatch "${FILESDIR}"/libs_sra_Makefile.patch || die
+	# mkdir -p /var/tmp/portage/sci-biology/"${P}"/image//var/tmp/portage/sci-biology/
+	# ln -s /var/tmp/portage/sci-biology/"${P}" /var/tmp/portage/sci-biology/"${P}"/image//var/tmp/portage/sci-biology/"${P}"
+
+#}
+
+src_compile(){
+	# # COMP env variable may have 'GCC' or 'ICC' values
+	#if use static; then
+	#	emake static LIBDIR=/usr/lib64 DESTDIR="${D}"
+	#else
+	#	emake dynamic LIBDIR=/usr/lib64 DESTDIR="${D}"
+	#fi
+
+	#LIBXML_INCLUDES="/usr/include/libxml2" make -j1 OUTDIR="${WORKDIR}"/objdir out LIBDIR=/usr/lib64 DESTDIR="${D}" || die
+	#LIBXML_INCLUDES="/usr/include/libxml2" make -j1 OUTDIR="${WORKDIR}"/objdir LIBDIR=/usr/lib64 DESTDIR="${D}" || die
+
+	# preserve the libs written directly into $DESTDIR by ar/ld/gcc
+	#mkdir -p "${WORKDIR}"/objdir/linux/rel/gcc/x86_64/lib
+	#mv "${D}"/usr/lib64/* "${WORKDIR}"/objdir/linux/rel/gcc/x86_64/lib/
+	make OUTDIR="${WORKDIR}"/objdir out || die
+	make dynamic || die
+	make release || die
+	emake || die
+}
+
+src_install(){
+	rm -rf  /var/tmp/portage/sci-biology/"${P}"/image/var
+	# BUG: at the moment every binary is installed three times, e.g.:
+	# -rwxr-xr-x 1 root root 1797720 Sep 23 01:31 abi-dump
+	# -rwxr-xr-x 1 root root 1797720 Sep 23 01:31 abi-dump.2
+	# -rwxr-xr-x 1 root root 1797720 Sep 23 01:31 abi-dump.2.1.6
+	if use amd64; then
+		builddir="x86_64"
+	elif use x86; then
+		builddir="i386"
+	fi
+	mkdir "${D}"/usr
+	mkdir "${D}"/usr/bin
+	mkdir -p "${D}"/usr/lib/ncbi
+	mkdir -p "${D}"/usr/ncbi/schema
+
+	OBJDIR="${WORKDIR}"/objdir/linux/gcc/dyn/"${builddir}"/rel
+
+	# BUG: neither 'doins -r' nor cp --preserve=all work
+	#insinto /usr/bin
+	#doins -r "${WORKDIR}"/objdir/linux/rel/gcc/"${builddir}"/bin/*
+	for f in "${OBJDIR}"/bin/*; do cp --preserve=all "$f" "${D}"/usr/bin/ || die "$f copying failed" ; done
+
+
+
+	# install the main libs and the ncbi/vdb-copy.kfg file
+	insinto /usr/lib/ncbi
+	doins "${OBJDIR}"/lib/ncbi/*
+
+	# zap the subdirectory so that copying below does not fail
+	rm -rf "${OBJDIR}"/lib/ncbi
+
+
+
+	# BUG: neither the dolib nor cp --preserve=all work
+	#insinto /usr/lib64
+	#dolib "${WORKDIR}"/objdir/linux/rel/gcc/"${builddir}"/lib/*
+	mkdir -p "${D}"/usr/lib64
+	for f in "${OBJDIR}"/lib/*; do cp --preserve=all "$f" "${D}"/usr/lib64/ || die "$f copying failed" ; done
+
+	insinto /usr/ncbi/schema
+	doins "${W}"/interfaces/align/*.vschema
+	doins "${W}"/interfaces/sra/*.vschema
+	doins "${W}"/interfaces/vdb/*.vschema
+	doins "${W}"/interfaces/ncbi/*.vschema
+	doins "${W}"/interfaces/insdc/*.vschema
+}


             reply	other threads:[~2012-12-28 19:19 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-28 19:19 Martin Mokrejs [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-02-04  5:42 [gentoo-commits] proj/sci:master commit in: sci-biology/sra_sdk/ Andrew Ammerlaan
2021-01-13 21:06 Andrew Ammerlaan
2015-09-22  8:19 Justin Lecher
2013-03-03 17:52 Justin Lecher
2012-03-15 22:58 Martin Mokrejs
2012-03-15 21:23 Martin Mokrejs
2012-02-28 16:36 Martin Mokrejs
2012-02-28 16:35 Martin Mokrejs
2012-02-06 18:56 Martin Mokrejs
2012-02-06 18:26 Martin Mokrejs
2011-09-22 23:35 Martin Mokrejs
2011-09-22 21:34 Martin Mokrejs
2011-07-30 11:08 Martin Mokrejs
2011-06-10 15:37 Martin Mokrejs
2011-06-10 15:30 Martin Mokrejs
2011-06-10 15:23 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=1356721900.a62460750fb06d27ecfffb78dc3f1f34bb3321d7.mmokrejs@gentoo \
    --to=mmokrejs@fold.natur.cuni.cz \
    --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