sci-chemistry/freeon: Fix compilation error
authorJustin Lecher <jlec@gentoo.org>
Mon, 2 Jan 2017 08:00:04 +0000 (08:00 +0000)
committerJustin Lecher <jlec@gentoo.org>
Mon, 2 Jan 2017 08:00:25 +0000 (08:00 +0000)
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=604138

Package-Manager: Portage-2.3.3, Repoman-2.3.1
Signed-off-by: Justin Lecher <jlec@gentoo.org>
sci-chemistry/freeon/files/freeon-1.0.10-stop.patch [new file with mode: 0644]
sci-chemistry/freeon/freeon-1.0.10.ebuild
sci-chemistry/freeon/metadata.xml

diff --git a/sci-chemistry/freeon/files/freeon-1.0.10-stop.patch b/sci-chemistry/freeon/files/freeon-1.0.10-stop.patch
new file mode 100644 (file)
index 0000000..a20d520
--- /dev/null
@@ -0,0 +1,36 @@
+From 882b51fb718c2eed98ef3e8f3be0c5b7320024e1 Mon Sep 17 00:00:00 2001
+From: Justin Lecher <jlec@gentoo.org>
+Date: Mon, 2 Jan 2017 07:56:11 +0000
+Subject: [PATCH] Add missing blank after STOP
+
+The STOP statement requires preceding blank. Newer gcc
+will fail with
+
+     CASE DEFAULT; STOP'Err:WghtMtrx'
+                      1
+Error: Blank required in STOP statement near (1)
+
+See:
+https://bugs.gentoo.org/show_bug.cgi?id=604138
+
+Signed-off-by: Justin Lecher <jlec@gentoo.org>
+---
+ FreeON/Optimizer.F90 | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/FreeON/Optimizer.F90 b/FreeON/Optimizer.F90
+index 0ef22269..0bbd9008 100644
+--- a/FreeON/Optimizer.F90
++++ b/FreeON/Optimizer.F90
+@@ -3055,7 +3055,7 @@ CONTAINS
+     SELECT CASE(FromTo)
+     CASE('CToWC');IFromTo=0
+     CASE('WCToC');IFromTo=1
+-    CASE DEFAULT; STOP'Err:WghtMtrx'
++    CASE DEFAULT; STOP 'Err:WghtMtrx'
+     END SELECT
+     DO AtB=1,NAtoms
+        IF(IFromTo.EQ.0) THEN
+-- 
+2.11.0
+
index f1a8d5cd58e9699aa9f6c797006925a8c98387d2..e865bb448f26eec52e9f4fea14ab94c92de20659 100644 (file)
@@ -1,14 +1,13 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
-AUTOTOOLS_AUTORECONF=1
 FORTRAN_STANDARD=90
 PYTHON_COMPAT=( python{2_7,3_4} )
 
-inherit autotools-utils fortran-2 python-any-r1
+inherit autotools fortran-2 python-any-r1
 
 DESCRIPTION="An experimental suite of programs for linear scaling quantum chemistry"
 HOMEPAGE="http://www.freeon.org"
@@ -25,3 +24,12 @@ RDEPEND="
        virtual/lapack"
 DEPEND="${RDEPEND}
        ${PYTHON_DEPS}"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-stop.patch
+)
+
+src_prepare() {
+       default
+       eautoreconf
+}
index 8abcc2a76d8beaf9afdf6b0ee74e6e51d9f32f29..8f4e98e7e5bfd778117dbebe2c8659b134a4d4fe 100644 (file)
@@ -8,7 +8,7 @@
                <email>nicolasbock@gentoo.org</email>
                <name>Nicolas Bock</name>
        </maintainer>
-<maintainer type="project">
+       <maintainer type="project">
                <email>sci-chemistry@gentoo.org</email>
                <name>Gentoo Chemistry Project</name>
        </maintainer>