|
|
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/net-dns/libidn/libidn-0.6.1.ebuild,v 1.1 2006/01/22 12:42:31 dragonheart Exp $ | # $Header: /var/cvsroot/gentoo-x86/net-dns/libidn/libidn-0.6.1.ebuild,v 1.1 2006/01/22 12:42:31 dragonheart Exp $ |
| |
inherit java-pkg |
inherit java-pkg mono |
| |
DESCRIPTION="Internationalized Domain Names (IDN) implementation" | DESCRIPTION="Internationalized Domain Names (IDN) implementation" |
HOMEPAGE="http://www.gnu.org/software/libidn/" | HOMEPAGE="http://www.gnu.org/software/libidn/" |
|
|
LICENSE="LGPL-2.1" | LICENSE="LGPL-2.1" |
SLOT="0" | SLOT="0" |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~s390 ~sh ~sparc ~x86" | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~s390 ~sh ~sparc ~x86" |
IUSE="java doc nls emacs" |
IUSE="java doc emacs mono nls" |
| |
DEPEND="java? ( >=virtual/jdk-1.4 | DEPEND="java? ( >=virtual/jdk-1.4 |
|
mono? ( >=dev-lang/mono-0.95 ) |
dev-java/gjdoc )" | dev-java/gjdoc )" |
RDEPEND="java? ( >=virtual/jre-1.4 )" |
RDEPEND="java? ( >=virtual/jre-1.4 ) |
|
mono? ( >=dev-lang/mono-0.95 )" |
| |
src_compile() { | src_compile() { |
local jdkhome |
local jdkhome="" |
|
local myconf=" --disable-csharp" |
| |
if use java; then | if use java; then |
jdkhome=$(java-config --jdk-home) | jdkhome=$(java-config --jdk-home) |
|
|
fi | fi |
fi | fi |
| |
|
use mono && myconf=" --enable-csharp=mono" |
|
|
econf \ | econf \ |
$(use_enable nls) \ | $(use_enable nls) \ |
$(use_enable java) \ | $(use_enable java) \ |
|
${myconf} \ |
|| die | || die |
| |
emake || die | emake || die |