/[gentoo-x86]/dev-java/commons-vfs/commons-vfs-2.0-r1.ebuild
Gentoo

Contents of /dev-java/commons-vfs/commons-vfs-2.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jun 20 22:58:23 2015 UTC (4 years, 8 months ago) by monsieurp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +8 -8 lines
Fix a bad dependency.

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 93491BB8)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/commons-vfs/commons-vfs-2.0-r1.ebuild,v 1.1 2013/07/10 11:43:12 tomwij Exp $
4
5 EAPI="5"
6
7 JAVA_PKG_IUSE="doc source"
8
9 inherit java-pkg-2 java-ant-2
10
11 DESCRIPTION="A single API for accessing various different file systems"
12 HOMEPAGE="http://commons.apache.org/vfs/"
13 SRC_URI="mirror://apache/commons/vfs/source/${P}-src.tar.gz"
14
15 LICENSE="Apache-2.0"
16 SLOT="2"
17 KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
18
19 CDEPEND="
20 dev-java/ant-core:0
21 dev-java/commons-collections:0
22 dev-java/commons-logging:0
23 dev-java/commons-net:0
24 dev-java/commons-httpclient:3
25 dev-java/jackrabbit-webdav:0
26 dev-java/jsch:0
27 "
28
29 RDEPEND=">=virtual/jre-1.6
30 ${CDEPEND}"
31
32 DEPEND=">=virtual/jdk-1.6
33 ${CDEPEND}"
34
35 S="${WORKDIR}/${P}/core"
36
37 java_prepare() {
38 epatch "${FILESDIR}"/${P}-incompatibility.patch
39
40 cp "${FILESDIR}"/${P}-build.xml build.xml || die
41
42 java-ant_rewrite-classpath
43 java-ant_ignore-system-classes
44 }
45
46 EANT_GENTOO_CLASSPATH="
47 ant-core
48 commons-collections
49 commons-logging
50 commons-net
51 commons-httpclient-3
52 jackrabbit-webdav
53 jsch
54 "
55 EANT_EXTRA_ARGS="-Dlibdir=${T}"
56
57 # The build.xml is generated from maven and can't run the tests properly
58 # Use maven test to execute these manually but that means downloading deps from
59 # the internet. Also the tests need to login to some ftp servers and samba
60 # shares so I doubt they work for everyone.
61 #src_test() {
62 # ANT_TASKS="ant-junit" eant test
63 #}
64
65 src_install() {
66 java-pkg_newjar target/*.jar
67
68 use doc && java-pkg_dojavadoc target/site/apidocs
69 use source && java-pkg_dosrc src/main/java
70 }

  ViewVC Help
Powered by ViewVC 1.1.20