/[gentoo-x86]/net-dns/libidn/libidn-1.30.ebuild
Gentoo

Contents of /net-dns/libidn/libidn-1.30.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sun Aug 2 18:44:35 2015 UTC (3 years, 4 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +2 -2 lines
Stable for x86, wrt bug #552160

(Portage version: 2.2.20/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-dns/libidn/libidn-1.30.ebuild,v 1.8 2015/07/30 12:35:48 ago Exp $
4
5 EAPI=5
6 inherit elisp-common java-pkg-opt-2 mono-env multilib-minimal
7
8 DESCRIPTION="Internationalized Domain Names (IDN) implementation"
9 HOMEPAGE="http://www.gnu.org/software/libidn/"
10 SRC_URI="mirror://gnu/libidn/${P}.tar.gz"
11
12 LICENSE="GPL-2 GPL-3 LGPL-3 java? ( Apache-2.0 )"
13 SLOT="0"
14 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"
15 IUSE="doc emacs java mono nls static-libs"
16
17 DOCS=( AUTHORS ChangeLog FAQ NEWS README THANKS TODO )
18 COMMON_DEPEND="
19 emacs? ( virtual/emacs )
20 mono? ( >=dev-lang/mono-0.95 )
21 "
22 DEPEND="${COMMON_DEPEND}
23 nls? ( >=sys-devel/gettext-0.17 )
24 java? (
25 >=virtual/jdk-1.5
26 doc? ( dev-java/gjdoc )
27 )
28 "
29 RDEPEND="${COMMON_DEPEND}
30 nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
31 java? ( >=virtual/jre-1.5 )
32 abi_x86_32? (
33 !<=app-emulation/emul-linux-x86-baselibs-20140508-r5
34 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
35 )
36 "
37
38 pkg_setup() {
39 mono-env_pkg_setup
40 java-pkg-opt-2_pkg_setup
41 }
42
43 src_prepare() {
44 # bundled, with wrong bytecode
45 rm "${S}/java/${P}.jar" || die
46 }
47
48 multilib_src_configure() {
49 ECONF_SOURCE=${S} \
50 econf \
51 $(multilib_native_use_enable java) \
52 $(multilib_native_use_enable mono csharp mono) \
53 $(use_enable nls) \
54 $(use_enable static-libs static) \
55 --disable-silent-rules \
56 --disable-valgrind-tests \
57 --with-lispdir="${EPREFIX}${SITELISP}/${PN}" \
58 --with-packager-bug-reports="https://bugs.gentoo.org" \
59 --with-packager-version="r${PR}" \
60 --with-packager="Gentoo"
61 }
62
63 multilib_src_compile() {
64 default
65
66 if multilib_is_native_abi && use emacs; then
67 elisp-compile "${S}"/src/*.el || die
68 fi
69 }
70
71 multilib_src_test() {
72 # only run libidn specific tests and not gnulib tests (bug #539356)
73 emake -C tests check
74 }
75
76 multilib_src_install() {
77 emake DESTDIR="${D}" install
78
79 if multilib_is_native_abi && use java; then
80 java-pkg_newjar java/${P}.jar ${PN}.jar || die
81 rm -r "${ED}"/usr/share/java || die
82
83 if use doc ; then
84 java-pkg_dojavadoc doc/java
85 fi
86 fi
87 }
88
89 multilib_src_install_all() {
90 if use emacs; then
91 # *.el are installed by the build system
92 elisp-install ${PN} "${S}"/src/*.elc
93 elisp-site-file-install "${FILESDIR}/50${PN}-gentoo.el"
94 else
95 rm -r "${ED}/usr/share/emacs" || die
96 fi
97
98 einstalldocs
99 if use doc ; then
100 dohtml -r doc/reference/html/.
101 fi
102
103 prune_libtool_files
104 }
105
106 pkg_postinst() {
107 use emacs && elisp-site-regen
108 }
109
110 pkg_postrm() {
111 use emacs && elisp-site-regen
112 }

  ViewVC Help
Powered by ViewVC 1.1.20