From 13ec12ad28bc2ce6e2902be1d571befcca2b3f60 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 22 Nov 2022 07:05:54 +0000 Subject: gentoo auto-resync : 22:11:2022 - 07:05:54 --- dev-libs/Manifest.gz | Bin 95800 -> 95821 bytes dev-libs/c-blosc/Manifest | 3 +- dev-libs/c-blosc/c-blosc-1.21.1-r1.ebuild | 51 ++++++++++ dev-libs/c-blosc/c-blosc-1.21.1.ebuild | 47 ---------- .../files/c-blosc-1.21.1-gnuinstalldirs.patch | 71 ++++++++++++++ dev-libs/libinput/Manifest | 2 + dev-libs/libinput/libinput-1.22.0.ebuild | 90 ++++++++++++++++++ dev-libs/newt/Manifest | 3 + dev-libs/newt/files/newt-0.52.22-gold.patch | 13 +++ dev-libs/newt/newt-0.52.22.ebuild | 103 +++++++++++++++++++++ 10 files changed, 335 insertions(+), 48 deletions(-) create mode 100644 dev-libs/c-blosc/c-blosc-1.21.1-r1.ebuild delete mode 100644 dev-libs/c-blosc/c-blosc-1.21.1.ebuild create mode 100644 dev-libs/c-blosc/files/c-blosc-1.21.1-gnuinstalldirs.patch create mode 100644 dev-libs/libinput/libinput-1.22.0.ebuild create mode 100644 dev-libs/newt/files/newt-0.52.22-gold.patch create mode 100644 dev-libs/newt/newt-0.52.22.ebuild (limited to 'dev-libs') diff --git a/dev-libs/Manifest.gz b/dev-libs/Manifest.gz index c97d97930436..0b48aa8feb8f 100644 Binary files a/dev-libs/Manifest.gz and b/dev-libs/Manifest.gz differ diff --git a/dev-libs/c-blosc/Manifest b/dev-libs/c-blosc/Manifest index 61b5b795ec71..e61b0329d3e3 100644 --- a/dev-libs/c-blosc/Manifest +++ b/dev-libs/c-blosc/Manifest @@ -1,3 +1,4 @@ +AUX c-blosc-1.21.1-gnuinstalldirs.patch 2608 BLAKE2B 03e7d073c0f16a651569b21167d43ba405924848c0f5e653154f13473b916d02f5a1d2cafaa3f8d195f7ba6adac378b382893ffe522058d23f9aac112fff9279 SHA512 95865129f6c2a042ad1367873c1d5c165766c9628fe0237609f741def95f44290cf99ad03ea567cca7bd2fcdf727261f4d8ae8fce5bdf96dd1450b0f59196508 DIST c-blosc-1.21.1.tar.gz 1456777 BLAKE2B a6a48d79fc8cb3df277e878a69361a5d12552be4b8ae50a4a95d2fe48d5b073c849724913a20c2834de7cf3cac7f288ddfec977ed1e4a1875fc3d21975907b44 SHA512 e06712ffaeaa6892415a6b01219221426c20af4191db6ca923301313daa8f5b0a83a7a3cd273f7013766349ace4e4869590e9c44bd892e57027ca45de53779e7 -EBUILD c-blosc-1.21.1.ebuild 1157 BLAKE2B 7c58afa8f3c9b0f3ac557aabf6840f4a0718fc009682bc2d550936a7a002380b4f07a2651fba191e59afd38216045a1fc0c2d8e8431469eb16c3f15ef1364cbe SHA512 60b4d0cf1efe2516864905b8120dca6b197c1df382d4aa9a6fbacf9a0d06de02756d3cbd012f58061bef08d95db58a47577df04bcd76b03bdcbe6a9ffd27b3d9 +EBUILD c-blosc-1.21.1-r1.ebuild 1211 BLAKE2B e2fa8b2b50bee2d28cbfa3c123aa7e1bdb1e406cbb38c080605ecc0f7808182807bad4b84e16ac6e70a35b6e9222d1af3fb1a0affac2c895cda17e6ce18c92ce SHA512 cfb8b5f517b9a535392cb7d3f321a2950b4924feda1b80a8757dd2ba38ebd751f43bd5c43e57ee8591022f73e2e6dcfc87a0c5571b0618dbd030a23daf7d0cbf MISC metadata.xml 839 BLAKE2B 108d89a888ba31f03eb42a0717c7c9458d599cdb67cf98940c88ff943ce2079c736b6a52ac4206d4ceda17f56ea67e52dae1c77b304d39fbb9ec249a8ac38576 SHA512 f4ed6f93992492a98499ad1dff54b3fcd14e35710e0307041e606ddfff54769c5ed6ccd3ef90a5ce7943425bcee93ea9b46211f643da30d94db88adb6be7d5f8 diff --git a/dev-libs/c-blosc/c-blosc-1.21.1-r1.ebuild b/dev-libs/c-blosc/c-blosc-1.21.1-r1.ebuild new file mode 100644 index 000000000000..7ff161dd1390 --- /dev/null +++ b/dev-libs/c-blosc/c-blosc-1.21.1-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Blocking, shuffling and lossless compression library" +HOMEPAGE="https://www.blosc.org/" +SRC_URI="https://github.com/Blosc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/1" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux" +IUSE="+lz4 +snappy test zlib zstd" +RESTRICT="!test? ( test )" + +RDEPEND=" + lz4? ( >=app-arch/lz4-1.7.5:= ) + snappy? ( app-arch/snappy:= ) + zlib? ( sys-libs/zlib:= ) + zstd? ( app-arch/zstd:= )" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-gnuinstalldirs.patch +) + +src_prepare() { + cmake_src_prepare + # remove bundled libs + rm -rf internal-complibs || die +} + +src_configure() { + local mycmakeargs=( + -DBUILD_STATIC=OFF + -DBUILD_TESTS=$(usex test) + -DBUILD_BENCHMARKS=OFF + -DBUILD_FUZZERS=OFF + -DDEACTIVATE_LZ4=$(usex !lz4) + -DDEACTIVATE_SNAPPY=$(usex !snappy) + -DDEACTIVATE_ZLIB=$(usex !zlib) + -DDEACTIVATE_ZSTD=$(usex !zstd) + -DPREFER_EXTERNAL_LZ4=ON + # snappy is always external + -DPREFER_EXTERNAL_ZLIB=ON + -DPREFER_EXTERNAL_ZSTD=ON + ) + cmake_src_configure +} diff --git a/dev-libs/c-blosc/c-blosc-1.21.1.ebuild b/dev-libs/c-blosc/c-blosc-1.21.1.ebuild deleted file mode 100644 index c0b7e51199f0..000000000000 --- a/dev-libs/c-blosc/c-blosc-1.21.1.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake - -DESCRIPTION="Blocking, shuffling and lossless compression library" -HOMEPAGE="https://www.blosc.org/" -SRC_URI="https://github.com/Blosc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0/1" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux" -IUSE="+lz4 +snappy test zlib zstd" -RESTRICT="!test? ( test )" - -RDEPEND=" - lz4? ( >=app-arch/lz4-1.7.5:= ) - snappy? ( app-arch/snappy:= ) - zlib? ( sys-libs/zlib:= ) - zstd? ( app-arch/zstd:= )" -DEPEND="${RDEPEND}" - -src_prepare() { - cmake_src_prepare - # remove bundled libs - rm -rf internal-complibs || die -} - -src_configure() { - local mycmakeargs=( - -DBUILD_STATIC=OFF - -DBUILD_TESTS=$(usex test) - -DBUILD_BENCHMARKS=OFF - -DBUILD_FUZZERS=OFF - -DDEACTIVATE_LZ4=$(usex !lz4) - -DDEACTIVATE_SNAPPY=$(usex !snappy) - -DDEACTIVATE_ZLIB=$(usex !zlib) - -DDEACTIVATE_ZSTD=$(usex !zstd) - -DPREFER_EXTERNAL_LZ4=ON - # snappy is always external - -DPREFER_EXTERNAL_ZLIB=ON - -DPREFER_EXTERNAL_ZSTD=ON - ) - cmake_src_configure -} diff --git a/dev-libs/c-blosc/files/c-blosc-1.21.1-gnuinstalldirs.patch b/dev-libs/c-blosc/files/c-blosc-1.21.1-gnuinstalldirs.patch new file mode 100644 index 000000000000..d90a2fc50cee --- /dev/null +++ b/dev-libs/c-blosc/files/c-blosc-1.21.1-gnuinstalldirs.patch @@ -0,0 +1,71 @@ +https://github.com/Blosc/c-blosc/commit/5a2907c75ee1e43be90f58f2be7f8c856004a3bf + +From 5a2907c75ee1e43be90f58f2be7f8c856004a3bf Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?H=C3=A5vard=20Flaget=20Aasen?= +Date: Sun, 5 Dec 2021 07:52:54 +0100 +Subject: [PATCH] CMake: Use GNUInstallDirs when installing files. + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -122,7 +122,7 @@ option(PREFER_EXTERNAL_ZSTD + "Find and use external Zstd library instead of included sources." OFF) + + set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake") +- ++include(GNUInstallDirs) + + if(NOT DEACTIVATE_LZ4) + if(PREFER_EXTERNAL_LZ4) +@@ -342,7 +342,7 @@ if (BLOSC_INSTALL) + "${CMAKE_CURRENT_BINARY_DIR}/blosc.pc" + @ONLY) + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/blosc.pc" +- DESTINATION lib/pkgconfig COMPONENT DEV) ++ DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig" COMPONENT DEV) + + configure_file( + "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" +--- a/blosc.pc.in ++++ b/blosc.pc.in +@@ -1,8 +1,8 @@ + prefix=@CMAKE_INSTALL_PREFIX@ + exec_prefix=${prefix} +-libdir=${exec_prefix}/lib ++libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ + sharedlibdir=${libdir} +-includedir=${prefix}/include ++includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ + + Name: blosc + Description: A blocking, shuffling and lossless compression library +--- a/blosc/CMakeLists.txt ++++ b/blosc/CMakeLists.txt +@@ -61,8 +61,6 @@ if(COMPILER_SUPPORT_AVX2) + endif(COMPILER_SUPPORT_AVX2) + set(SOURCES ${SOURCES} shuffle.c) + +-# library install directory +-set(lib_dir lib${LIB_SUFFIX}) + set(version_string ${BLOSC_VERSION_MAJOR}.${BLOSC_VERSION_MINOR}.${BLOSC_VERSION_PATCH}) + + set(CMAKE_THREAD_PREFER_PTHREAD TRUE) # pre 3.1 +@@ -219,11 +217,15 @@ endif(BUILD_STATIC) + + # install + if(BLOSC_INSTALL) +- install(FILES blosc.h blosc-export.h DESTINATION include COMPONENT DEV) ++ install(FILES blosc.h blosc-export.h ++ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} COMPONENT DEV) + if(BUILD_SHARED) +- install(TARGETS blosc_shared LIBRARY DESTINATION ${lib_dir} ARCHIVE DESTINATION ${lib_dir} RUNTIME DESTINATION bin COMPONENT LIB) ++ install(TARGETS blosc_shared ++ LIBRARY COMPONENT LIB ++ ARCHIVE COMPONENT DEV ++ RUNTIME COMPONENT LIB) + endif(BUILD_SHARED) + if(BUILD_STATIC) +- install(TARGETS blosc_static LIBRARY DESTINATION ${lib_dir} ARCHIVE DESTINATION ${lib_dir} RUNTIME DESTINATION bin COMPONENT DEV) ++ install(TARGETS blosc_static COMPONENT DEV) + endif(BUILD_STATIC) + endif(BLOSC_INSTALL) + diff --git a/dev-libs/libinput/Manifest b/dev-libs/libinput/Manifest index 90589953f93a..52cfced3aa23 100644 --- a/dev-libs/libinput/Manifest +++ b/dev-libs/libinput/Manifest @@ -1,3 +1,5 @@ DIST libinput-1.21.0.tar.gz 988650 BLAKE2B 54c63beeff8dee93a52774220b45321d8a94261687b463319fbae9246331b532be7995a5b32c30425b9d0708b2ba69d4b4e83e8dc7ecebe6fb1237b723a266b6 SHA512 510273d68f2d4cfa61564a706b1f334f6bfca0d1c8faf0bb8aa656cf3fbd5e38d79d6fbaa01a20d38bc15777c9afc341e4ed08d35ef367ef3803ce788cbc4a0e +DIST libinput-1.22.0.tar.bz2 796133 BLAKE2B 3552f0a9ab0690969c5a7d62882733aa7bcaed1c0e97ff3606f58558c235cb67e3c81bc5a277273d26e6847438acccfc942d2fbec312e9a0d121d8ea21896496 SHA512 62cc36845daa7bc4b8477dd71abe629309683a93de753382a90e8466915e2b96b9c6914b431747d3462c15d8ab42bc70ee755800eec60c4ad7e9f3b4f7dba76d EBUILD libinput-1.21.0-r1.ebuild 2289 BLAKE2B c89e242476aef8f5eda9db495a361a9118dfa385d42cc620cbef880436f61b773e9962effe4443a0915342a196c497721da5b1b5651e969299ad225024d5898d SHA512 8dc50c92765e5877c1d1d0bff8fe002f190b835b02d8f90d6d18c14a4a1602197e7f5854ab284f47c198c1c73e83f05c85bae56b105bb29026560141429275a4 +EBUILD libinput-1.22.0.ebuild 2179 BLAKE2B 90d939773a94fd7d9c2647aedf4aa7981df5b984d00da962bc8b1f6bf1926016bebb77b92b9b3db1af021f7e7f09242c38781c0fb90a1b70be2d1edd3f4e40e5 SHA512 8ab2f4c6ead05ecf089faa09599b20ea288d8caf77771fa0dedf3252164170656b9209f6a9eec54cf52283d5f8239ed0a69a2af110cd28d9aca91f1cc20bbb67 MISC metadata.xml 339 BLAKE2B c649f0ffaad1b1dc76c3d3184d95356b2925f642ff6b96c3eba0c31a1d96c3d9b741c1348f8ec90d02428c30a836872fe4e42e7ab5f5e5197f4a787f9147a1a8 SHA512 e9aeca6cc4451ab5b622f597f8debaecfdc672244e5e0b687ac294c20009ba42fb2ccc45e7016a2427312e1c768259005e0a7ff53026087570382652ec23cb60 diff --git a/dev-libs/libinput/libinput-1.22.0.ebuild b/dev-libs/libinput/libinput-1.22.0.ebuild new file mode 100644 index 000000000000..4457b5e6d2e8 --- /dev/null +++ b/dev-libs/libinput/libinput-1.22.0.ebuild @@ -0,0 +1,90 @@ +# Copyright 2014-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +inherit meson optfeature python-any-r1 udev + +DESCRIPTION="Library to handle input devices in Wayland" +HOMEPAGE="https://www.freedesktop.org/wiki/Software/libinput/ https://gitlab.freedesktop.org/libinput/libinput" +SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/${PV}/${P}.tar.bz2" + +LICENSE="MIT" +SLOT="0/10" +if [[ $(ver_cut 3) -lt 900 ]] ; then + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi +IUSE="doc input_devices_wacom test" +RESTRICT="!test? ( test )" + +RDEPEND=" + input_devices_wacom? ( >=dev-libs/libwacom-0.27:= ) + >=dev-libs/libevdev-1.9.902 + >=sys-libs/mtdev-1.1 + virtual/libudev:= + virtual/udev +" +DEPEND=" + ${RDEPEND} + test? ( >=dev-libs/check-0.9.10 ) +" +BDEPEND=" + virtual/pkgconfig + doc? ( + $(python_gen_any_dep ' + dev-python/commonmark[${PYTHON_USEDEP}] + dev-python/recommonmark[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + >=dev-python/sphinx_rtd_theme-0.2.4[${PYTHON_USEDEP}] + ') + >=app-doc/doxygen-1.8.3 + >=media-gfx/graphviz-2.38.0 + ) +" +# test? ( dev-util/valgrind ) + +python_check_deps() { + python_has_version "dev-python/commonmark[${PYTHON_USEDEP}]" && \ + python_has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && \ + python_has_version "dev-python/sphinx[${PYTHON_USEDEP}]" && \ + python_has_version ">=dev-python/sphinx_rtd_theme-0.2.4[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use doc && python-any-r1_pkg_setup +} + +src_prepare() { + default + sed "s@, '-Werror'@@" -i meson.build || die #744250 +} + +src_configure() { + # gui can be built but will not be installed + local emesonargs=( + -Ddebug-gui=false + $(meson_use doc documentation) + $(meson_use input_devices_wacom libwacom) + $(meson_use test tests) + -Dudev-dir="${EPREFIX}$(get_udevdir)" + ) + meson_src_configure +} + +src_install() { + meson_src_install + if use doc ; then + docinto html + dodoc -r "${BUILD_DIR}"/Documentation/. + fi +} + +pkg_postinst() { + optfeature "measure and replay tools" dev-python/python-libevdev + udev_reload +} + +pkg_postrm() { + udev_reload +} diff --git a/dev-libs/newt/Manifest b/dev-libs/newt/Manifest index 95aae3b228d0..2f2a9d59bc23 100644 --- a/dev-libs/newt/Manifest +++ b/dev-libs/newt/Manifest @@ -3,6 +3,9 @@ AUX newt-0.52.14-tcl.patch 3269 BLAKE2B dc542330cf49a43d63ca6e3edea141ae62664a70 AUX newt-0.52.21-fix-non-POSIX-backticks.patch 794 BLAKE2B ffeba1923f7ce7d9f8349e6880b1439c3376f47cfa742e2b236b2072e3420120e1c6858437e1921295b752d63389aeea27eb5b22d39967d88f4894d153e22d42 SHA512 2e4c4c68add4a6ac107efa08fcff20d4a557252ebf246d38875d2f428432ba739469ab4200d94d3dfaf7ddec28e0b029e628e3b18678fad0cc2af731e7477032 AUX newt-0.52.21-python-sitedir.patch 954 BLAKE2B ed2a504cc2e2c06200e209fdf55e9b3ce01c502bd1a6898c6c56e5ecedfcc5672ab619f52d3ad3828569996d11302bdc24cc484f3d65a85d27b5e8c564e12311 SHA512 3583b352d2e46e12f03a1d3b0fcaab606018765b1ae8855a7160bced34b36235a4ed0cd2b4cda1202e40680d6d8a7ad7a93aec0b46d2ee17a091509cf079c9b4 AUX newt-0.52.21_p20210816-makefile-LDFLAGS-ordering.patch 1221 BLAKE2B 410dfe5140867bc3ac2a6f5d1718ee3b63fd7a5ae8870c008015eb88303452099a40e5488739572172bdc9b52b5f1dec2f05cc11de2fc32d1aeea7776143eb94 SHA512 0700ea717cbe380d0facea31f22c637e837fb050a115273c147629d945eb87780a3b10f05aa8b7ca52c31c80dc6f9f356b154041b7f5a80b51d438934d1c8ad8 +AUX newt-0.52.22-gold.patch 477 BLAKE2B 32145a4fc83d9ed91712ae5d90ef3409593bf911d078e81c9443081432f0f0ae73e9b1c1f7692d344db521d794f5ad2b4b1c0fe0c9d0f2e0cc8a16701efbdd31 SHA512 16ddc925c34dd128e5168e7a9be2653b5488635929c91229d1a12e71a2fe0be0755263ff68ca23e45b1296ec994cddecf1ed7fffe33453fe0971be82df60f19d DIST newt-0.52.21_p20210816.tar.gz 128555 BLAKE2B 97c791d7301b657bec68045f2cd9bbe16eef0b099a6304e2336414837b36492bd794be04d0bbcd9eadc6fcd000ba2563a5ab90be5d61249390a6ea5435091f97 SHA512 06c1d5634d88a6126de5eddd1c4d436639a4d739b100f391638b0429a3941eabcaa0ff7398f498d735ec0af5e88deb14178110ab11bf5301ef661f7953692bc4 +DIST newt-0.52.22.tar.gz 128543 BLAKE2B 103ebe43ccd186068ffd468e56698e9f6f90ab5d687a14a27d454cfd68feb4ccd11710b6c472c07905a4aeb915efefd4f3b90c3c7822db7cdd5923c53996b7ae SHA512 2881340f97afccb8be02b2915a6f1de26de6c1e7c7b97776b8d2c87386e3f3611697a47b7e9b1a043f334d72b6d2bdcb7fd3ff128a7d994fcb437f456873016c EBUILD newt-0.52.21_p20210816.ebuild 2362 BLAKE2B 599f18a5aaf23cc89bdb51034fd966115489defede1223f3c6f2d1be5cb3f42f8b794c74b46ce644cede0b58f214b78d9f6d9b90d2ec39a168a7f2597b0ee55a SHA512 7b21ba61faae7f4bf86582a9aedf505ac7230d531a579b4ff45ddcb9bbb0ae3b2dc2385694173c81dba4dcc386b92dba3e865dc636be4eb888e35b7dd9a9fa74 +EBUILD newt-0.52.22.ebuild 2225 BLAKE2B 441cef98c6c8d3b08a26f2bb3f731c80bda4c5b3a2816bf677c3fc85088b5f1af99a03cb13a8cdb0c5de2732eb195c29fea8fb32ef39bc5ccdc85b16cbf873d1 SHA512 3a3061fdba8be825e6e5f0ea2e818ea1148d06e3467dd93fd6c5b6f2f97e5cb229bb77101499bfb6e2858577ff4a5efd75d22af3462f44d7fd476bdc2cf68f9f MISC metadata.xml 251 BLAKE2B a9af03a4a233a890a554ab68f1876580e3720a72c1f946ea6dbb82c49afd94243ea4017cd8a392fa2adea53c588646fd0ebccb948dde0340ec2ff05c0381fb99 SHA512 0837c31655f6a725b0fad20c8998a3a4645dc8049e14980b0097776cf59b4288276489dfddc149893f29844175eeb187a54af7d28690de4afe18ef9fd4c1f98f diff --git a/dev-libs/newt/files/newt-0.52.22-gold.patch b/dev-libs/newt/files/newt-0.52.22-gold.patch new file mode 100644 index 000000000000..add9ce872dfd --- /dev/null +++ b/dev-libs/newt/files/newt-0.52.22-gold.patch @@ -0,0 +1,13 @@ +diff -ur a/configure.ac b/configure.ac +--- a/configure.ac 2022-11-21 07:58:11.000000000 -0600 ++++ b/configure.ac 2022-11-21 20:56:42.211913050 -0600 +@@ -24,7 +24,8 @@ + AC_MSG_CHECKING([for GNU ld]) + LD=$($CC -print-prog-name=ld 2>&5) + +-if test $($LD -v 2>&1 | $ac_cv_path_GREP -c "GNU ld") = 0; then ++if test $($LD -v 2>&1 | $ac_cv_path_GREP -c "GNU ld") = 0 -a \ ++ test $($LD -v 2>&1 | $ac_cv_path_GREP -c "GNU gold") = 0; then + # Not + GNU_LD="" + AC_MSG_RESULT([no]) diff --git a/dev-libs/newt/newt-0.52.22.ebuild b/dev-libs/newt/newt-0.52.22.ebuild new file mode 100644 index 000000000000..748ece132c15 --- /dev/null +++ b/dev-libs/newt/newt-0.52.22.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) + +inherit autotools python-r1 toolchain-funcs + +MY_PV="r$(ver_rs 1- -)" + +DESCRIPTION="Redhat's Newt windowing toolkit development files" +HOMEPAGE="https://pagure.io/newt" +SRC_URI="https://github.com/mlichvar/newt/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86" +IUSE="gpm nls tcl" +RESTRICT="test" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + >=dev-libs/popt-1.6 + =sys-libs/slang-2* + gpm? ( sys-libs/gpm ) + tcl? ( >=dev-lang/tcl-8.5:0 ) + " +DEPEND="${RDEPEND}" +BDEPEND="sys-devel/gettext" + +PATCHES=( + "${FILESDIR}"/${PN}-0.52.22-gold.patch + "${FILESDIR}"/${PN}-0.52.14-tcl.patch + "${FILESDIR}"/${PN}-0.52.21-python-sitedir.patch +) + +S=${WORKDIR}/${PN}-${MY_PV} + +src_prepare() { + sed -i Makefile.in \ + -e 's|$(SHCFLAGS) -o|$(LDFLAGS) &|g' \ + -e 's|-g -o|$(CFLAGS) $(LDFLAGS) -o|g' \ + -e 's|-shared -o|$(CFLAGS) $(LDFLAGS) &|g' \ + -e 's|instroot|DESTDIR|g' \ + -e 's| make | $(MAKE) |g' \ + -e "s| ar | $(tc-getAR) |g" \ + || die "sed Makefile.in" + + if [[ -n ${LINGUAS} ]]; then + local lang langs + for lang in ${LINGUAS}; do + test -r po/${lang}.po && langs="${langs} ${lang}.po" + done + sed -i po/Makefile \ + -e "/^CATALOGS = /cCATALOGS = ${langs}" \ + || die "sed po/Makefile" + fi + + default + eautoreconf + + # can't build out-of-source + python_copy_sources +} + +src_configure() { + configuring() { + econf \ + PYTHONVERS="${PYTHON}" \ + $(use_with gpm gpm-support) \ + $(use_with tcl) \ + $(use_enable nls) + } + python_foreach_impl run_in_build_dir configuring +} + +src_compile() { + building() { + emake PYTHONVERS="${EPYTHON}" + } + python_foreach_impl run_in_build_dir building +} + +src_install() { + installit() { + emake \ + DESTDIR="${D}" \ + PYTHON_SITEDIR="$(python_get_sitedir)" \ + PYTHONVERS="${EPYTHON}" \ + install + python_optimize + } + python_foreach_impl run_in_build_dir installit + dodoc peanuts.py popcorn.py tutorial.sgml + doman whiptail.1 + einstalldocs + + # don't want static archives + rm "${ED}"/usr/$(get_libdir)/libnewt.a || die +} -- cgit v1.2.3