2010-02-18 19:42:34 +01:00
|
|
|
# Copyright 1999-2010 Gentoo Foundation
|
2008-06-23 17:20:36 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
JAVA_PKG_IUSE="source"
|
|
|
|
|
|
|
|
inherit java-pkg-2 java-ant-2
|
|
|
|
|
2009-04-20 18:25:41 +02:00
|
|
|
DESCRIPTION="A Java-based password generator whose functionality resembles the popular 'pwgen' program."
|
2008-06-23 17:20:36 +02:00
|
|
|
HOMEPAGE="http://jpwgen.berlios.de/"
|
2008-12-10 07:57:58 +01:00
|
|
|
SRC_URI="mirror://berlios/jpwgen/jpwgen-${PV}-sources.jar"
|
2008-06-23 17:20:36 +02:00
|
|
|
|
|
|
|
LICENSE="W3C"
|
|
|
|
SLOT="0"
|
2010-02-18 19:42:34 +01:00
|
|
|
KEYWORDS="amd64 ~arm x86 ~x86-fbsd"
|
2008-06-23 17:20:36 +02:00
|
|
|
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"
|
|
|
|
|
2009-04-20 18:28:29 +02:00
|
|
|
S="${WORKDIR}"
|
|
|
|
|
2008-06-23 17:20:36 +02:00
|
|
|
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/*
|
|
|
|
}
|