mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
committed by
Sam James
parent
474da63926
commit
ebdc0c0060
12
media-libs/libxmi/files/libxmi-1.3-gcc15.patch
Normal file
12
media-libs/libxmi/files/libxmi-1.3-gcc15.patch
Normal 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
|
||||
13
media-libs/libxmi/files/libxmi-1.3-implicit.patch
Normal file
13
media-libs/libxmi/files/libxmi-1.3-implicit.patch
Normal 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",
|
||||
32
media-libs/libxmi/libxmi-1.3-r2.ebuild
Normal file
32
media-libs/libxmi/libxmi-1.3-r2.ebuild
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user