blob: 41f39d548cc4798540f4135c2464f375ce32441a (
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 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.2 2004/06/24 22:35:11 agriffis 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/*
}
|