jlec        14/09/25 15:20:53

  Modified:             ChangeLog
  Added:                samtools-1.0-r1.ebuild
  Log:
  sci-biology/samtools: Install bam headers and create libbam.so, #523644
  
  (Portage version: 2.2.13/cvs/Linux x86_64, signed Manifest commit with key 
B9D4F231BD1558AB!)

Revision  Changes    Path
1.20                 sci-biology/samtools/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/samtools/ChangeLog?rev=1.20&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/samtools/ChangeLog?rev=1.20&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/samtools/ChangeLog?r1=1.19&r2=1.20

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-biology/samtools/ChangeLog,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- ChangeLog   24 Sep 2014 08:12:27 -0000      1.19
+++ ChangeLog   25 Sep 2014 15:20:53 -0000      1.20
@@ -1,6 +1,12 @@
 # ChangeLog for sci-biology/samtools
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-biology/samtools/ChangeLog,v 1.19 
2014/09/24 08:12:27 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/samtools/ChangeLog,v 1.20 
2014/09/25 15:20:53 jlec Exp $
+
+*samtools-1.0-r1 (25 Sep 2014)
+
+  25 Sep 2014; Justin Lecher <[email protected]> +samtools-1.0-r1.ebuild,
+  +files/samtools-1.0-buildsystem.patch:
+  Install bam headers and create libbam.so, #523644
 
   24 Sep 2014; Justin Lecher <[email protected]> samtools-1.0.ebuild:
   Add missing build dep, #523586



1.1                  sci-biology/samtools/samtools-1.0-r1.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/samtools/samtools-1.0-r1.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/samtools/samtools-1.0-r1.ebuild?rev=1.1&content-type=text/plain

Index: samtools-1.0-r1.ebuild
===================================================================
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 
/var/cvsroot/gentoo-x86/sci-biology/samtools/samtools-1.0-r1.ebuild,v 1.1 
2014/09/25 15:20:53 jlec Exp $

EAPI=5

PYTHON_COMPAT=( python2_7 )

inherit eutils multilib python-r1 toolchain-funcs

DESCRIPTION="Utilities for SAM (Sequence Alignment/Map), a format for large 
nucleotide sequence alignments"
HOMEPAGE="http://www.htslib.org/";
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos"
IUSE="examples"

REQUIRED_USE="${PYTHON_REQUIRED_USE}"

CDEPEND="
        sys-libs/ncurses
        sci-libs/htslib"

RDEPEND="${CDEPEND}
        dev-lang/lua
        dev-lang/perl"
DEPEND="${CDEPEND}
        virtual/pkgconfig"

src_prepare() {
        find htslib-1.0 -delete || die

        sed -i 's~/software/bin/python~/usr/bin/env python~' 
"${S}"/misc/varfilter.py || die

        epatch "${FILESDIR}"/${P}-buildsystem.patch

        tc-export CC AR

        sed \
                -e '/htslib.mk/d' \
                -i Makefile || die

}

src_compile() {
        local mymakeargs=(
                LIBCURSES="$($(tc-getPKG_CONFIG) --libs ncurses)"
                HTSDIR="${EPREFIX}/usr/include"
                HTSLIB=$($(tc-getPKG_CONFIG) --libs htslib)
                BAMLIB="libbam.so"
                )
        emake "${mymakeargs[@]}"
}

src_install() {
        dobin samtools $(find misc -type f -executable)

        python_replicate_script "${ED}"/usr/bin/varfilter.py
        dolib.so libbam.so*

        insinto /usr/include/bam
        doins *.h

        doman ${PN}.1
        dodoc AUTHORS NEWS README

        if use examples; then
                insinto /usr/share/${PN}
                doins -r examples
        fi
}




Reply via email to