summaryrefslogtreecommitdiff
blob: 976096d534d6fa5d3e2d73915edecfb8bc7f2dc3 (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-2004 Gentoo Technologies, Inc.
# 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.1 2004/04/18 22:02:06 zx 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"

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 && dohtml -r docs/*
}