5860781de4
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1139 6952d904-891a-0410-993b-d76249ca496b
50 lines
1.1 KiB
Bash
50 lines
1.1 KiB
Bash
# Copyright 1999-2009 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
JAVA_PKG_IUSE="source"
|
|
|
|
inherit java-pkg-2 java-ant-2
|
|
|
|
DESCRIPTION="The basic runtime tools and interfaces for intarsys components."
|
|
HOMEPAGE="http://jpwgen.berlios.de/"
|
|
SRC_URI="mirror://sourceforge/jpodrenderer/isrt.${PV}.zip"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86 ~x86-fbsd"
|
|
IUSE="doc"
|
|
|
|
RDEPEND=">=virtual/jre-1.5"
|
|
DEPEND=">=virtual/jdk-1.5
|
|
app-arch/unzip"
|
|
|
|
S="${WORKDIR}"/distribution
|
|
|
|
src_unpack() {
|
|
unpack ${A}
|
|
|
|
cd "${S}"
|
|
mkdir ant
|
|
cp "${FILESDIR}/build.xml" "${S}"/ant
|
|
|
|
echo > ${S}/ant/build.properties
|
|
echo "build.dir=${S}/build" >> ${S}/ant/build.properties
|
|
echo "libs.dir=${S}" >> ${S}/ant/build.properties
|
|
echo "isrt.jar.name=isrt" >> ${S}/ant/build.properties
|
|
}
|
|
|
|
src_compile() {
|
|
eant ${antflags} -buildfile ant/build.xml || die "build failed"
|
|
|
|
use doc && eant ${antflags} -buildfile ant/build.xml javadoc || die "doc build failed"
|
|
}
|
|
|
|
src_install() {
|
|
java-pkg_dojar build/isrt/dist/isrt.jar
|
|
|
|
use source && java-pkg_dosrc src/*
|
|
|
|
use doc && java-pkg_dojavadoc build/isrt/javadoc
|
|
}
|