commit: 9cf2d7ff2912784c3ed09cf024517be7531ffc48 Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> AuthorDate: Sun Jun 8 13:59:30 2025 +0000 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> CommitDate: Sun Jun 8 14:07:38 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cf2d7ff
dev-libs/xalan-c: cmake-4 patch Closes: https://bugs.gentoo.org/955386 Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org> dev-libs/xalan-c/files/xalan-c-1.12-cmake-4.patch | 13 +++++ dev-libs/xalan-c/xalan-c-1.12-r4.ebuild | 71 +++++++++++++++++++++++ 2 files changed, 84 insertions(+) diff --git a/dev-libs/xalan-c/files/xalan-c-1.12-cmake-4.patch b/dev-libs/xalan-c/files/xalan-c-1.12-cmake-4.patch new file mode 100644 index 000000000000..fc62e67ecbf5 --- /dev/null +++ b/dev-libs/xalan-c/files/xalan-c-1.12-cmake-4.patch @@ -0,0 +1,13 @@ +https://bugs.gentoo.org/955386 + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -19,7 +19,7 @@ + + # Run "cmake" to generate the build files for your platform + +-cmake_minimum_required(VERSION 3.2.0) ++cmake_minimum_required(VERSION 3.10.0) + + # Use new variable expansion policy. + if (POLICY CMP0053) diff --git a/dev-libs/xalan-c/xalan-c-1.12-r4.ebuild b/dev-libs/xalan-c/xalan-c-1.12-r4.ebuild new file mode 100644 index 000000000000..120f1e0940df --- /dev/null +++ b/dev-libs/xalan-c/xalan-c-1.12-r4.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +MY_PN=${PN/-/_} +DESCRIPTION="XSLT processor for transforming XML into HTML, text, or other XML types" +HOMEPAGE="https://apache.github.io/xalan-c/" +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/apache/xalan-c.git" + + SLOT="0" +else + inherit verify-sig + SRC_URI=" + mirror://apache/xalan/xalan-c/sources/${MY_PN}-${PV}.tar.gz + https://archive.apache.org/dist/xalan/xalan-c/sources/${MY_PN}-${PV}.tar.gz + verify-sig? ( + mirror://apache/xalan/xalan-c/sources/${MY_PN}-${PV}.tar.gz.asc + https://archive.apache.org/dist/xalan/xalan-c/sources/${MY_PN}-${PV}.tar.gz.asc + ) + " + VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/apache-xalan-c.asc + + SLOT="0/$(ver_cut 1-2)" + KEYWORDS="~amd64 ~ppc ~x86" + S="${WORKDIR}/${MY_PN}-${PV}" + BDEPEND=" + verify-sig? ( sec-keys/openpgp-keys-apache-xalan-c ) + " +fi + +LICENSE="Apache-2.0" +IUSE="doc" + +RDEPEND=" + dev-libs/icu:= + dev-libs/xerces-c:=[icu] +" +DEPEND="${RDEPEND}" +BDEPEND+=" + doc? ( app-text/doxygen[dot] ) +" + +PATCHES=( + "${FILESDIR}"/${P}-fix-lto.patch + "${FILESDIR}"/${P}-fix-threads.patch + "${FILESDIR}"/${P}-icu-75.patch + "${FILESDIR}"/${P}-gcc-15.patch + "${FILESDIR}"/${P}-cmake-4.patch +) + +src_configure() { + local mycmakeargs=( + -Ddoxygen=$(usex doc) + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + if use doc; then + docinto examples + dodoc -r samples/*/ + fi +}
