32cd410444
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2045 6952d904-891a-0410-993b-d76249ca496b
48 lines
1018 B
Bash
48 lines
1018 B
Bash
# Copyright 1999-2010 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="A Java-based password generator whose functionality resembles the popular 'pwgen' program."
|
|
HOMEPAGE="http://jpwgen.berlios.de/"
|
|
SRC_URI="mirror://berlios/jpwgen/jpwgen-${PV}-sources.jar"
|
|
|
|
LICENSE="W3C"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~arm x86 ~x86-fbsd"
|
|
IUSE=""
|
|
|
|
COMMON_DEP="dev-java/commons-logging
|
|
dev-java/commons-cli"
|
|
RDEPEND=">=virtual/jre-1.5
|
|
${COMMON_DEP}"
|
|
DEPEND=">=virtual/jdk-1.5
|
|
${COMMON_DEP}
|
|
app-arch/unzip"
|
|
|
|
S="${WORKDIR}"
|
|
|
|
src_unpack() {
|
|
unpack ${A}
|
|
|
|
cp "${FILESDIR}/build.xml" "${S}"
|
|
|
|
cd "${S}"
|
|
|
|
mkdir src
|
|
mv de src
|
|
echo "classpath=$(java-pkg_getjars commons-cli-1,commons-logging)" > "${S}"/build.properties
|
|
}
|
|
|
|
EANT_DOC_TARGET=""
|
|
|
|
src_install() {
|
|
java-pkg_dojar "${S}"/dist/jpwgen.jar
|
|
java-pkg_dolauncher ${PN} --main de.rrze.idmone.utils.jpwgen.PwGenerator
|
|
|
|
use source && java-pkg_dosrc "${S}"/src/*
|
|
}
|