blob: 96ff28537d7661885976fd6ba64e3109380f7631 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jmdns/jmdns-1.0.ebuild,v 1.4 2007/11/02 03:35:33 wltjr Exp $
inherit java-pkg-2
DESCRIPTION="JmDNS is an implementation of multi-cast DNS in Java."
SRC_URI="mirror://sourceforge/${PN}/${P}-Final.tar.gz"
HOMEPAGE="http://jmdns.sourceforge.net"
IUSE="doc examples source"
DEPEND=">=virtual/jdk-1.3.1"
RDEPEND=">=virtual/jre-1.3.1"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 x86"
src_unpack() {
unpack ${A}
cd "${S}"
rm lib/*.jar
}
src_compile() {
echo "Compiling JmDNS..."
ejavac "${S}"/src/javax/jmdns/* || die
echo "Compiling tools..."
ejavac -classpath "${S}/src" "${S}"/src/com/strangeberry/jmdns/tools/* || die
echo "Making jars..."
echo "Main-class: com.strangeberry.jmdns.tools.Main" > jmdns-tools-manifest
jar cmf jmdns-tools-manifest jmdns.jar -C "${S}/src" com -C "${S}/src" javax || die
}
src_install() {
java-pkg_dojar jmdns*.jar
java-pkg_dolauncher
dodoc README.txt CHANGELOG.txt
use doc && java-pkg_dojavadoc docs
use source && java-pkg_dosrc src/{com,javax}
if use examples; then
insinto /usr/share/doc/${P}/
doins -r src/samples
fi
}
|