summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-chemistry')
-rw-r--r--sci-chemistry/freeon/files/freeon-1.0.10-stop.patch36
-rw-r--r--sci-chemistry/freeon/freeon-1.0.10.ebuild16
-rw-r--r--sci-chemistry/freeon/metadata.xml2
3 files changed, 49 insertions, 5 deletions
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
index 000000000000..a20d520e553c
--- /dev/null
+++ b/sci-chemistry/freeon/files/freeon-1.0.10-stop.patch
@@ -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
+
diff --git a/sci-chemistry/freeon/freeon-1.0.10.ebuild b/sci-chemistry/freeon/freeon-1.0.10.ebuild
index f1a8d5cd58e9..e865bb448f26 100644
--- a/sci-chemistry/freeon/freeon-1.0.10.ebuild
+++ b/sci-chemistry/freeon/freeon-1.0.10.ebuild
@@ -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
+}
diff --git a/sci-chemistry/freeon/metadata.xml b/sci-chemistry/freeon/metadata.xml
index 8abcc2a76d8b..8f4e98e7e5bf 100644
--- a/sci-chemistry/freeon/metadata.xml
+++ b/sci-chemistry/freeon/metadata.xml
@@ -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>