commit:     504a5b82d84db674b3d82963f962ac2dcfed94f4
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  8 17:19:22 2025 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Mon Sep  8 17:30:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=504a5b82

app-crypt/pdfcrack: EAPI=8, build fix for newer gcc

Closes: https://bugs.gentoo.org/943995
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 .../{pdfcrack-0.20.ebuild => pdfcrack-0.20-r1.ebuild}         | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/app-crypt/pdfcrack/pdfcrack-0.20.ebuild 
b/app-crypt/pdfcrack/pdfcrack-0.20-r1.ebuild
similarity index 77%
rename from app-crypt/pdfcrack/pdfcrack-0.20.ebuild
rename to app-crypt/pdfcrack/pdfcrack-0.20-r1.ebuild
index 4668ab105828..017d90b10c52 100644
--- a/app-crypt/pdfcrack/pdfcrack-0.20.ebuild
+++ b/app-crypt/pdfcrack/pdfcrack-0.20-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="Tool for recovering passwords and content from PDF-files"
 HOMEPAGE="http://pdfcrack.sourceforge.net/";
@@ -17,6 +17,11 @@ PATCHES=(
        "${FILESDIR}/${PN}-0.14-cflags.patch"
 )
 
+src_prepare() {
+       append-cflags -std=gnu17
+       default
+}
+
 src_compile() {
        emake CC="$(tc-getCC)"
 }

Reply via email to