summaryrefslogtreecommitdiff
blob: 172f67de0259fe986f734694b667c5e5c651a49e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jboss-logging/jboss-logging-3.1.3-r1.ebuild,v 1.2 2014/05/10 08:49:16 tomwij Exp $

EAPI="5"

JAVA_PKG_IUSE="doc source"

inherit java-pkg-2 java-ant-2

DESCRIPTION="JBoss logging framework"
HOMEPAGE="http://www.jboss.org/"
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.GA.tar.gz -> ${P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"

COMMON_DEPEND="dev-java/jboss-logmanager:0
	<dev-java/slf4j-api-1.7.7:0
	dev-java/log4j:0"

RDEPEND=">=virtual/jre-1.5
		${COMMON_DEPEND}"

DEPEND=">=virtual/jdk-1.5
		${COMMON_DEPEND}"

S="${WORKDIR}/${P}.GA/"

EANT_GENTOO_CLASSPATH="jboss-logmanager,slf4j-api,log4j"
JAVA_ANT_REWRITE_CLASSPATH="true"

java_prepare() {
	cp "${FILESDIR}"/${PF}-build.xml build.xml || die
}

src_install() {
	java-pkg_newjar target/${P}.GA.jar

	use doc && java-pkg_dojavadoc target/site/apidocs
	use source && java-pkg_dosrc src/main/java/org
}