You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.1 KiB
55 lines
1.1 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=7
|
||
11 years ago
|
|
||
11 years ago
|
# TODO: Get doc (missing classpath entries) working.
|
||
11 years ago
|
JAVA_PKG_IUSE="source test"
|
||
|
|
||
|
inherit vcs-snapshot java-pkg-2 java-ant-2
|
||
|
|
||
8 years ago
|
DESCRIPTION="A library that allows you to use ANSI escape sequences in your console output"
|
||
11 years ago
|
HOMEPAGE="http://jansi.fusesource.org/"
|
||
3 years ago
|
SRC_URI="https://github.com/fusesource/${PN}/archive/${PN}-project-${PV}.tar.gz -> ${P}.tar.gz"
|
||
11 years ago
|
|
||
|
LICENSE="Apache-2.0"
|
||
3 years ago
|
SLOT="0"
|
||
|
KEYWORDS="amd64 ~arm64 ppc64 x86"
|
||
11 years ago
|
|
||
|
CDEPEND="dev-java/jansi-native:0"
|
||
|
|
||
|
DEPEND="${CDEPEND}
|
||
11 years ago
|
test? (
|
||
|
dev-java/ant-junit4:0
|
||
|
dev-java/junit:4
|
||
|
)
|
||
3 years ago
|
>=virtual/jdk-1.8:*"
|
||
11 years ago
|
|
||
|
RDEPEND="${CDEPEND}
|
||
3 years ago
|
>=virtual/jre-1.8:*"
|
||
11 years ago
|
|
||
|
S="${WORKDIR}/${P}/jansi"
|
||
|
|
||
|
EANT_GENTOO_CLASSPATH="jansi-native"
|
||
|
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||
|
JAVA_SRC_DIR="src/main/java"
|
||
|
|
||
3 years ago
|
src_prepare() {
|
||
|
default
|
||
11 years ago
|
cp "${FILESDIR}"/${P}-build.xml build.xml || die
|
||
|
}
|
||
|
|
||
11 years ago
|
EANT_TEST_GENTOO_CLASSPATH="ant-junit4,junit-4"
|
||
11 years ago
|
|
||
|
src_test() {
|
||
11 years ago
|
EANT_EXTRA_ARGS="-Djunit.present=true"
|
||
|
|
||
11 years ago
|
java-pkg-2_src_test
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
java-pkg_newjar target/${P}.jar ${PN}.jar
|
||
|
|
||
|
use source && java-pkg_dosrc src/main/java/org
|
||
|
}
|