From 4b1d73e089a436406c89fadc33638314981c44e6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 13 Jan 2025 06:41:32 +0000 Subject: gentoo auto-resync : 13:01:2025 - 06:41:32 --- dev-libs/newt/Manifest | 3 +- dev-libs/newt/files/newt-0.52.24-c99-fix.patch | 12 +++ dev-libs/newt/newt-0.52.24-r1.ebuild | 103 +++++++++++++++++++++++++ dev-libs/newt/newt-0.52.24.ebuild | 102 ------------------------ 4 files changed, 117 insertions(+), 103 deletions(-) create mode 100644 dev-libs/newt/files/newt-0.52.24-c99-fix.patch create mode 100644 dev-libs/newt/newt-0.52.24-r1.ebuild delete mode 100644 dev-libs/newt/newt-0.52.24.ebuild (limited to 'dev-libs/newt') diff --git a/dev-libs/newt/Manifest b/dev-libs/newt/Manifest index b971a2084322..0a1779067973 100644 --- a/dev-libs/newt/Manifest +++ b/dev-libs/newt/Manifest @@ -1,5 +1,6 @@ AUX newt-0.52.21-python-sitedir.patch 954 BLAKE2B ed2a504cc2e2c06200e209fdf55e9b3ce01c502bd1a6898c6c56e5ecedfcc5672ab619f52d3ad3828569996d11302bdc24cc484f3d65a85d27b5e8c564e12311 SHA512 3583b352d2e46e12f03a1d3b0fcaab606018765b1ae8855a7160bced34b36235a4ed0cd2b4cda1202e40680d6d8a7ad7a93aec0b46d2ee17a091509cf079c9b4 AUX newt-0.52.23-gold.patch 472 BLAKE2B 07753aa346032369a17030fa883d4c08e340c5510625211acbeead0f0d5143914d0935affdf47aed36ec3607da6f7c7b8849ee92292730e4578e87b47c92870b SHA512 518f257ff913bd2467cf34a0dc0e26ec9ff430bc1aff939044055805c79addede1c58de32097248724ca2a8c247690e173eb87c1c5144bb161eb6db52f7ac845 +AUX newt-0.52.24-c99-fix.patch 243 BLAKE2B 668d0ececb3315e5124c5649eba331b95dea85174b3f0e4925ee48fc17c820c909e5f763323ed68283a4840a4c645a558cd01224671f249be386f858bb2b2269 SHA512 c06b2bfe2aaf3de3ef451a79e9ab2b48af82d1d025125d48008e10c75663cbe01afa17421e587820c254498acdafb37ea579bfdff81753ac6ad6cf7a6c1fea6c DIST newt-0.52.24.tar.gz 128895 BLAKE2B fff7b3831f53a33b2d4f009fae0eb5603aef79c50f89e7f7179b80be837db35e44ecc860e4dc85e46195a59a87c12b2feae2ab043bef2fee0ea35a6efeded474 SHA512 999d8109dd3d74d04e813e84dc2e348278016dce7a678a1566197cf8fbc87810257b8a29fa766d29d48dc18bf4e1508b022460f15503fb6d029b3a05528b50be -EBUILD newt-0.52.24.ebuild 2174 BLAKE2B d5bf50fe247da64a3d7a33ea24dae0c576312826162db426d359c1d807e6215aecfa6345311a4a2af1d63ada38384c93c230eec507d7bd399ef5d9ff988870f1 SHA512 3dc76625f637fc61f221818ca877e4b1ca2b246215868b5b859976e59ff9b1feeb874b8ffc0c386caec3171de980cdd2de836f9e8f3610e06b73cc56852c59a2 +EBUILD newt-0.52.24-r1.ebuild 2217 BLAKE2B 446dccbc8522e7fb239f5efcc0c51c5be5ba99d98865c446ffcad060f38ba4c2455e36c300115f184e7a7a760e1a1e0550fe082742168e4a3fb8c3955e44fcbe SHA512 acc3c8ebc01542cb8e0b0ceec9fe27b1bae47a0fe37b80887c4d7f51343d22c6323ec6df13f98cef6da229c912f7ec69f275329c161adb7bc6f28d244a538b08 MISC metadata.xml 333 BLAKE2B 5c5dc4580c21be4e57fd230e26cf7d9c79600b93f3f6788ba16b3f389c62a26c51a393a2d0147990492559c1b3fcc94751d7d8ac493f72e45efcedb152d2dd1f SHA512 34bb99d390ae88dbefde06ed990f5da92db8805fa7c2cd73ac86e651cbc14dbc6c8e00496ff1f38aee6c9c14ac654385bc41aa26020c63c49d39213dd5a0b9ca diff --git a/dev-libs/newt/files/newt-0.52.24-c99-fix.patch b/dev-libs/newt/files/newt-0.52.24-c99-fix.patch new file mode 100644 index 000000000000..c891942fa524 --- /dev/null +++ b/dev-libs/newt/files/newt-0.52.24-c99-fix.patch @@ -0,0 +1,12 @@ +diff --git a/form.c b/form.c +index 24c601d..c6c15f5 100644 +--- a/form.c ++++ b/form.c +@@ -5,6 +5,7 @@ + #include + #include + #include ++#include + #ifdef HAVE_SYS_SELECT_H + #include + #endif diff --git a/dev-libs/newt/newt-0.52.24-r1.ebuild b/dev-libs/newt/newt-0.52.24-r1.ebuild new file mode 100644 index 000000000000..f9ea2a31c2c5 --- /dev/null +++ b/dev-libs/newt/newt-0.52.24-r1.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..13} ) + +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 ~loong 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.23-gold.patch + "${FILESDIR}"/${PN}-0.52.21-python-sitedir.patch + "${FILESDIR}"/${PN}-0.52.24-c99-fix.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 +} diff --git a/dev-libs/newt/newt-0.52.24.ebuild b/dev-libs/newt/newt-0.52.24.ebuild deleted file mode 100644 index f05b2ee51b89..000000000000 --- a/dev-libs/newt/newt-0.52.24.ebuild +++ /dev/null @@ -1,102 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..13} ) - -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 ~loong 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.23-gold.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