diff options
author | 2017-08-19 13:43:02 +0100 | |
---|---|---|
committer | 2017-08-19 16:11:22 +0100 | |
commit | 3fc9e2c5ce06e7466f34130716c742a13d5eb7d2 (patch) | |
tree | 33c0c4e676f19333c727fbcd8e778fe32ca1b806 /net-dns | |
parent | Add net-analyzer/nagios-core-4.3.3, update README.md (diff) | |
download | srcshelton-3fc9e2c5ce06e7466f34130716c742a13d5eb7d2.tar.gz srcshelton-3fc9e2c5ce06e7466f34130716c742a13d5eb7d2.tar.bz2 srcshelton-3fc9e2c5ce06e7466f34130716c742a13d5eb7d2.zip |
Add net-dns/libidn-1.33, update README.md
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/libidn/Manifest | 3 | ||||
-rw-r--r-- | net-dns/libidn/files/50libidn-gentoo.el | 12 | ||||
-rw-r--r-- | net-dns/libidn/libidn-1.33.ebuild | 124 |
3 files changed, 139 insertions, 0 deletions
diff --git a/net-dns/libidn/Manifest b/net-dns/libidn/Manifest new file mode 100644 index 00000000..dc5c4148 --- /dev/null +++ b/net-dns/libidn/Manifest @@ -0,0 +1,3 @@ +AUX 50libidn-gentoo.el 455 SHA256 b8b5a7df3ef312b47ef44d7b5c9180e06e9d8b9cbe43fa67b8511296381ff937 SHA512 13bcc7078ae8e088014323707d451c0bfdb53414e550945248a9648afa81681db013cb523eae71116c84f1dcfbb3b87e8743971775b75c4ce6dad914b3b0a501 WHIRLPOOL e2925be57973d4f2d9adebaa63bc9a2d63daa0c4ac571790fd564fe4b7a4d5d8db62a0e342a5043b28e2c506bb62f86e9f967e5a680dd50261fa1dfb4214b260 +DIST libidn-1.33.tar.gz 3501056 SHA256 44a7aab635bb721ceef6beecc4d49dfd19478325e1b47f3196f7d2acc4930e19 SHA512 38dd459eaeda0c9e3cc2d24d967113515a499747550a2a9157f32357def90d71a3a3b52398e96a44a28cd5948dc353b0473c4ff0453a69720191c4cb49cac2c6 WHIRLPOOL 3b0c44742c2515e09eaf8f16f32f30bc37478a6273765d71dd9a9283f501998b6d85583cd38810bbdbd6103855e77831360010d707d29956798e3f5d066b0e82 +EBUILD libidn-1.33.ebuild 2864 SHA256 66d2508fb3abf2ccc39c755623a1815d149e840c96b34f7ac86089eafd63a120 SHA512 38fdaf661d0b36d1a03c8277e9dd5548982e21fd42c7430aa4158626554e281a0dc632c1c47a18ac2b6f02561d28e64ac34f8150a668c890b52c37c722e63440 WHIRLPOOL a2578cec3621293112d79a2128240e10ed2012d33fab833e1781b8bb7c1a99e9d05864ddf9e7a4f931ee9b222d80ae9e0b2bcfdb1ec7737adf1fa7d560f44613 diff --git a/net-dns/libidn/files/50libidn-gentoo.el b/net-dns/libidn/files/50libidn-gentoo.el new file mode 100644 index 00000000..6ab280c6 --- /dev/null +++ b/net-dns/libidn/files/50libidn-gentoo.el @@ -0,0 +1,12 @@ + +;;; libidn site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") +(autoload 'idna-to-ascii "idna" + "Returns an ASCII Compatible Encoding (ACE) of STR.") +(autoload 'idna-to-unicode "idna" + "Returns a possibly multibyte string after decoding STR.") +(autoload 'punycode-encode "punycode" + "Returns a Punycode encoding of STR.") +(autoload 'punycode-decode "punycode" + "Returns a possibly multibyte string which is the punycode decoding of STR.") diff --git a/net-dns/libidn/libidn-1.33.ebuild b/net-dns/libidn/libidn-1.33.ebuild new file mode 100644 index 00000000..930f576d --- /dev/null +++ b/net-dns/libidn/libidn-1.33.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit elisp-common java-pkg-opt-2 libtool mono-env multilib-minimal toolchain-funcs + +DESCRIPTION="Internationalized Domain Names (IDN) implementation" +HOMEPAGE="https://www.gnu.org/software/libidn/" +SRC_URI="mirror://gnu/libidn/${P}.tar.gz" + +LICENSE="GPL-2 GPL-3 LGPL-3 java? ( Apache-2.0 )" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc emacs java mono nls static-libs" + +DOCS=( AUTHORS ChangeLog FAQ NEWS README THANKS TODO ) +COMMON_DEPEND=" + emacs? ( virtual/emacs ) + mono? ( >=dev-lang/mono-0.95 ) +" +DEPEND="${COMMON_DEPEND} + nls? ( + >=sys-devel/gettext-0.17 + ) + java? ( + >=virtual/jdk-1.5 + ) +" +RDEPEND="${COMMON_DEPEND} + nls? ( + >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] + ) + java? ( + >=virtual/jre-1.5 + ) + abi_x86_32? ( + !<=app-emulation/emul-linux-x86-baselibs-20140508-r5 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] + ) +" + +pkg_setup() { + mono-env_pkg_setup + java-pkg-opt-2_pkg_setup +} + +src_prepare() { + default + + # bundled, with wrong bytecode + rm "${S}/java/${P}.jar" || die + + eapply_user + + elibtoolize # for Solaris shared objects +} + +multilib_src_configure() { + ECONF_SOURCE=${S} GJDOC=javadoc \ + econf \ + $(multilib_native_use_enable java) \ + $(multilib_native_use_enable mono csharp mono) \ + $(use_enable nls) \ + $(use_enable static-libs static) \ + --disable-silent-rules \ + --disable-valgrind-tests \ + --with-lispdir="${EPREFIX}${SITELISP}/${PN}" \ + --with-packager-bug-reports="https://bugs.gentoo.org" \ + --with-packager-version="r${PR}" \ + --with-packager="Gentoo" +} + +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; then + gen_usr_ldscript -a idn + + if 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 + 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 + dohtml -r doc/reference/html/. + fi + + prune_libtool_files +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |