* [gentoo-commits] proj/sci:master commit in: sci-biology/tclust/, sci-biology/tclust/files/
@ 2011-06-25 17:22 Justin Lecher
0 siblings, 0 replies; only message in thread
From: Justin Lecher @ 2011-06-25 17:22 UTC (permalink / raw
To: gentoo-commits
commit: 8eae0874cf943ead6488e9f734faf40ee4bb3d99
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 25 15:25:55 2011 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sat Jun 25 15:25:55 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=8eae0874
Cleaned ebuild
(Portage version: 2.2.0_alpha41/git/Linux x86_64, signed Manifest commit with key 70EB7916)
---
sci-biology/tclust/ChangeLog | 10 +++++
sci-biology/tclust/files/tclust-110625-build.patch | 43 ++++++++++++++++++++
sci-biology/tclust/tclust-0.1.ebuild | 39 ------------------
sci-biology/tclust/tclust-110625.ebuild | 30 ++++++++++++++
4 files changed, 83 insertions(+), 39 deletions(-)
diff --git a/sci-biology/tclust/ChangeLog b/sci-biology/tclust/ChangeLog
new file mode 100644
index 0000000..049bd08
--- /dev/null
+++ b/sci-biology/tclust/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-biology/tclust
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*tclust-110625 (25 Jun 2011)
+
+ 25 Jun 2011; Justin Lecher <jlec@gentoo.org> -tclust-0.1.ebuild,
+ +tclust-110625.ebuild, +files/tclust-110625-build.patch:
+ Cleaned ebuild
+
diff --git a/sci-biology/tclust/files/tclust-110625-build.patch b/sci-biology/tclust/files/tclust-110625-build.patch
new file mode 100644
index 0000000..9474916
--- /dev/null
+++ b/sci-biology/tclust/files/tclust-110625-build.patch
@@ -0,0 +1,43 @@
+ Makefile | 9 ++++-----
+ 1 files changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index f4f69f1..30ba16e 100644
+--- a/Makefile
++++ b/Makefile
+@@ -11,8 +11,8 @@ SYSTYPE := $(shell uname)
+
+ # C compiler
+
+-CC := g++
+-CFLAGS = -O2 -Wall ${SEARCHDIRS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT -fno-exceptions -fno-rtti -fno-strict-aliasing
++CC ?= g++
++CXXFLAGS += -Wall ${SEARCHDIRS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT -fno-exceptions -fno-rtti -fno-strict-aliasing
+
+ %.o : %.c
+ ${CC} ${CFLAGS} -c $< -o $@
+@@ -24,7 +24,7 @@ CFLAGS = -O2 -Wall ${SEARCHDIRS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_
+ ${CC} ${CFLAGS} -c $< -o $@
+
+ %.o : %.cpp
+- ${CC} ${CFLAGS} -c $< -o $@
++ ${CXX} ${CXXFLAGS} -c $< -o $@
+
+ %.o : %.cxx
+ ${CC} ${CFLAGS} -c $< -o $@
+@@ -32,14 +32,13 @@ CFLAGS = -O2 -Wall ${SEARCHDIRS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_
+ # C/C++ linker
+
+ LINKER := g++
+-LDFLAGS =
+ LOADLIBES :=
+
+ .PHONY : all
+ all: tclust
+
+ tclust: ./tclust.o ${GCLDIR}/GBase.o ${GCLDIR}/GStr.o ${GCLDIR}/GArgs.o
+- ${LINKER} ${LDFLAGS} -o $@ ${filter-out %.a %.so, $^} ${LOADLIBES}
++ ${CXX} ${LDFLAGS} -o $@ ${filter-out %.a %.so, $^} ${LOADLIBES}
+
+ # target for removing all object files
+
diff --git a/sci-biology/tclust/tclust-0.1.ebuild b/sci-biology/tclust/tclust-0.1.ebuild
deleted file mode 100644
index e41de07..0000000
--- a/sci-biology/tclust/tclust-0.1.ebuild
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=3
-
-DESCRIPTION="transitive closure clustering tool with overlap filtering options from TIGR Gene Indices project tools"
-HOMEPAGE="http://compbio.dfci.harvard.edu/tgi/software/"
-SRC_URI="ftp://occams.dfci.harvard.edu/pub/bio/tgi/software/tgicl/${PN}.tar.gz
- ftp://occams.dfci.harvard.edu/pub/bio/tgi/software/tgicl/cdbfasta.tar.gz"
-
-LICENSE="Artistic"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND=""
-RDEPEND="${DEPEND}"
-
-S=${WORKDIR}
-
-src_prepare() {
- # we need gclib from cdbfasta.tar.gz bundle which has fewer files than tgi_cpp_library.tar.gz wbut has e.g. GStr.h
- sed -i 's/CFLAGS[ ]*=/CFLAGS :=/; s/-D_REENTRANT/-D_REENTRANT \${CFLAGS}/; s/CFLAGS[ ]*:=[ ]*-O2$//' "${S}"/${PN}/Makefile || die "Failed to run sed"
- sed -i 's#GCLDIR := ../gclib#GCLDIR := ../cdbfasta/gclib#' "${S}"/"${PN}"/Makefile || die
- cd ${PN} || die
- ln -s ../cdbfasta/gcl . || die "Cannot make a softlink"
-}
-
-src_compile() {
- cd ${PN} || die
- emake || die "emake failed in "${S}"/${PN}"
-}
-
-src_install() {
- cd ${PN} || die
- dobin ${PN} || die "Failed to install ${PN} binary"
- newdoc README README.${PN} || die
-}
diff --git a/sci-biology/tclust/tclust-110625.ebuild b/sci-biology/tclust/tclust-110625.ebuild
new file mode 100644
index 0000000..563cdab
--- /dev/null
+++ b/sci-biology/tclust/tclust-110625.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Transitive closure clustering tool with overlap filtering options"
+HOMEPAGE="http://compbio.dfci.harvard.edu/tgi/software/"
+SRC_URI="
+ ftp://occams.dfci.harvard.edu/pub/bio/tgi/software/tgicl/${PN}.tar.gz -> ${P}.tar.gz
+ ftp://occams.dfci.harvard.edu/pub/bio/tgi/software/tgicl/gclib.tar.gz -> gclib-${PV}.tar.gz"
+
+LICENSE="Artistic"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build.patch
+ tc-export CC CXX
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc README
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-25 17:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-25 17:22 [gentoo-commits] proj/sci:master commit in: sci-biology/tclust/, sci-biology/tclust/files/ Justin Lecher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox