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/pilercr/files/, sci-biology/pilercr/
Date: Wed, 08 Mar 2017 22:17:18
Message-Id: 1489011405.8fbc78adda521381c3f87d7da4c9d4dc7a674647.soap@gentoo
1 commit: 8fbc78adda521381c3f87d7da4c9d4dc7a674647
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 8 21:35:40 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 8 22:16:45 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fbc78ad
7
8 sci-biology/pilercr: Modernise to EAPI 6
9
10 Package-Manager: Portage-2.3.4, Repoman-2.3.2
11 Closes: https://github.com/gentoo/gentoo/pull/4165
12
13 .../files/pilercr-1.0-fix-build-system.patch | 34 ++++++++++++++++++++++
14 sci-biology/pilercr/pilercr-1.0-r1.ebuild | 30 +++++++++++++++++++
15 sci-biology/pilercr/pilercr-1.0.ebuild | 30 -------------------
16 3 files changed, 64 insertions(+), 30 deletions(-)
17
18 diff --git a/sci-biology/pilercr/files/pilercr-1.0-fix-build-system.patch b/sci-biology/pilercr/files/pilercr-1.0-fix-build-system.patch
19 new file mode 100644
20 index 00000000000..3754f80a934
21 --- /dev/null
22 +++ b/sci-biology/pilercr/files/pilercr-1.0-fix-build-system.patch
23 @@ -0,0 +1,34 @@
24 +Make build system honour user variables
25 +
26 +--- a/Makefile
27 ++++ b/Makefile
28 +@@ -1,7 +1,4 @@
29 +-CFLAGS = -O3 -funroll-loops -Winline -DNDEBUG=1
30 +-#CFLAGS = -O3 -funroll-loops -Winline
31 +-LDLIBS = -lm -static
32 +-# LDLIBS = -lm
33 ++LDLIBS = -lm
34 +
35 + OBJ = .o
36 + EXE =
37 +@@ -9,17 +6,13 @@
38 + RM = rm -f
39 + CP = cp
40 +
41 +-GPP = g++
42 +-LD = $(GPP) $(CFLAGS)
43 +-CPP = $(GPP) -c $(CFLAGS)
44 +-
45 + all: pilercr
46 +
47 + CPPSRC = $(sort $(wildcard *.cpp))
48 + CPPOBJ = $(subst .cpp,.o,$(CPPSRC))
49 +
50 +-$(CPPOBJ): %.o: %.cpp
51 +- $(CPP) $< -o $@
52 ++%.o: %.cpp
53 ++ $(CXX) $(CXXFLAGS) -DNDEBUG $(CPPFLAGS) -c $< -o $@
54 +
55 + pilercr: $(CPPOBJ)
56 +- $(LD) -o pilercr $(CPPOBJ) $(LDLIBS)
57 ++ $(CXX) $(LDFLAGS) $(CXXFLAGS) -o pilercr $(CPPOBJ) $(LDLIBS)
58
59 diff --git a/sci-biology/pilercr/pilercr-1.0-r1.ebuild b/sci-biology/pilercr/pilercr-1.0-r1.ebuild
60 new file mode 100644
61 index 00000000000..8b1abd5de7d
62 --- /dev/null
63 +++ b/sci-biology/pilercr/pilercr-1.0-r1.ebuild
64 @@ -0,0 +1,30 @@
65 +# Copyright 1999-2017 Gentoo Foundation
66 +# Distributed under the terms of the GNU General Public License v2
67 +
68 +EAPI=6
69 +
70 +inherit toolchain-funcs
71 +
72 +DESCRIPTION="Analysis of Clustered Regularly Interspaced Short Palindromic Repeats (CRISPRs)"
73 +HOMEPAGE="http://www.drive5.com/pilercr/"
74 +SRC_URI="http://www.drive5.com/pilercr/pilercr1.06.tar.gz -> ${P}.tar.gz"
75 +
76 +LICENSE="public-domain"
77 +SLOT="0"
78 +KEYWORDS="amd64 x86"
79 +IUSE=""
80 +
81 +S=${WORKDIR}
82 +
83 +PATCHES=(
84 + "${FILESDIR}"/${PN}-1.0-fix-build-system.patch
85 + "${FILESDIR}"/${PN}-1.0-gcc43.patch
86 +)
87 +
88 +src_configure() {
89 + tc-export CXX
90 +}
91 +
92 +src_install() {
93 + dobin ${PN}
94 +}
95
96 diff --git a/sci-biology/pilercr/pilercr-1.0.ebuild b/sci-biology/pilercr/pilercr-1.0.ebuild
97 deleted file mode 100644
98 index ae34e105c64..00000000000
99 --- a/sci-biology/pilercr/pilercr-1.0.ebuild
100 +++ /dev/null
101 @@ -1,30 +0,0 @@
102 -# Copyright 1999-2012 Gentoo Foundation
103 -# Distributed under the terms of the GNU General Public License v2
104 -
105 -EAPI=4
106 -
107 -inherit eutils toolchain-funcs
108 -
109 -DESCRIPTION="Analysis of Clustered Regularly Interspaced Short Palindromic Repeats (CRISPRs)"
110 -HOMEPAGE="http://www.drive5.com/pilercr/"
111 -#SRC_URI="http://www.drive5.com/pilercr/pilercr.tar.gz"
112 -SRC_URI="mirror://gentoo/${P}.tar.gz"
113 -
114 -LICENSE="public-domain"
115 -SLOT="0"
116 -KEYWORDS="amd64 x86"
117 -IUSE=""
118 -
119 -S="${WORKDIR}"
120 -
121 -src_prepare() {
122 - epatch "${FILESDIR}"/${P}-gcc43.patch
123 -}
124 -
125 -src_compile() {
126 - emake GPP="$(tc-getCXX)" CFLAGS="${CXXFLAGS}"
127 -}
128 -
129 -src_install() {
130 - dobin ${PN}
131 -}