media-libs/libxmi: update EAPI 7 -> 8, fix build

Closes: https://bugs.gentoo.org/94445
Closes: https://bugs.gentoo.org/899832
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Closes: https://github.com/gentoo/gentoo/pull/41200
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alexey Sokolov
2025-03-20 22:43:44 +00:00
committed by Sam James
parent 474da63926
commit ebdc0c0060
3 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
https://bugs.gentoo.org/944450
--- a/sys-defines.h
+++ b/sys-defines.h
@@ -169,7 +169,6 @@ extern __C_LINKAGE void free (void * ptr);
#ifndef __cplusplus
#ifndef HAVE_BOOL_IN_CC
#ifdef __STDC__
-typedef enum { false = 0, true = 1 } bool;
#else /* not __STDC__, do things the old-fashioned way */
typedef int bool;
#define false 0

View File

@@ -0,0 +1,13 @@
https://bugs.gentoo.org/899832
--- a/configure.in
+++ b/configure.in
@@ -77,7 +77,7 @@ int main()
int i;
for (i=0; i < B; i++)
Array[[i]] = i - 3;
- exit (Array[[1]] != -2);
+ return (Array[[1]] != -2);
}],
ac_cv_c_gcc_strength_bug="no",
ac_cv_c_gcc_strength_bug="yes",

View File

@@ -0,0 +1,32 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="C/C++ function library for rasterizing 2-D vector graphics"
HOMEPAGE="https://www.gnu.org/software/libxmi/"
SRC_URI="https://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
#mirror://gnu/${PN}/${P}.tar.gz"
# Version unbundled from plotutils
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
PATCHES=(
"${FILESDIR}/${P}-gcc15.patch"
"${FILESDIR}/${P}-implicit.patch"
)
src_prepare() {
default
mv configure.in configure.ac || die
eautoreconf
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}