commit:     377d715163dfa1ebdca926b316ecda3cc1bf6789
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Nov  3 17:43:44 2024 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Nov  3 17:43:44 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=377d7151

sci-chemistry/psi: update EAPI 7 -> 8

Closes: https://bugs.gentoo.org/886127
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sci-chemistry/psi/files/psi-3.4.0-C99.patch        | 22 ++++++++++++++++++++++
 .../{psi-3.4.0-r2.ebuild => psi-3.4.0-r3.ebuild}   |  6 +++---
 2 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/sci-chemistry/psi/files/psi-3.4.0-C99.patch 
b/sci-chemistry/psi/files/psi-3.4.0-C99.patch
new file mode 100644
index 000000000000..798e29fadd96
--- /dev/null
+++ b/sci-chemistry/psi/files/psi-3.4.0-C99.patch
@@ -0,0 +1,22 @@
+https://bugs.gentoo.org/886127
+
+--- a/src/lib/libipv1/parse.y
++++ b/src/lib/libipv1/parse.y
+@@ -1,6 +1,7 @@
+ %{
+ #include <stdio.h>
+ #include <tmpl.h>
++#include "ip_error.gbl"
+ #include "ip_types.h"
+ #include "ip_read.gbl"
+ %}
+--- a/src/lib/libipv1/scan.l
++++ b/src/lib/libipv1/scan.l
+@@ -1,6 +1,7 @@
+ %{
+ #include <string.h>
+ #include <tmpl.h>
++#include "ip_error.gbl"
+ #include "ip_types.h"
+ #include "ip_global.h"
+ #include "scan.gbl"

diff --git a/sci-chemistry/psi/psi-3.4.0-r2.ebuild 
b/sci-chemistry/psi/psi-3.4.0-r3.ebuild
similarity index 98%
rename from sci-chemistry/psi/psi-3.4.0-r2.ebuild
rename to sci-chemistry/psi/psi-3.4.0-r3.ebuild
index d719fe265a17..aaeed8c8d19c 100644
--- a/sci-chemistry/psi/psi-3.4.0-r2.ebuild
+++ b/sci-chemistry/psi/psi-3.4.0-r3.ebuild
@@ -1,13 +1,14 @@
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 inherit autotools fortran-2 toolchain-funcs
 
 DESCRIPTION="Suite for ab initio quantum chemistry computing various molecular 
properties"
 HOMEPAGE="http://www.psicode.org/";
 SRC_URI="https://downloads.sourceforge.net/psicode/${P}.tar.gz";
+S="${WORKDIR}/${PN}${PV:0:1}"
 
 LICENSE="GPL-2"
 SLOT="0"
@@ -27,8 +28,6 @@ BDEPEND="
        virtual/pkgconfig
        test? ( dev-lang/perl )"
 
-S="${WORKDIR}/${PN}${PV:0:1}"
-
 PATCHES=(
        "${FILESDIR}"/${PV}-dont-build-libint.patch
        "${FILESDIR}"/use-external-libint.patch
@@ -41,6 +40,7 @@ PATCHES=(
        "${FILESDIR}"/${PV}-fortify.patch
        "${FILESDIR}"/${P}-format-security.patch
        "${FILESDIR}"/${P}-perl-File-Temp.patch
+       "${FILESDIR}"/${P}-C99.patch
 )
 
 src_prepare() {

Reply via email to