diff options
author | Sam James <sam@gentoo.org> | 2024-01-14 02:43:35 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-01-14 02:44:36 +0000 |
commit | 00435780c75e8a0d728bd1aaf69acc86c77fbd1b (patch) | |
tree | e0f8179a1398dfeb20174b469f9e95d349c766e2 /net-dns | |
parent | sec-keys/openpgp-keys-libidn: add 20240114 (diff) | |
download | gentoo-00435780c75e8a0d728bd1aaf69acc86c77fbd1b.tar.gz gentoo-00435780c75e8a0d728bd1aaf69acc86c77fbd1b.tar.bz2 gentoo-00435780c75e8a0d728bd1aaf69acc86c77fbd1b.zip |
net-dns/libidn: add 1.42
Note that I've gone back to the default src_test implementation. Ignoring
gnulib test failures isn't ideal at all, so let's not do that, given it could
affect how the program operates and we've found other bugs that way in other
packages before. I'm not aware of any other packages where we make an effort
to skip the gnulib tests.
Bug: https://bugs.gentoo.org/500662
Bug: https://bugs.gentoo.org/539356
Closes: https://bugs.gentoo.org/898348
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/libidn/Manifest | 2 | ||||
-rw-r--r-- | net-dns/libidn/libidn-1.42.ebuild | 96 |
2 files changed, 98 insertions, 0 deletions
diff --git a/net-dns/libidn/Manifest b/net-dns/libidn/Manifest index d7ba2d57179b..85005d47a632 100644 --- a/net-dns/libidn/Manifest +++ b/net-dns/libidn/Manifest @@ -1,2 +1,4 @@ DIST libidn-1.41.tar.gz 2664011 BLAKE2B 6c632c2010f024792fd55d3c8e6f68e81152fa7421a4f65b6835d0dfd788707727381270c57bf46c6e252777e07ead501fdabdc55961c5c1604e81c53be5ab2b SHA512 765c42b64f10f0d84c0abecdce443baa9fdb80576179e3143bf56abde3f6c6149cc2c77e286e2e2a6ccf508914f30c2d5af258073168c0f886686e4fd85bbb47 DIST libidn-1.41.tar.gz.sig 228 BLAKE2B 004aa8871afa7cbb45206d8ddcc7ade21ea165aae2b00fc0c1d22cf05079bb399c8df628dc43bc0eb93c82524b96c71ad694c38234fdc2a4df09dc5192ca57bb SHA512 5d1dca4493cf4af420ba326b867e50e618432ce2808dde60a5325e1c64a6408dcb09d9b104c64d34e2726b9903c06b112ffc040fb6bb3818ae4ddf1551228c1c +DIST libidn-1.42.tar.gz 2653078 BLAKE2B 8f16d388884ad2ac9aafc46ec5eae144508ca86135184f625761c82c02ec9f99400bd4db65c9c9df54d315502cd5e2d37893d171abc6d76abe0a70f29acdb68e SHA512 1a99f0c9aa12cebed2de7db603c203696544cfe093afd7b233b0955f4fbe65440bf637089a624ed74e204abe854b1d16d11b77dc1b8d56c97ba6b20715aeb0d7 +DIST libidn-1.42.tar.gz.sig 228 BLAKE2B 0f2eab508a88de3ce03d79fa10fa053c5e24d76414c1f7f8f3cbaf956a818ec155407affce13cc588bc3838a3c85ef6f99ea30a3d18aa3553e2a1a92cf4282c2 SHA512 16706a3570620badf05ad146c8bf6ff7e96dc066b9dd609c22ecf3f942e70fa615f0f479e6d06b3317ddc094192f76effb841cbe72bff276914821f177ef2049 diff --git a/net-dns/libidn/libidn-1.42.ebuild b/net-dns/libidn/libidn-1.42.ebuild new file mode 100644 index 000000000000..54ca6626bae2 --- /dev/null +++ b/net-dns/libidn/libidn-1.42.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/libidn.asc +inherit elisp-common libtool multilib-minimal verify-sig + +DESCRIPTION="Internationalized Domain Names (IDN) implementation" +HOMEPAGE="https://www.gnu.org/software/libidn/" +SRC_URI=" + mirror://gnu/libidn/${P}.tar.gz + verify-sig? ( mirror://gnu/libidn/${P}.tar.gz.sig ) +" + +LICENSE="GPL-2 GPL-3 LGPL-3" +SLOT="0/12" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="emacs nls" + +DEPEND="nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )" +RDEPEND="${DEPEND}" +BDEPEND=" + emacs? ( >=app-editors/emacs-23.1:* ) + nls? ( >=sys-devel/gettext-0.17 ) + verify-sig? ( >=sec-keys/openpgp-keys-libidn-20240114 ) +" + +DOCS=( AUTHORS ChangeLog FAQ NEWS README THANKS ) + +QA_CONFIG_IMPL_DECL_SKIP=( + unreachable + static_assert +) + +src_prepare() { + default + + # For Solaris shared objects + elibtoolize +} + +multilib_src_configure() { + # -fanalyzer substantially slows down the build and isn't useful for + # us. It's useful for upstream as it's static analysis, but it's not + # useful when just getting something built. + export gl_cv_warn_c__fanalyzer=no + + local args=( + $(use_enable nls) + --disable-gcc-warnings + --disable-doc + --disable-gtk-doc + --disable-gtk-doc-html + --disable-gtk-doc-pdf + --disable-csharp + --disable-java + --disable-valgrind-tests + --with-lispdir="${EPREFIX}${SITELISP}/${PN}" + --with-packager-bug-reports="https://bugs.gentoo.org" + --with-packager-version="r${PR}" + --with-packager="Gentoo Linux" + ) + + ECONF_SOURCE="${S}" econf "${args[@]}" +} + +multilib_src_compile() { + default + + if multilib_is_native_abi; then + use emacs && elisp-compile "${S}"/src/*.el + fi +} + +multilib_src_install_all() { + if use emacs; then + # *.el are installed by the build system + elisp-install ${PN} "${S}"/src/*.elc + elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el + else + rm -r "${ED}"/usr/share/emacs || die + fi + + einstalldocs + + find "${ED}" -name '*.la' -delete || die +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |