diff options
author | Jeroen Roovers <jer@gentoo.org> | 2016-07-21 08:16:59 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2016-07-21 08:18:30 +0200 |
commit | 8a0d9938f7de74d1a6bb20a48a2242e71604fc40 (patch) | |
tree | 515b88146f09300b8b8ca541e33f254641769d50 /net-dns/libidn | |
parent | www-client/opera-developer: Old. (diff) | |
download | gentoo-8a0d9938f7de74d1a6bb20a48a2242e71604fc40.tar.gz gentoo-8a0d9938f7de74d1a6bb20a48a2242e71604fc40.tar.bz2 gentoo-8a0d9938f7de74d1a6bb20a48a2242e71604fc40.zip |
net-dns/libidn: Version bump.
Package-Manager: portage-2.3.0
Diffstat (limited to 'net-dns/libidn')
-rw-r--r-- | net-dns/libidn/Manifest | 1 | ||||
-rw-r--r-- | net-dns/libidn/libidn-1.33.ebuild | 119 |
2 files changed, 120 insertions, 0 deletions
diff --git a/net-dns/libidn/Manifest b/net-dns/libidn/Manifest index 287bbf2c7b59..37174014a065 100644 --- a/net-dns/libidn/Manifest +++ b/net-dns/libidn/Manifest @@ -1,2 +1,3 @@ DIST libidn-1.30.tar.gz 3474545 SHA256 39b9fc94d74081c185757b12e0891ce5a22db55268e7d1bb24533ff4432eb053 SHA512 066b3bd098f2ef39361ee42ec0abfcc69ba695b1565a81905e2047fa453c328a2d674703ac873a4e5a349632151ce5d6d56328b93fae42ca5e658190949a26a9 WHIRLPOOL a6fff4c283e0a556d8d5772f496468761030200935aa649d31e7e305cc1c215e578d13c518470f062b5cf54fb893c6c259023d88aa209216039a2319e7ed5dce DIST libidn-1.32.tar.gz 3483155 SHA256 ba5d5afee2beff703a34ee094668da5c6ea5afa38784cebba8924105e185c4f5 SHA512 fd48665b65f88210ea504675fc1cd667bd4042b1df3e386847070a465d6753efcec735e6e8572f45f9432235e813c61ef7df09596274935467fdc6f12f80b9bd WHIRLPOOL 1ea67bc1cf1dc9887c6721d5ed15a9227424bdb88f5a915b5854a2ba747228849acaf1a71e9869972cff1887742b031cc57f66c6a1aafac10e65b42dbee9a2f6 +DIST libidn-1.33.tar.gz 3501056 SHA256 44a7aab635bb721ceef6beecc4d49dfd19478325e1b47f3196f7d2acc4930e19 SHA512 38dd459eaeda0c9e3cc2d24d967113515a499747550a2a9157f32357def90d71a3a3b52398e96a44a28cd5948dc353b0473c4ff0453a69720191c4cb49cac2c6 WHIRLPOOL 3b0c44742c2515e09eaf8f16f32f30bc37478a6273765d71dd9a9283f501998b6d85583cd38810bbdbd6103855e77831360010d707d29956798e3f5d066b0e82 diff --git a/net-dns/libidn/libidn-1.33.ebuild b/net-dns/libidn/libidn-1.33.ebuild new file mode 100644 index 000000000000..545647466138 --- /dev/null +++ b/net-dns/libidn/libidn-1.33.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit elisp-common java-pkg-opt-2 mono-env multilib-minimal + +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/11.6.16" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-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 +} + +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 && 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 + dohtml -r doc/reference/html/. + fi + + prune_libtool_files +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |