From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-biology/elph/files/, sci-biology/elph/
Date: Wed, 8 Mar 2017 18:47:34 +0000 (UTC) [thread overview]
Message-ID: <1488998838.c7f45dbb5043e60a8b4c0a091fcb0465ffbbef50.soap@gentoo> (raw)
commit: c7f45dbb5043e60a8b4c0a091fcb0465ffbbef50
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 8 18:46:35 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed Mar 8 18:47:18 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7f45dbb
sci-biology/elph: Modernise to EAPI 6
Package-Manager: Portage-2.3.4, Repoman-2.3.2
sci-biology/elph/elph-1.0.1-r1.ebuild | 31 ++++++++++++
.../elph/files/elph-1.0.1-fix-build-system.patch | 55 ++++++++++++++++++++++
2 files changed, 86 insertions(+)
diff --git a/sci-biology/elph/elph-1.0.1-r1.ebuild b/sci-biology/elph/elph-1.0.1-r1.ebuild
new file mode 100644
index 00000000000..c166dd93e41
--- /dev/null
+++ b/sci-biology/elph/elph-1.0.1-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Estimated Locations of Pattern Hits - Motif finder program"
+LICENSE="Artistic"
+HOMEPAGE="http://cbcb.umd.edu/software/ELPH/"
+SRC_URI="ftp://ftp.cbcb.umd.edu/pub/software/elph/ELPH-${PV}.tar.gz"
+
+SLOT="0"
+IUSE=""
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+
+S=${WORKDIR}/${PN^^}/sources
+
+PATCHES=( "${FILESDIR}/${PN}-1.0.1-fix-build-system.patch" )
+
+src_configure() {
+ tc-export CC CXX
+}
+
+src_install() {
+ dobin elph
+
+ cd "${WORKDIR}"/ELPH || die
+ dodoc VERSION
+ newdoc Readme.ELPH README
+}
diff --git a/sci-biology/elph/files/elph-1.0.1-fix-build-system.patch b/sci-biology/elph/files/elph-1.0.1-fix-build-system.patch
new file mode 100644
index 00000000000..9afbb68666d
--- /dev/null
+++ b/sci-biology/elph/files/elph-1.0.1-fix-build-system.patch
@@ -0,0 +1,55 @@
+Make build system respect user variables
+
+--- a/Makefile
++++ b/Makefile
+@@ -1,42 +1,26 @@
+-CLASSDIR := .
+-
+-# Directories to search for header files
+-SEARCHDIRS := -I- -I${CLASSDIR}
+-
+-
+-SYSTYPE := $(shell uname)
+-
+-# C compiler
+-
+-CC := g++
+-CFLAGS = -Wall ${SEARCHDIRS} -fno-exceptions -fno-rtti -D_REENTRANT -g
++my_CPPFLAGS = -D_REENTRANT -I.
+
+ %.o : %.c
+- ${CC} ${CFLAGS} -c $< -o $@
++ $(CC) -Wall $(CFLAGS) $(my_CPPFLAGS) $(CPPFLAGS) -c $< -o $@
+
+ %.o : %.cc
+- ${CC} ${CFLAGS} -c $< -o $@
++ $(CXX) -Wall $(CXXFLAGS) $(my_CPPFLAGS) $(CPPFLAGS) -c $< -o $@
+
+ %.o : %.C
+- ${CC} ${CFLAGS} -c $< -o $@
++ $(CXX) -Wall $(CXXFLAGS) $(my_CPPFLAGS) $(CPPFLAGS) -c $< -o $@
+
+ %.o : %.cpp
+- ${CC} ${CFLAGS} -c $< -o $@
++ $(CXX) -Wall $(CXXFLAGS) $(my_CPPFLAGS) $(CPPFLAGS) -c $< -o $@
+
+ %.o : %.cxx
+- ${CC} ${CFLAGS} -c $< -o $@
++ $(CXX) -Wall $(CXXFLAGS) $(my_CPPFLAGS) $(CPPFLAGS) -c $< -o $@
+
+ # C/C++ linker
+-
+-LINKER := g++
+-LDFLAGS =
+-LOADLIBES :=
+-
+ .PHONY : all
+ all: elph
+
+-elph: ./elph.o ${CLASSDIR}/motif.o ${CLASSDIR}/GBase.o ${CLASSDIR}/GString.o ${CLASSDIR}/GArgs.o
+- ${LINKER} ${LDFLAGS} -o $@ ${filter-out %.a %.so, $^} ${LOADLIBES}
++elph: elph.o motif.o GBase.o GString.o GArgs.o
++ $(CXX) $(LDFLAGS) $(CXXFLAGS) -o $@ $^
+
+ # target for removing all object files
+
reply other threads:[~2017-03-08 18:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1488998838.c7f45dbb5043e60a8b4c0a091fcb0465ffbbef50.soap@gentoo \
--to=soap@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