diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2026-05-07 19:15:22 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2026-05-07 19:15:22 +0000 |
| commit | 299816f0c09b4fa9b0ed7e30ea69cbd6942edbf7 (patch) | |
| tree | b0cfe55c53a1cfe6c89afc96b9d2b9947d694bff /dev-libs | |
| parent | 6dd565aea2fc1e47796bb22fc2ec929c74dfa246 (diff) | |
| download | baldeagleos-repo-299816f0c09b4fa9b0ed7e30ea69cbd6942edbf7.tar.gz baldeagleos-repo-299816f0c09b4fa9b0ed7e30ea69cbd6942edbf7.tar.xz baldeagleos-repo-299816f0c09b4fa9b0ed7e30ea69cbd6942edbf7.zip | |
Adding metadata
Diffstat (limited to 'dev-libs')
| -rw-r--r-- | dev-libs/libportal/libportal-0.9.1.ebuild | 2 | ||||
| -rw-r--r-- | dev-libs/md4c/md4c-0.5.3.ebuild | 29 | ||||
| -rw-r--r-- | dev-libs/md4c/metadata.xml | 7 | ||||
| -rw-r--r-- | dev-libs/nspr/Manifest | 1 | ||||
| -rw-r--r-- | dev-libs/nspr/nspr-4.39.ebuild | 160 | ||||
| -rw-r--r-- | dev-libs/template-glib/Manifest | 1 | ||||
| -rw-r--r-- | dev-libs/template-glib/template-glib-3.40.0.ebuild | 50 | ||||
| -rw-r--r-- | dev-libs/yoga/files/yoga-3.2.1-add-tests-option.patch | 20 | ||||
| -rw-r--r-- | dev-libs/yoga/files/yoga-3.2.1-fix-tests.patch | 51 | ||||
| -rw-r--r-- | dev-libs/yoga/yoga-3.2.1-r1.ebuild | 1 |
10 files changed, 266 insertions, 56 deletions
diff --git a/dev-libs/libportal/libportal-0.9.1.ebuild b/dev-libs/libportal/libportal-0.9.1.ebuild index 48fc095fc9a4..4a8e07b471d4 100644 --- a/dev-libs/libportal/libportal-0.9.1.ebuild +++ b/dev-libs/libportal/libportal-0.9.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2025 Gentoo Authors +# Copyright 2022-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-libs/md4c/md4c-0.5.3.ebuild b/dev-libs/md4c/md4c-0.5.3.ebuild index f8e2ad92ce79..0b4855661165 100644 --- a/dev-libs/md4c/md4c-0.5.3.ebuild +++ b/dev-libs/md4c/md4c-0.5.3.ebuild @@ -4,38 +4,34 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..14} ) - inherit cmake python-any-r1 DESCRIPTION="C Markdown parser. Fast, SAX-like interface, CommonMark Compliant" HOMEPAGE="https://github.com/mity/md4c" -# TODO(NRK): -# - useflag for static lib (?) - -if [[ ${PV} == 9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/mity/md4c.git" -else - SRC_URI="https://github.com/mity/md4c/archive/refs/tags/release-${PV}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/md4c-release-${PV}" - KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~x86" -fi +SRC_URI=" + https://github.com/mity/md4c/archive/refs/tags/release-${PV}.tar.gz + -> ${P}.tar.gz +" +S=${WORKDIR}/md4c-release-${PV} LICENSE="MIT test? ( CC-BY-SA-4.0 )" SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~x86" + IUSE="+md2html test" REQUIRED_USE="test? ( md2html )" RESTRICT="!test? ( test )" -BDEPEND="test? ( ${PYTHON_DEPS} )" +BDEPEND=" + test? ( ${PYTHON_DEPS} ) +" pkg_setup() { use test && python-any-r1_pkg_setup } src_configure() { - mycmakeargs=( - -DBUILD_SHARED_LIBS=ON + local mycmakeargs=( -DBUILD_MD2HTML_EXECUTABLE=$(usex md2html) ) @@ -43,7 +39,6 @@ src_configure() { } src_test() { - pushd "${BUILD_DIR}" || die + cd "${BUILD_DIR}" || die "${EPYTHON}" "${S}"/scripts/run-tests.py || die - popd } diff --git a/dev-libs/md4c/metadata.xml b/dev-libs/md4c/metadata.xml index 5b25cd8eecec..496cbda2856b 100644 --- a/dev-libs/md4c/metadata.xml +++ b/dev-libs/md4c/metadata.xml @@ -1,12 +1,9 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="person"> - <email>nrk@disroot.org</email> - </maintainer> <maintainer type="project"> - <email>proxy-maint@gentoo.org</email> - <name>Proxy Maintainers</name> + <email>qt@gentoo.org</email> + <name>Gentoo Qt Project</name> </maintainer> <use> diff --git a/dev-libs/nspr/Manifest b/dev-libs/nspr/Manifest index 8674261608b6..49d2132cb614 100644 --- a/dev-libs/nspr/Manifest +++ b/dev-libs/nspr/Manifest @@ -1,2 +1,3 @@ DIST nspr-4.36.tar.gz 1036274 BLAKE2B 369d851db0f425f0c6c3cdaeb333320860b77b49b40b77cc983998de3f9128f9d987f143e9f2ce155d609fb23f3f9ed0d0abe7d74e20c59763e2b9bdd1835817 SHA512 55d21e196508ad29a179639fc8006f44b04dc2c0b5a85895e727f0a4f0ea37aeeceb936e37ac6b271b882a18e9f06d96133a60f19cee6345f8424c1c66e270ee DIST nspr-4.38.2.tar.gz 1025394 BLAKE2B 1e677504bed875651d7204d6df1a0f9671233bdab5a7b7cfdd691084c16c31a74a1126569372e4fe59edc8318b622551f979fbe55c8e64df1d977dbd63962cac SHA512 f17302b0973ab006f9e6af70199ac6bb40d6266f96ab4d6692f56c24979907a7f0a20cf9d926aa80084f2e0ce7dfd56de89a7547b5e7e8caafa7afa5eb0b7bd8 +DIST nspr-4.39.tar.gz 1014093 BLAKE2B dfb8a050ee29974d5226c4140901ba1704af9ddf6939053e495cf698b23c2eb2aff4fec968cb321648ea4cb373cd85cb81283693b11d2b761e3dcc85294dfa57 SHA512 201627666814552e3c98f66a0bdb18194670dcbdbc8cf3241079d918891d46aef1b10e9339beb84802d1de4189993340febab27344e97f8de21ceb1f43c77bda diff --git a/dev-libs/nspr/nspr-4.39.ebuild b/dev-libs/nspr/nspr-4.39.ebuild new file mode 100644 index 000000000000..b3f1296936d0 --- /dev/null +++ b/dev-libs/nspr/nspr-4.39.ebuild @@ -0,0 +1,160 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic toolchain-funcs multilib-minimal + +MIN_PV="$(ver_cut 2)" + +DESCRIPTION="Netscape Portable Runtime" +HOMEPAGE="https://www-archive.mozilla.org/projects/nspr/" +SRC_URI="https://archive.mozilla.org/pub/nspr/releases/v${PV}/src/${P}.tar.gz" + +LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris" +IUSE="debug" + +MULTILIB_CHOST_TOOLS=( + /usr/bin/nspr-config +) + +PATCHES=( + "${FILESDIR}"/${PN}-4.7.1-solaris.patch + "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch + "${FILESDIR}"/${PN}-4.8.9-link-flags.patch + # We do not need to pass -L$libdir via nspr-config --libs + "${FILESDIR}"/${PN}-4.9.5_nspr_config.patch +) + +QA_CONFIGURE_OPTIONS="--disable-static" + +src_prepare() { + cd "${S}"/nspr || die + + default + + if use elibc_musl; then + eapply "${FILESDIR}"/${PN}-4.21-ipv6-musl-support.patch + eapply "${FILESDIR}"/nspr-4.35-bgo-905998-lfs64-musl.patch + fi + + # rename configure.in to configure.ac for new autotools compatibility + if [[ -e "${S}"/nspr/configure.in ]] ; then + einfo "Renaming configure.in to configure.ac" + mv "${S}"/nspr/configure.{in,ac} || die + else + elog "configure.in rename logic can be removed from ebuild." + fi + + # We must run eautoconf to regenerate configure + eautoconf + + # make sure it won't find Perl out of Prefix + sed -i -e "s/perl5//g" "${S}"/nspr/configure || die + + # Respect LDFLAGS + sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \ + "${S}"/nspr/config/rules.mk || die +} + +multilib_src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/867634 + # + # Testsuite-only issue. Still, this makes it challenging to test the package with LTO + # enabled... + append-flags -fno-strict-aliasing + filter-lto + + # The build system overrides user optimization level based on a configure flag. #886987 + local my_optlvl=$(get-flag '-O*') + + # bgo #923802 + append-lfs-flags + + # We use the standard BUILD_xxx but nspr uses HOST_xxx + tc-export_build_env BUILD_CC + export HOST_CC=${BUILD_CC} HOST_CFLAGS=${BUILD_CFLAGS} HOST_LDFLAGS=${BUILD_LDFLAGS} + tc-export AR AS CC CXX RANLIB + [[ ${CBUILD} != ${CHOST} ]] \ + && export CROSS_COMPILE=1 \ + || unset CROSS_COMPILE + + local myconf=( --libdir="${EPREFIX}/usr/$(get_libdir)" ) + + # Optimization is disabled when debug is enabled. + if use debug; then + myconf+=( --enable-debug ) + else + myconf+=( --disable-debug ) + myconf+=( --enable-optimize="${my_optlvl}" ) + fi + + # The configure has some fancy --enable-{{n,x}32,64bit} switches + # that trigger some code conditional to platform & arch. This really + # matters for the few common arches (x86, ppc) but we pass a little + # more of them to be future-proof. + case $(tc-get-ptr-size) in + 4) use abi_x86_x32 && myconf+=( --enable-x32 );; + 8) myconf+=( --enable-64bit );; + esac + + # Ancient autoconf needs help finding the right tools. + LC_ALL="C" ECONF_SOURCE="${S}/nspr" \ + ac_cv_path_AR="${AR}" \ + ac_cv_path_AS="${AS}" \ + econf "${myconf[@]}" +} + +multilib_src_test() { + # https://firefox-source-docs.mozilla.org/nspr/running_nspr_tests.html + cd "${BUILD_DIR}/pr/tests" || die + einfo "Building tests" + emake + + einfo "Running test suite" + ../../../${P}/${PN}/pr/tests/runtests.pl | tee "${T}"/${ABI}-tests.log + + # Needed to check if runtests.pl itself or the tee (somehow) failed + # (can't use die with pipes to check each component) + [[ ${PIPESTATUS[@]} == "0 0" ]] || die "Tests failed to run!" + + local known_failures=( + # network-sandbox related? + cltsrv + # network-sandbox related? + gethost + ) + + local known_failure + for known_failure in "${known_failures[@]}" ; do + sed -i -e "/${known_failure}.*FAILED/d" "${T}"/${ABI}-tests.log || die + done + + # But to actually check the test results, we examine the log. + if grep -q "FAILED" "${T}"/${ABI}-tests.log ; then + die "Test failure for ${ABI}!" + fi +} + +multilib_src_install() { + # Their build system is royally confusing, as usual + MINOR_VERSION=${MIN_PV} # Used for .so version + emake DESTDIR="${D}" install + + einfo "removing static libraries as upstream has requested!" + rm "${ED}"/usr/$(get_libdir)/*.a || die "failed to remove static libraries." + + # install nspr-config + dobin config/nspr-config + + # Remove stupid files in /usr/bin + rm "${ED}"/usr/bin/prerr.properties || die + + # This is used only to generate prerr.c and prerr.h at build time. + # No other projects use it, and we don't want to depend on perl. + # Talked to upstream and they agreed w/punting. + rm "${ED}"/usr/bin/compile-et.pl || die +} diff --git a/dev-libs/template-glib/Manifest b/dev-libs/template-glib/Manifest index b2825a8e80d8..0ff366a880bb 100644 --- a/dev-libs/template-glib/Manifest +++ b/dev-libs/template-glib/Manifest @@ -1 +1,2 @@ DIST template-glib-3.36.3.tar.xz 65620 BLAKE2B 4c0106ae5aee7b226b53469b207f145cbfe35a487c48e030513594e61ab4dae010b3e20b110285a05990d72e9399ab9dffa4413547744d614fcce353172c115c SHA512 cd860f9e8d3338162757c650611e835c9da4713db4ee9cac79e0edf0af092c80ae72928219d423897dce2d6523e2751dfc8770ff83026a7532b337a6c42379d6 +DIST template-glib-3.40.0.tar.xz 66368 BLAKE2B fba5db1036734580626ab626170ee942b212c067c70eafc2d3f22746c850e379714499305b267237c757d655ed3ad6f3b25dd1cf4ab38e00db648d96803fcd37 SHA512 6d7d77d8bb2fdfcf23334941352589c1450443781d4b927d58a84000504939038d0098efa44642c3266b5394063110524decc6b5bbe352dffde8bf80ad5b2fa7 diff --git a/dev-libs/template-glib/template-glib-3.40.0.ebuild b/dev-libs/template-glib/template-glib-3.40.0.ebuild new file mode 100644 index 000000000000..aead99fcf33b --- /dev/null +++ b/dev-libs/template-glib/template-glib-3.40.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit gnome.org meson vala + +DESCRIPTION="A templating library for GLib" +HOMEPAGE="https://gitlab.gnome.org/GNOME/template-glib" + +LICENSE="LGPL-2.1+" +SLOT="0/1" +KEYWORDS="~amd64 ~arm64 ~x86" + +IUSE="gtk-doc +introspection test vala" +RESTRICT="!test? ( test )" +REQUIRED_USE=" + gtk-doc? ( introspection ) + vala? ( introspection ) +" + +RDEPEND="dev-libs/glib:2[introspection]" +DEPEND="${RDEPEND}" +BDEPEND=" + vala? ( $(vala_depend) ) + dev-util/glib-utils + app-alternatives/yacc + app-alternatives/lex + >=sys-devel/gettext-0.19.8 + virtual/pkgconfig + gtk-doc? ( dev-util/gi-docgen ) +" + +src_prepare() { + default + use vala && vala_setup +} + +src_configure() { + local emesonargs=( + -Dwerror=false + -Dtracing=false # extra trace debugging that would make things slower + -Dprofiling=false # -pg passing + $(meson_feature introspection) + $(meson_use vala vapi) + $(meson_use gtk-doc docs) + $(meson_use test tests) + ) + meson_src_configure +} diff --git a/dev-libs/yoga/files/yoga-3.2.1-add-tests-option.patch b/dev-libs/yoga/files/yoga-3.2.1-add-tests-option.patch new file mode 100644 index 000000000000..09b4a3f9a103 --- /dev/null +++ b/dev-libs/yoga/files/yoga-3.2.1-add-tests-option.patch @@ -0,0 +1,20 @@ +https://github.com/facebook/yoga/pull/1935 + +Add the BUILD_TESTS option to make building tests optional + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 55f1a6df35..fcfa593a41 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -10,7 +10,10 @@ set(CMAKE_VERBOSE_MAKEFILE on) + include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/project-defaults.cmake) + + add_subdirectory(yoga) +-add_subdirectory(tests) ++option(BUILD_TESTS "Build tests" ON) ++if(BUILD_TESTS) ++ add_subdirectory(tests) ++endif() + + option(BUILD_FUZZ_TESTS "Build fuzz tests" OFF) + diff --git a/dev-libs/yoga/files/yoga-3.2.1-fix-tests.patch b/dev-libs/yoga/files/yoga-3.2.1-fix-tests.patch index 13f719f9333a..c42118bceaa1 100644 --- a/dev-libs/yoga/files/yoga-3.2.1-fix-tests.patch +++ b/dev-libs/yoga/files/yoga-3.2.1-fix-tests.patch @@ -1,25 +1,23 @@ -fixes: +remove -Werror and use system wide GTest -1. make building tests optional -2. use system wide GTest -3. fix -Werror=array-bounds= compile error +Bug: https://bugs.gentoo.org/973597 +Issue: https://github.com/facebook/yoga/issues/1934 -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 55f1a6df..fcfa593a 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -10,7 +10,10 @@ set(CMAKE_VERBOSE_MAKEFILE on) - include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/project-defaults.cmake) - - add_subdirectory(yoga) --add_subdirectory(tests) -+option(BUILD_TESTS "Build tests" ON) -+if(BUILD_TESTS) -+ add_subdirectory(tests) -+endif() - - option(BUILD_FUZZ_TESTS "Build fuzz tests" OFF) - +diff --git a/cmake/project-defaults.cmake b/cmake/project-defaults.cmake +index 987529c5..6051621a 100644 +--- a/cmake/project-defaults.cmake ++++ b/cmake/project-defaults.cmake +@@ -31,9 +31,8 @@ add_compile_options( + -fno-omit-frame-pointer + # Enable exception handling + -fexceptions +- # Enable warnings and warnings as errors ++ # Enable warnings + -Wall +- -Werror + # Disable RTTI + $<$<COMPILE_LANGUAGE:CXX>:-fno-rtti> + # Use -O2 (prioritize speed) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c48bfb9f..fbf837f6 100644 --- a/tests/CMakeLists.txt @@ -44,16 +42,3 @@ index c48bfb9f..fbf837f6 100644 add_subdirectory(${YOGA_ROOT}/yoga ${CMAKE_CURRENT_BINARY_DIR}/yoga) -diff --git a/tests/YGPersistenceTest.cpp b/tests/YGPersistenceTest.cpp -index 929aee07..f171e5f7 100644 ---- a/tests/YGPersistenceTest.cpp -+++ b/tests/YGPersistenceTest.cpp -@@ -275,7 +275,7 @@ TEST(YogaTest, mixed_shared_and_owned_children) { - YGNodeInsertChild(root1, root1_child2, 1); - - auto children = static_cast<yoga::Node*>(root1)->getChildren(); -- children.insert(children.begin() + 1, static_cast<yoga::Node*>(root0_child0)); -+ children.emplace(children.begin() + 1, static_cast<yoga::Node*>(root0_child0)); - static_cast<yoga::Node*>(root1)->setChildren(children); - - auto secondChild = YGNodeGetChild(root1, 1); diff --git a/dev-libs/yoga/yoga-3.2.1-r1.ebuild b/dev-libs/yoga/yoga-3.2.1-r1.ebuild index 73857108766c..e745c04606b0 100644 --- a/dev-libs/yoga/yoga-3.2.1-r1.ebuild +++ b/dev-libs/yoga/yoga-3.2.1-r1.ebuild @@ -20,6 +20,7 @@ BDEPEND=" " PATCHES=( + "${FILESDIR}"/"${P}-add-tests-option.patch" "${FILESDIR}"/"${P}-fix-tests.patch" ) |
