/[gentoo-x86]/dev-java/slf4j-nop/slf4j-nop-1.7.5.ebuild
Gentoo

Contents of /dev-java/slf4j-nop/slf4j-nop-1.7.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Nov 30 09:45:51 2013 UTC (6 years, 2 months ago) by ercpe
Branch: MAIN
CVS Tags: HEAD
Version bump of slf4j-nop to 1.7.5

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 77C501ED)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
6
7 JAVA_PKG_IUSE="doc source test"
8
9 inherit java-pkg-2 java-ant-2
10
11 DESCRIPTION="Simple Logging Facade for Java"
12 HOMEPAGE="http://www.slf4j.org/"
13 SRC_URI="http://www.slf4j.org/dist/${P/-nop/}.tar.gz"
14
15 LICENSE="MIT"
16 SLOT="0"
17 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
18 IUSE=""
19
20 COMMON_DEP="dev-java/slf4j-api:0"
21 RDEPEND=">=virtual/jre-1.5
22 ${COMMON_DEP}"
23 DEPEND=">=virtual/jdk-1.5
24 app-arch/unzip
25 ${COMMON_DEP}
26 test? ( dev-java/junit:4 )"
27
28 S="${WORKDIR}/${P/-nop/}/${PN}"
29
30 JAVA_ANT_REWRITE_CLASSPATH="yes"
31 EANT_GENTOO_CLASSPATH="slf4j-api"
32 EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4"
33 EANT_TEST_ANT_TASKS="ant-junit"
34
35 java_prepare() {
36 cp -v "${FILESDIR}"/${PV}-build.xml "${S}"/build.xml || die
37 find "${S}" -name "*.jar" -delete || die
38 }
39
40 src_install() {
41 java-pkg_dojar "${S}"/target/${PN}.jar
42
43 use doc && java-pkg_dojavadoc "${S}"/target/site/apidocs
44 use source && java-pkg_dosrc "${S}"/src/main/java/org
45 }
46
47 src_test() {
48 java-pkg-2_src_test
49 }

  ViewVC Help
Powered by ViewVC 1.1.20