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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jul 10 11:43:12 2013 UTC (6 years, 8 months ago) by tomwij
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Revision bump, changed version 2.0 to SLOT 2.

(Portage version: 2.1.12.12/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)

1 # Copyright 1999-2013 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.ebuild,v 1.1 2013/07/05 13:51:35 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="0"
17 KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
18
19 COMMON_DEP="
20 dev-java/ant-core:0
21 dev-java/commons-collections:0
22 dev-java/commons-logging:0
23 >=dev-java/commons-net-3.2: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.5
30 ${COMMON_DEP}"
31
32 DEPEND=">=virtual/jdk-1.5
33 ${COMMON_DEP}"
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