blob: c44f7f38a4987d9a227748019839086dc1e7f2b9 (
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
44
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-owanttask/ant-owanttask-1.1-r12.ebuild,v 1.12 2010/04/24 17:59:05 grobian Exp $
inherit eutils java-pkg-2 java-ant-2
DESCRIPTION="ObjectWeb's Ant tasks"
HOMEPAGE="http://monolog.objectweb.org"
MY_P="owanttask-${PV}"
SRC_URI="http://www.gentoo.org/~karltk/java/distfiles/${MY_P}-gentoo.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 ~ia64 ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE=""
COMMON_DEP="dev-java/xalan"
DEPEND=">=virtual/jdk-1.4
${COMMON_DEP}"
RDEPEND=">=virtual/jre-1.4
>=dev-java/ant-core-1.7.0
${COMMON_DEP}"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-classpath.patch"
cp -f "${FILESDIR}/MultipleCopy.java" src/org/objectweb/util/ant
mkdir lib
cd lib
java-pkg_jar-from ant-core ant.jar
java-pkg_jar-from xalan
}
src_install() {
java-pkg_dojar output/lib/ow_util_ant_tasks.jar
}
pkg_postinst() {
ewarn "The MultipleCopy task is not compatible with ant-1.7.0 and newer"
ewarn "Attempt to use it will break building."
}
|