diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-04 17:28:36 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-04 17:28:36 +0100 |
commit | 7dfa73123ca5218ae5f5cf878a90db9ea9a25321 (patch) | |
tree | 0f6f3cabfdd9a2f1e690a8d7f33a93dcd5840b23 /dev-libs/newt | |
parent | 47a1d2f184696819152c003a600beb058fbc4420 (diff) |
gentoo auto-resync : 04:05:2023 - 17:28:36
Diffstat (limited to 'dev-libs/newt')
-rw-r--r-- | dev-libs/newt/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/newt/files/newt-0.52.23-gold.patch | 13 | ||||
-rw-r--r-- | dev-libs/newt/newt-0.52.23-r1.ebuild | 102 |
3 files changed, 117 insertions, 0 deletions
diff --git a/dev-libs/newt/Manifest b/dev-libs/newt/Manifest index e0cb03d7e0ea..49a57f1d20b1 100644 --- a/dev-libs/newt/Manifest +++ b/dev-libs/newt/Manifest @@ -1,6 +1,8 @@ AUX newt-0.52.14-tcl.patch 3269 BLAKE2B dc542330cf49a43d63ca6e3edea141ae62664a701038c1086715b7de899f4b987c87069be8fd3a57f1f4c3fe8292d298876cf01f34e9d1f66f59ab7c08134d50 SHA512 6074f53b4070f4d8c7e1f4dfc4de7c549ac63a4af4bae70a3ebc3ebb03bd588923e8a952ffd93139041f5454318958a50a8ca8b0ecd98fb5d2ebde74b42aa313 AUX newt-0.52.21-python-sitedir.patch 954 BLAKE2B ed2a504cc2e2c06200e209fdf55e9b3ce01c502bd1a6898c6c56e5ecedfcc5672ab619f52d3ad3828569996d11302bdc24cc484f3d65a85d27b5e8c564e12311 SHA512 3583b352d2e46e12f03a1d3b0fcaab606018765b1ae8855a7160bced34b36235a4ed0cd2b4cda1202e40680d6d8a7ad7a93aec0b46d2ee17a091509cf079c9b4 AUX newt-0.52.22-gold.patch 477 BLAKE2B 32145a4fc83d9ed91712ae5d90ef3409593bf911d078e81c9443081432f0f0ae73e9b1c1f7692d344db521d794f5ad2b4b1c0fe0c9d0f2e0cc8a16701efbdd31 SHA512 16ddc925c34dd128e5168e7a9be2653b5488635929c91229d1a12e71a2fe0be0755263ff68ca23e45b1296ec994cddecf1ed7fffe33453fe0971be82df60f19d +AUX newt-0.52.23-gold.patch 472 BLAKE2B 07753aa346032369a17030fa883d4c08e340c5510625211acbeead0f0d5143914d0935affdf47aed36ec3607da6f7c7b8849ee92292730e4578e87b47c92870b SHA512 518f257ff913bd2467cf34a0dc0e26ec9ff430bc1aff939044055805c79addede1c58de32097248724ca2a8c247690e173eb87c1c5144bb161eb6db52f7ac845 DIST newt-0.52.23.tar.gz 128884 BLAKE2B 283809ac259475588b2f277e6c14ddc2981204f8d6c4963aa9ca7bf87376d2025e9edcc3194804bd6928f75deef706758e1868ba730fd06856ed0a95e534be00 SHA512 8040b01178311532c31642daae5bffc9c0f1917d28957164a02b3f5bd402e6561ff6faee75a936f72485eb71004238ede78c1973a970451fb5aaccff231887c7 +EBUILD newt-0.52.23-r1.ebuild 2193 BLAKE2B 273304d28020888f6885ca0092cdbf2bad08353a0ced4d3c6f2cc34243d7e663e535eb9d7b9c640b4a37c6ee6b4b2b5974d709cb4cac9e491372784d3846faa1 SHA512 4f1d8fec2c0fc971459b14760c8f814d803fe023dea221c48dc84f615dc28047f020c48a416bc20e5c94203949ad77c1bbc494e16e2c8b0261117da5e8d2d926 EBUILD newt-0.52.23.ebuild 2226 BLAKE2B 6b8b2106e3f700dafc1c522aec02d3868c36a5107ee9282634f68d085aac6bbb2e98a759ba8f7bdda2e42f47df7cc96489854327641d05545ec1f351dacfeb04 SHA512 cc9f67a888ab2e25f196349954af19e7e29fd838fdd904df148ca2070f3970a8a978cd1d78773325fcf5667b55207d96bafc146daa2ace96f1007f03763895ed MISC metadata.xml 333 BLAKE2B 5c5dc4580c21be4e57fd230e26cf7d9c79600b93f3f6788ba16b3f389c62a26c51a393a2d0147990492559c1b3fcc94751d7d8ac493f72e45efcedb152d2dd1f SHA512 34bb99d390ae88dbefde06ed990f5da92db8805fa7c2cd73ac86e651cbc14dbc6c8e00496ff1f38aee6c9c14ac654385bc41aa26020c63c49d39213dd5a0b9ca diff --git a/dev-libs/newt/files/newt-0.52.23-gold.patch b/dev-libs/newt/files/newt-0.52.23-gold.patch new file mode 100644 index 000000000000..818480f725c2 --- /dev/null +++ b/dev-libs/newt/files/newt-0.52.23-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 \ ++ $($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.23-r1.ebuild b/dev-libs/newt/newt-0.52.23-r1.ebuild new file mode 100644 index 000000000000..c5cadd071212 --- /dev/null +++ b/dev-libs/newt/newt-0.52.23-r1.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..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.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 +} |