add new files

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/opsi@2959 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2011-06-23 05:43:07 +00:00
parent ba8e002dba
commit 636170b584
2 changed files with 70 additions and 0 deletions

2
dev-java/swingx/Manifest Normal file
View File

@ -0,0 +1,2 @@
DIST swingx-1.6.1-src.zip 12109329 RMD160 23026edd91761064a0da03d13ed49c3ae4ca02fa SHA1 b337c606a06ab9707a1bec599c455634d4fd409b SHA256 f24123c72c065323bd9fa06e62f7f43c8b69bac740f0188ebf9b2d759b5faeb0
EBUILD swingx-1.6.1.ebuild 1603 RMD160 61cdb6f2c17d24a321c9882baa6b31264257285c SHA1 ec0ae1596d936cee2a0dd8203adeeaa860ab88a1 SHA256 2ee2a7159a8b8f9c9c767b315656d7e4dc83b1a973400bd1a7ea0ba88c4e1995

View File

@ -0,0 +1,68 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
JAVA_PKG_IUSE="doc source test"
inherit java-pkg-2 java-ant-2
MY_P="${P}-src"
DESCRIPTION="SwingLabs Swing Component Extensions"
HOMEPAGE="https://swingx.dev.java.net/"
SRC_URI="http://java.net/downloads/swingx/releases/${PV}/${MY_P}.zip"
LICENSE="LGPL-2.1"
SLOT="1.6"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="
>=virtual/jre-1.6"
DEPEND="
>=virtual/jdk-1.6
app-arch/unzip
test? (
dev-java/ant-junit4:0
dev-java/commons-collections:0
dev-java/commons-lang:2.1
dev-java/filters:0
dev-java/hamcrest-core:0
)"
S="${WORKDIR}/${MY_P}"
WANT_ANT_TASKS="ant-nodeps"
JAVA_ANT_REWRITE_CLASSPATH="yes"
JAVA_PKG_BSFIX_NAME="build.xml swinglabs-build-impl.xml build-impl.xml"
java_prepare() {
# preserve demo-taglet for the doc target
use doc && mv "lib/build-only/demo-taglet.jar" "."
rm -vf $(find lib/ -name \*.jar) || die
use doc && mv "demo-taglet.jar" "lib/build-only/"
}
src_test() {
local jars="junit-4,hamcrest-core,commons-collections,commons-lang-2.1,filters"
local gcp="$(java-pkg_getjars --build-only ${jars})"
# remove failing test in 1.6.1
rm -fv "src/test/org/jdesktop/swingx/SerializableTest.java" || die
# the test wants to access X otherwise
unset DISPLAY
ANT_TASKS="ant-nodeps ant-junit4" eant "-Dgentoo.classpath=\"${gcp}\"" "test"
}
src_install() {
java-pkg_dojar "dist/${PN}.jar"
java-pkg_dojar "dist/${PN}-beaninfo.jar"
use doc && java-pkg_dojavadoc dist/javadoc
use source && java-pkg_dosrc src/java/* src/beaninfo/*
}