Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-biology/elph/files/, sci-biology/elph/
Date: Wed, 08 Mar 2017 18:47:38
Message-Id: 1488998838.c7f45dbb5043e60a8b4c0a091fcb0465ffbbef50.soap@gentoo
1 commit: c7f45dbb5043e60a8b4c0a091fcb0465ffbbef50
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 8 18:46:35 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 8 18:47:18 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7f45dbb
7
8 sci-biology/elph: Modernise to EAPI 6
9
10 Package-Manager: Portage-2.3.4, Repoman-2.3.2
11
12 sci-biology/elph/elph-1.0.1-r1.ebuild | 31 ++++++++++++
13 .../elph/files/elph-1.0.1-fix-build-system.patch | 55 ++++++++++++++++++++++
14 2 files changed, 86 insertions(+)
15
16 diff --git a/sci-biology/elph/elph-1.0.1-r1.ebuild b/sci-biology/elph/elph-1.0.1-r1.ebuild
17 new file mode 100644
18 index 00000000000..c166dd93e41
19 --- /dev/null
20 +++ b/sci-biology/elph/elph-1.0.1-r1.ebuild
21 @@ -0,0 +1,31 @@
22 +# Copyright 1999-2017 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +inherit toolchain-funcs
28 +
29 +DESCRIPTION="Estimated Locations of Pattern Hits - Motif finder program"
30 +LICENSE="Artistic"
31 +HOMEPAGE="http://cbcb.umd.edu/software/ELPH/"
32 +SRC_URI="ftp://ftp.cbcb.umd.edu/pub/software/elph/ELPH-${PV}.tar.gz"
33 +
34 +SLOT="0"
35 +IUSE=""
36 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
37 +
38 +S=${WORKDIR}/${PN^^}/sources
39 +
40 +PATCHES=( "${FILESDIR}/${PN}-1.0.1-fix-build-system.patch" )
41 +
42 +src_configure() {
43 + tc-export CC CXX
44 +}
45 +
46 +src_install() {
47 + dobin elph
48 +
49 + cd "${WORKDIR}"/ELPH || die
50 + dodoc VERSION
51 + newdoc Readme.ELPH README
52 +}
53
54 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
55 new file mode 100644
56 index 00000000000..9afbb68666d
57 --- /dev/null
58 +++ b/sci-biology/elph/files/elph-1.0.1-fix-build-system.patch
59 @@ -0,0 +1,55 @@
60 +Make build system respect user variables
61 +
62 +--- a/Makefile
63 ++++ b/Makefile
64 +@@ -1,42 +1,26 @@
65 +-CLASSDIR := .
66 +-
67 +-# Directories to search for header files
68 +-SEARCHDIRS := -I- -I${CLASSDIR}
69 +-
70 +-
71 +-SYSTYPE := $(shell uname)
72 +-
73 +-# C compiler
74 +-
75 +-CC := g++
76 +-CFLAGS = -Wall ${SEARCHDIRS} -fno-exceptions -fno-rtti -D_REENTRANT -g
77 ++my_CPPFLAGS = -D_REENTRANT -I.
78 +
79 + %.o : %.c
80 +- ${CC} ${CFLAGS} -c $< -o $@
81 ++ $(CC) -Wall $(CFLAGS) $(my_CPPFLAGS) $(CPPFLAGS) -c $< -o $@
82 +
83 + %.o : %.cc
84 +- ${CC} ${CFLAGS} -c $< -o $@
85 ++ $(CXX) -Wall $(CXXFLAGS) $(my_CPPFLAGS) $(CPPFLAGS) -c $< -o $@
86 +
87 + %.o : %.C
88 +- ${CC} ${CFLAGS} -c $< -o $@
89 ++ $(CXX) -Wall $(CXXFLAGS) $(my_CPPFLAGS) $(CPPFLAGS) -c $< -o $@
90 +
91 + %.o : %.cpp
92 +- ${CC} ${CFLAGS} -c $< -o $@
93 ++ $(CXX) -Wall $(CXXFLAGS) $(my_CPPFLAGS) $(CPPFLAGS) -c $< -o $@
94 +
95 + %.o : %.cxx
96 +- ${CC} ${CFLAGS} -c $< -o $@
97 ++ $(CXX) -Wall $(CXXFLAGS) $(my_CPPFLAGS) $(CPPFLAGS) -c $< -o $@
98 +
99 + # C/C++ linker
100 +-
101 +-LINKER := g++
102 +-LDFLAGS =
103 +-LOADLIBES :=
104 +-
105 + .PHONY : all
106 + all: elph
107 +
108 +-elph: ./elph.o ${CLASSDIR}/motif.o ${CLASSDIR}/GBase.o ${CLASSDIR}/GString.o ${CLASSDIR}/GArgs.o
109 +- ${LINKER} ${LDFLAGS} -o $@ ${filter-out %.a %.so, $^} ${LOADLIBES}
110 ++elph: elph.o motif.o GBase.o GString.o GArgs.o
111 ++ $(CXX) $(LDFLAGS) $(CXXFLAGS) -o $@ $^
112 +
113 + # target for removing all object files
114 +