blob: 6fc54690c8e6b3b06f754ee6b562a09564a38852 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jmdns/jmdns-0.2.ebuild,v 1.6 2005/04/22 08:39:23 blubb Exp $
inherit java-pkg
DESCRIPTION="JmDNS is an implementation of multi-cast DNS in Java. It supports service discovery and service registration. It is fully interoperable with Apple's Rendezvous"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
HOMEPAGE="http://jmdns.sourceforge.net"
IUSE="doc"
DEPEND=">=virtual/jdk-1.3.1"
RDEPEND=">=virtual/jdk-1.3.1"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="x86 amd64"
src_compile() {
einfo "Compiling JmDNS..."
javac ${S}/src/javax/jmdns/*
einfo "Compiling tools..."
javac -classpath ${S}/src ${S}/src/com/strangeberry/jmdns/tools/*
einfo "Making jars..."
jar cf jmdns.jar -C ${S}/src javax
echo "Main-class: com.strangeberry.jmdns.tools.Main" > jmdns-tools-manifest
jar cmf jmdns-tools-manifest jmdns-tools.jar -C ${S}/src com -C ${S}/src javax
}
src_install() {
java-pkg_dojar jmdns*.jar
dodoc README.txt LICENSE.txt
use doc && java-pkg_dohtml -r docs/*
}
|