[gentoo-commits] repo/gentoo:master commit in: sci-chemistry/suitename/, sci-chemistry/suitename/files/

2020-09-16 Thread David Seifert
commit: edf208c731f127baeda79fecafe9834628d81c2c
Author: David Seifert  gentoo  org>
AuthorDate: Wed Sep 16 20:16:25 2020 +
Commit: David Seifert  gentoo  org>
CommitDate: Wed Sep 16 20:16:25 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edf208c7

sci-chemistry/suitename: Port to EAPI 7

Closes: https://bugs.gentoo.org/742020
Package-Manager: Portage-3.0.7, Repoman-3.0.1
Signed-off-by: David Seifert  gentoo.org>

 ...0.3.070628-Wimplicit-function-declaration.patch | 33 ++
 .../files/suitename-0.3.070628-makefile.patch  | 29 +++
 .../suitename/suitename-0.3.070628.ebuild  | 25 
 3 files changed, 74 insertions(+), 13 deletions(-)

diff --git 
a/sci-chemistry/suitename/files/suitename-0.3.070628-Wimplicit-function-declaration.patch
 
b/sci-chemistry/suitename/files/suitename-0.3.070628-Wimplicit-function-declaration.patch
new file mode 100644
index 000..762715abdd4
--- /dev/null
+++ 
b/sci-chemistry/suitename/files/suitename-0.3.070628-Wimplicit-function-declaration.patch
@@ -0,0 +1,33 @@
+--- a/suitename.c
 b/suitename.c
+@@ -25,7 +25,7 @@
+ /*0.2.070628 triage reports zeta-1, epsilon-1, delta-1,... Ltriage codes */
+ 
+ 
/main()***/
+-main(int argc, char** argv)
++int main(int argc, char** argv)
+ {
+int  LOK=1,ibin=0,jclst=0;
+char sour[32];
+--- a/suiteninit.c
 b/suiteninit.c
+@@ -9,6 +9,8 @@
+ #include "suiteninpt.h"
+ #include "suitenout.h"
+ 
++#include 
++
+ 
/initializations()/
+ int  initializations(void)
+ {
+--- a/suitenutil.c
 b/suitenutil.c
+@@ -6,6 +6,8 @@
+ 
+ #include "suiteninit.h"
+ 
++#include 
++
+ 
/vector7ab()**/
+ void vector7ab(float* atob, float* a, float* b)
+ {

diff --git a/sci-chemistry/suitename/files/suitename-0.3.070628-makefile.patch 
b/sci-chemistry/suitename/files/suitename-0.3.070628-makefile.patch
new file mode 100644
index 000..b4766d4238d
--- /dev/null
+++ b/sci-chemistry/suitename/files/suitename-0.3.070628-makefile.patch
@@ -0,0 +1,29 @@
+--- a/Makefile.linux
 b/Makefile.linux
+@@ -1,24 +1,14 @@
+ # suitename
+ 
+-ifeq ($(MAKECMDGOALS),debug)
+-CFLAGS = -g
+-else
+-CFLAGS =
+-endif
+-
+-LIBS = -lm 
++LDLIBS = -lm 
+ 
+ # -
+ 
+-OBJS = suitename.o suitenscrt.o suiteninit.o suiteninpt.o suitenout.o 
suitenutil.o
++OBJS = suitenscrt.o suiteninit.o suiteninpt.o suitenout.o suitenutil.o
+ 
+ # -
+ HEADERS = suitename.h suitenscrt.h suitenutil.h suiteninit.h suiteninpt.h 
suitenout.h
+ suitename: $(OBJS)
+-  cc -o suitename $(CFLAGS) $(OBJS) $(LIBS)
+-
+-debug: $(OBJS)
+-  cc -o suitename $(CFLAGS) $(OBJS) $(LIBS)
+ 
+ clean:
+   rm -f *.o

diff --git a/sci-chemistry/suitename/suitename-0.3.070628.ebuild 
b/sci-chemistry/suitename/suitename-0.3.070628.ebuild
index 8441770df5c..2243ccf61e5 100644
--- a/sci-chemistry/suitename/suitename-0.3.070628.ebuild
+++ b/sci-chemistry/suitename/suitename-0.3.070628.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
+EAPI=7
 
 inherit toolchain-funcs
 
@@ -11,26 +11,25 @@ DESCRIPTION="The ROC RNA Ontology nomenclature and 
conformer-list development"
 HOMEPAGE="http://kinemage.biochem.duke.edu/software/suitename.php";
 
SRC_URI="http://kinemage.biochem.duke.edu/downloads/software/${PN}/${MY_P}.src.tgz";
 
+LICENSE="richardson"
 SLOT="0"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-LICENSE="richardson"
-IUSE=""
 
-S="${WORKDIR}"/${MY_P}
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+   "${FILESDIR}"/${P}-makefile.patch
+   "${FILESDIR}"/${P}-Wimplicit-function-declaration.patch
+)
 
-src_prepare() {
+src_configure() {
tc-export CC
-   cp Makefile.linux Makefile || die
-   sed \
-   -e 's:cc:${CC}:g' \
-   -e "s:-o:${LDFLAGS} -o:g" \
-   -i Makefile || die
 }
 
 src_compile() {
-   emake CFLAGS="${CFLAGS}"
+   emake -f Makefile.linux
 }
 
 src_install() {
-   dobin ${PN}
+   dobin suitename
 }



[gentoo-commits] repo/gentoo:master commit in: sci-chemistry/suitename/

2017-12-01 Thread David Seifert
commit: 984a742c16577eb66467a40797665d9adcdb5335
Author: David Seifert  gentoo  org>
AuthorDate: Fri Dec  1 22:42:46 2017 +
Commit: David Seifert  gentoo  org>
CommitDate: Fri Dec  1 23:00:59 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=984a742c

sci-chemistry/suitename: [QA] Fix DESCRIPTION.toolong

 sci-chemistry/suitename/suitename-0.3.070628.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-chemistry/suitename/suitename-0.3.070628.ebuild 
b/sci-chemistry/suitename/suitename-0.3.070628.ebuild
index e0306fac8f2..8441770df5c 100644
--- a/sci-chemistry/suitename/suitename-0.3.070628.ebuild
+++ b/sci-chemistry/suitename/suitename-0.3.070628.ebuild
@@ -7,7 +7,7 @@ inherit toolchain-funcs
 
 MY_P="${PN}.${PV}"
 
-DESCRIPTION="The ROC RNA Ontology Consortium consensus RNA backbone 
nomenclature and conformer-list development"
+DESCRIPTION="The ROC RNA Ontology nomenclature and conformer-list development"
 HOMEPAGE="http://kinemage.biochem.duke.edu/software/suitename.php";
 
SRC_URI="http://kinemage.biochem.duke.edu/downloads/software/${PN}/${MY_P}.src.tgz";