commit: c40d63dfb6d7020445d1bb1494efacfafaf33e32 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Fri Sep 20 20:51:03 2024 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Fri Sep 20 21:01:26 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c40d63df
dev-libs/libixion: Fix "_WIN32" is not defined in header Fixes revdeps like sci-visualization/labplot[ods] Closes: https://bugs.gentoo.org/939807 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> .../files/libixion-0.19.0-fix-win32-ifdef.patch | 25 +++++++++ dev-libs/libixion/libixion-0.19.0-r1.ebuild | 62 ++++++++++++++++++++++ 2 files changed, 87 insertions(+) diff --git a/dev-libs/libixion/files/libixion-0.19.0-fix-win32-ifdef.patch b/dev-libs/libixion/files/libixion-0.19.0-fix-win32-ifdef.patch new file mode 100644 index 000000000000..c5aa33a041cf --- /dev/null +++ b/dev-libs/libixion/files/libixion-0.19.0-fix-win32-ifdef.patch @@ -0,0 +1,25 @@ +From 7b1df6fc2b989d8a64edaa47fe04edea95c45174 Mon Sep 17 00:00:00 2001 +From: Stefan Gerlach <[email protected]> +Date: Thu, 25 Jul 2024 08:21:38 +0000 +Subject: [PATCH] Fix "_WIN32" is not defined when not on Windows. + +--- + include/ixion/env.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/ixion/env.hpp b/include/ixion/env.hpp +index 92812e3e..7fee0702 100644 +--- a/include/ixion/env.hpp ++++ b/include/ixion/env.hpp +@@ -33,7 +33,7 @@ + #define IXION_DLLPUBLIC_VAR IXION_DLLPUBLIC extern + #endif + +-#if _WIN32 ++#ifdef _WIN32 + #define IXION_MOD_EXPORT __declspec(dllexport) + #else + #define IXION_MOD_EXPORT __attribute__ ((visibility ("default"))) +-- +GitLab + diff --git a/dev-libs/libixion/libixion-0.19.0-r1.ebuild b/dev-libs/libixion/libixion-0.19.0-r1.ebuild new file mode 100644 index 000000000000..e6e85ddecd3e --- /dev/null +++ b/dev-libs/libixion/libixion-0.19.0-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +inherit python-single-r1 + +DESCRIPTION="General purpose formula parser & interpreter" +HOMEPAGE="https://gitlab.com/ixion/ixion" + +if [[ ${PV} == *9999* ]]; then + MDDS_SLOT="1/3.0" + EGIT_REPO_URI="https://gitlab.com/ixion/ixion.git" + inherit git-r3 autotools +else + MDDS_SLOT="1/2.1" + SRC_URI="https://kohei.us/files/ixion/src/${P}.tar.xz" + KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ppc64 ~riscv x86" +fi + +LICENSE="MIT" +SLOT="0/0.18" # based on SONAME of libixion.so +IUSE="debug python" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + dev-libs/boost:= + dev-util/mdds:${MDDS_SLOT} + python? ( ${PYTHON_DEPS} ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-gcc15-cstdint.patch # bug 937388 + "${FILESDIR}"/${P}-fix-win32-ifdef.patch # bug 939807 +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + [[ ${PV} == *9999* ]] && eautoreconf +} + +src_configure() { + local myeconfargs=( + $(use_enable debug) + $(use_enable debug debug-utils) + $(use_enable debug log-debug) + $(use_enable python) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + find "${D}" -name '*.la' -type f -delete || die +}
