Lines 1-8
Link Here
|
1 |
# Copyright 1999-2007 Gentoo Foundation |
1 |
# Copyright 1999-2007 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-dns/libidn/libidn-0.6.9-r1.ebuild,v 1.1 2007/04/24 17:25:12 betelgeuse Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
inherit java-pkg-opt-2 mono autotools |
5 |
inherit java-pkg-opt-2 mono autotools elisp-common |
6 |
|
6 |
|
7 |
DESCRIPTION="Internationalized Domain Names (IDN) implementation" |
7 |
DESCRIPTION="Internationalized Domain Names (IDN) implementation" |
8 |
HOMEPAGE="http://www.gnu.org/software/libidn/" |
8 |
HOMEPAGE="http://www.gnu.org/software/libidn/" |
Lines 18-24
Link Here
|
18 |
mono? ( >=dev-lang/mono-0.95 ) |
18 |
mono? ( >=dev-lang/mono-0.95 ) |
19 |
)" |
19 |
)" |
20 |
RDEPEND="java? ( >=virtual/jre-1.4 ) |
20 |
RDEPEND="java? ( >=virtual/jre-1.4 ) |
21 |
mono? ( >=dev-lang/mono-0.95 )" |
21 |
mono? ( >=dev-lang/mono-0.95 ) |
|
|
22 |
emacs? ( virtual/emacs )" |
22 |
|
23 |
|
23 |
src_unpack() { |
24 |
src_unpack() { |
24 |
unpack ${A} |
25 |
unpack ${A} |
Lines 32-63
Link Here
|
32 |
local myconf=" --disable-csharp" |
33 |
local myconf=" --disable-csharp" |
33 |
|
34 |
|
34 |
use mono && myconf="--enable-csharp=mono" |
35 |
use mono && myconf="--enable-csharp=mono" |
|
|
36 |
use emacs && myconf="${myconf} --with-lispdir="${SITELISP}/${PN}"" |
35 |
|
37 |
|
36 |
econf \ |
38 |
econf \ |
37 |
$(use_enable nls) \ |
39 |
$(use_enable nls) \ |
38 |
$(use_enable java) \ |
40 |
$(use_enable java) \ |
39 |
${myconf} \ |
41 |
${myconf} \ |
40 |
|| die |
42 |
|| die "econf failed" |
41 |
|
43 |
|
42 |
emake || die |
44 |
emake || die "emake failed" |
43 |
} |
45 |
} |
44 |
|
46 |
|
45 |
src_install() { |
47 |
src_install() { |
46 |
make install DESTDIR=${D} || die |
48 |
emake install DESTDIR="${D}" || die "emake install failed" |
47 |
dodoc AUTHORS ChangeLog FAQ NEWS README THANKS TODO |
49 |
dodoc AUTHORS ChangeLog FAQ NEWS README THANKS TODO |
48 |
|
50 |
|
49 |
use emacs || rm -r ${D}/usr/share/emacs |
51 |
use emacs || rm -r "${D}/usr/share/emacs" |
50 |
|
52 |
|
51 |
if use doc; then |
53 |
if use doc; then |
52 |
dohtml -r doc/reference/html/* |
54 |
dohtml -r doc/reference/html/* |
53 |
fi |
55 |
fi |
54 |
|
56 |
|
55 |
if use java; then |
57 |
if use java; then |
56 |
java-pkg_newjar ${D}/usr/share/java/${P}.jar || die |
58 |
java-pkg_newjar "${D}"/usr/share/java/${P}.jar || die "java-pkg_newjar failed" |
57 |
rm -rf ${D}/usr/share/java |
59 |
rm -rf "${D}"/usr/share/java |
58 |
|
60 |
|
59 |
if use doc; then |
61 |
if use doc; then |
60 |
java-pkg_dojavadoc doc/java |
62 |
java-pkg_dojavadoc doc/java |
61 |
fi |
63 |
fi |
62 |
fi |
64 |
fi |
63 |
} |
65 |
} |
|
|
66 |
|
67 |
pkg_postinst() { |
68 |
if use emacs; then |
69 |
elog "activate Emacs support by adding the following lines to your ~/.emacs file" |
70 |
elog " (add-to-list 'load-path \"${SITELISP}/${PN}\")" |
71 |
elog " (load idna)" |
72 |
elog " (load punycode)" |
73 |
fi |
74 |
} |