public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/sci:master commit in: sci-biology/blat/files/, sci-biology/blat/
@ 2016-07-28 11:05 Martin Mokrejs
  0 siblings, 0 replies; only message in thread
From: Martin Mokrejs @ 2016-07-28 11:05 UTC (permalink / raw
  To: gentoo-commits

commit:     53304a0b2f9c9ff476239218ba002c7d6c6e8b9b
Author:     Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Thu Jul 28 11:05:09 2016 +0000
Commit:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Thu Jul 28 11:05:09 2016 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=53304a0b

sci-biology/blat: version bump, fix SRC_URI, update patch

Package-Manager: portage-2.2.28

 sci-biology/blat/blat-36.ebuild        | 46 ++++++++++++++++++++++++++++++++++
 sci-biology/blat/files/36-gentoo.patch | 27 ++++++++++++++++++++
 sci-biology/blat/metadata.xml          |  8 ++++++
 3 files changed, 81 insertions(+)

diff --git a/sci-biology/blat/blat-36.ebuild b/sci-biology/blat/blat-36.ebuild
new file mode 100644
index 0000000..b420bc0
--- /dev/null
+++ b/sci-biology/blat/blat-36.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit eutils toolchain-funcs
+
+MY_PN="${PN}Src"
+
+DESCRIPTION="The BLAST-Like Alignment Tool, a fast genomic sequence aligner"
+HOMEPAGE="http://www.cse.ucsc.edu/~kent/"
+SRC_URI="http://hgwdev.cse.ucsc.edu/~kent/src/${MY_PN}${PV}.zip"
+
+SLOT="0"
+LICENSE="blat"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_PN}"
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+src_prepare() {
+	eapply_user
+	epatch "${FILESDIR}"/${PV}-gentoo.patch
+	sed \
+		-e "1i\CFLAGS=${CFLAGS}" \
+		-e "1i\LDFLAGS=${LDFLAGS}" \
+		-i inc/common.mk || die
+	tc-export CC
+}
+
+src_compile() {
+	MACHTYPE=$(tc-arch)
+	[[ ${MACHTYPE} == "x86" ]] && MACHTYPE="i386"
+	mkdir -p "${S}/bin/${MACHTYPE}"
+	emake MACHTYPE="${MACHTYPE}" HOME="${S}" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+	MACHTYPE=$(tc-arch)
+	[[ ${MACHTYPE} == "x86" ]] && MACHTYPE="i386"
+	dobin "${S}/bin/${MACHTYPE}/"*
+}

diff --git a/sci-biology/blat/files/36-gentoo.patch b/sci-biology/blat/files/36-gentoo.patch
new file mode 100644
index 0000000..d05fe64
--- /dev/null
+++ b/sci-biology/blat/files/36-gentoo.patch
@@ -0,0 +1,27 @@
+--- blatSrc/inc/userApp.mk.old	2014-11-06 04:19:54.000000000 +0100
++++ blatSrc/inc/userApp.mk	2016-07-28 12:45:32.092378879 +0200
+@@ -28,11 +28,11 @@
+ objects = ${O} ${extraObjects} ${externObjects}
+ 
+ ${DESTDIR}${BINDIR}/${A}${EXE}: ${DEPLIBS} ${O} ${extraObjects}
+-	${CC} ${COPT} -o ${DESTDIR}${BINDIR}/${A}${EXE} ${objects} ${LINKLIBS} ${L} -lm
++	${CC} ${COPT} ${CFLAGS} ${LDFLAGS} -o ${DESTDIR}${BINDIR}/${A}${EXE} ${objects} ${LINKLIBS} ${L} -lm
+ 	${STRIP} ${DESTDIR}${BINDIR}/${A}${EXE}
+ 
+ compile:: ${DEPLIBS} ${O} ${extraObjects}
+-	${CC} ${COPT} ${CFLAGS} -o ${A}${EXE} ${objects} ${LINKLIBS} ${L} -lm
++	${CC} ${COPT} ${CFLAGS} ${LDFLAGS} -o ${A}${EXE} ${objects} ${LINKLIBS} ${L} -lm
+ 
+ install:: compile
+ 	rm -f ${DESTDIR}${BINDIR}/${A}${EXE}
+--- blatSrc/blat/makefile.old	2011-03-29 03:43:44.000000000 +0200
++++ blatSrc/blat/makefile	2016-07-28 12:41:11.905261175 +0200
+@@ -7,7 +7,7 @@
+ O = blat.o
+ 
+ blat: $O $(MYLIBS)
+-	${CC} ${COPT} ${CFLAGS} -o ${DESTDIR}${BINDIR}/blat $O $(MYLIBS) $L
++	${CC} ${COPT} ${CFLAGS} ${LDFLAGS} -o ${DESTDIR}${BINDIR}/blat $O $(MYLIBS) $L
+ 	${STRIP} ${DESTDIR}${BINDIR}/blat${EXE}
+ 
+ all:

diff --git a/sci-biology/blat/metadata.xml b/sci-biology/blat/metadata.xml
new file mode 100644
index 0000000..959160f
--- /dev/null
+++ b/sci-biology/blat/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="project">
+    <email>sci-biology@gentoo.org</email>
+    <name>Gentoo Biology Project</name>
+  </maintainer>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-28 11:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-28 11:05 [gentoo-commits] proj/sci:master commit in: sci-biology/blat/files/, sci-biology/blat/ Martin Mokrejs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox