From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BDAC41382C5 for ; Mon, 17 May 2021 22:24:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3DA8CE0814; Mon, 17 May 2021 22:24:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 13FE6E0814 for ; Mon, 17 May 2021 22:24:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5D6C1340FD5 for ; Mon, 17 May 2021 22:24:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B583B78D for ; Mon, 17 May 2021 22:24:40 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1621290270.ef301d876e10541ad7783b7c3f92d775f73e5549.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/libidn/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/libidn/Manifest net-dns/libidn/libidn-1.37.ebuild X-VCS-Directories: net-dns/libidn/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ef301d876e10541ad7783b7c3f92d775f73e5549 X-VCS-Branch: master Date: Mon, 17 May 2021 22:24:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3e1e3a3d-72c9-46ec-a9b4-2352bbfcdddb X-Archives-Hash: 814bfb09ac98f3b3bc8e8bbfb6348599 commit: ef301d876e10541ad7783b7c3f92d775f73e5549 Author: Sam James gentoo org> AuthorDate: Mon May 17 22:14:05 2021 +0000 Commit: Sam James gentoo org> CommitDate: Mon May 17 22:24:30 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef301d87 net-dns/libidn: add 1.37 Signed-off-by: Sam James gentoo.org> net-dns/libidn/Manifest | 2 + net-dns/libidn/libidn-1.37.ebuild | 122 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 124 insertions(+) diff --git a/net-dns/libidn/Manifest b/net-dns/libidn/Manifest index 7d30534963a..5531e76951e 100644 --- a/net-dns/libidn/Manifest +++ b/net-dns/libidn/Manifest @@ -1 +1,3 @@ DIST libidn-1.36.tar.gz 4557804 BLAKE2B 562ea97cba7970e3f3bd1557ba9e25e4180cca1b5cb8f66539f7830baf195cd36dc513c50e2475829af42d420e3d3b73a1c002acb06579c8b8b3879dcc8f95b2 SHA512 0d66e10bf7a8de4b27f692a427d2c8e901b8bed73b0a36268d8f939205df81f6a30f0634fd3b87370d4e81c1327c0b10391fa122a0a5459c32a3541b8a2149ad +DIST libidn-1.37.tar.gz 2603177 BLAKE2B 2f55644b8e521ae75638e6b660f7a7e457957b783bfa359de497a475f70372d46557d9abd1263588cf8aecbaa713f24e5baf460b4aa663d3ead7326f296a58dc SHA512 198a5b2f0db3ad076e3726dda7f197835dd93a126ee796c138185abd09ee2f828042225dd570fa19b58b3e81b120daf929f348a55f9a536c546dd3311c29e27c +DIST libidn-1.37.tar.gz.sig 488 BLAKE2B 449e2222becc9c3714463c9875a625ef017aad9c188c2487ea3c7677a56c7821f02ac39404581bb033a23860e8b07251efabefd85a1f2be91461f2bd27162869 SHA512 6fc3543d32d2a2b730ee22c04098420200292c95582a625cbd05729b3df40f87faa35aaceb9fa45245fa891971a10f47281f490eb7bc3099910e349c643360a2 diff --git a/net-dns/libidn/libidn-1.37.ebuild b/net-dns/libidn/libidn-1.37.ebuild new file mode 100644 index 00000000000..70da61fa213 --- /dev/null +++ b/net-dns/libidn/libidn-1.37.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/libidn.asc +inherit elisp-common java-pkg-opt-2 libtool mono-env 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 java? ( Apache-2.0 )" +SLOT="0/12" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc emacs java mono nls" + +DOCS=( AUTHORS ChangeLog FAQ NEWS README THANKS ) + +COMMON_DEPEND=" + mono? ( >=dev-lang/mono-0.95 ) + nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) +" +DEPEND=" + ${COMMON_DEPEND} + java? ( >=virtual/jdk-1.8:* ) +" +RDEPEND=" + ${COMMON_DEPEND} + java? ( >=virtual/jre-1.8:* ) +" +BDEPEND=" + emacs? ( >=app-editors/emacs-23.1:* ) + nls? ( >=sys-devel/gettext-0.17 ) + verify-sig? ( app-crypt/openpgp-keys-libidn ) +" + +pkg_setup() { + mono-env_pkg_setup + java-pkg-opt-2_pkg_setup +} + +src_prepare() { + default + + # Bundled and with wrong bytecode + rm "${S}/java/${P}.jar" || die + + # For Solaris shared objects + elibtoolize +} + +multilib_src_configure() { + local -x GJDOC=javadoc + + local args=( + $(multilib_native_use_enable java) + $(multilib_native_use_enable mono csharp mono) + $(use_enable nls) + --disable-static + --disable-valgrind-tests + --with-lispdir="${EPREFIX}${SITELISP}/${PN}" + --with-packager-bug-reports="https://bugs.gentoo.org" + --with-packager-version="r${PR}" + --with-packager="Gentoo" + ) + + ECONF_SOURCE="${S}" econf "${args[@]}" +} + +multilib_src_compile() { + default + + if multilib_is_native_abi; then + use emacs && elisp-compile "${S}"/src/*.el + use java && use doc && emake -C java/src/main/java javadoc + fi +} + +multilib_src_test() { + # Only run libidn specific tests and not gnulib tests (bug #539356) + emake -C tests check +} + +multilib_src_install() { + emake DESTDIR="${D}" install + + if multilib_is_native_abi && use java; then + java-pkg_newjar java/${P}.jar ${PN}.jar + + rm -r "${ED}"/usr/share/java || die + + use doc && java-pkg_dojavadoc "${S}"/doc/java + 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 + + if use doc ; then + dodoc -r doc/reference/html/ + fi + + find "${ED}" -name '*.la' -delete || die +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +}