/[gentoo-x86]/dev-java/mx4j/mx4j-3.0.2-r1.ebuild
Gentoo

Contents of /dev-java/mx4j/mx4j-3.0.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Jul 1 15:07:57 2015 UTC (4 years, 6 months ago) by monsieurp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Stable for x86 with ALLARCHES. Fix bug 551988.

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/mx4j/mx4j-3.0.2-r1.ebuild,v 1.4 2015/07/01 15:02:58 monsieurp Exp $
4
5 EAPI=5
6
7 JAVA_PKG_IUSE="examples source doc"
8
9 inherit java-pkg-2 java-ant-2
10
11 DESCRIPTION="Metapackage for mx4j"
12 HOMEPAGE="http://mx4j.sourceforge.net/"
13
14 SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz
15 doc? ( mirror://sourceforge/${PN}/${P}.tar.gz )"
16
17 LICENSE="GPL-2"
18 SLOT="3.0"
19
20 KEYWORDS="amd64 x86"
21
22 IUSE=""
23
24 CDEPEND="examples? (
25 dev-java/bcel:0
26 dev-java/log4j:0
27 dev-java/commons-logging:0
28 www-servers/axis:1
29 java-virtuals/servlet-api:3.0
30 dev-java/hessian:4.0
31 dev-java/jython:2.7
32 dev-java/gnu-jaf:1
33 java-virtuals/javamail:0
34 )
35 dev-java/mx4j-core:3.0
36 dev-java/mx4j-tools:3.0
37 !<dev-java/mx4j-tools-3.0.1-r1
38 "
39
40 RDEPEND="
41 ${CDEPEND}
42 examples? ( >=virtual/jre-1.6 )"
43
44 # We always depend on a jdk to get the package.env created
45 DEPEND=">=virtual/jdk-1.6
46 ${CDEPEND}"
47
48 src_prepare() {
49 epatch "${FILESDIR}/${P}-new-hessian.patch"
50
51 if use doc; then
52 mkdir binary && cd binary
53 unpack "${P}.tar.gz"
54 fi
55
56 if use examples; then
57 cd "${S}/lib"
58 java-pkg_jar-from bcel bcel.jar
59 java-pkg_jar-from log4j
60 java-pkg_jar-from commons-logging commons-logging.jar
61 java-pkg_jar-from axis-1
62 java-pkg_jar-from hessian-4.0
63 java-pkg_jar-from jython-2.7 jython.jar
64 java-pkg_jar-from gnu-jaf-1 activation.jar
65 java-pkg_jar-from --virtual javamail mail.jar
66 java-pkg_jar-from --virtual servlet-api-3.0 servlet-api.jar
67 fi
68 }
69
70 src_compile() {
71 cd build
72 if use examples; then
73 eant compile.examples
74 fi
75 }
76
77 src_install() {
78 dodoc README.txt RELEASE-NOTES-* || die
79
80 if use examples; then
81 java-pkg_dojar dist/examples/mx4j-examples.jar
82 dodir /usr/share/doc/${PF}/examples
83 cp -r src/examples/mx4j/examples/* "${D}usr/share/doc/${PF}/examples"
84 fi
85
86 use source && java-pkg_dosrc src/examples/mx4j
87
88 if use doc; then
89 local docdir="${WORKDIR}/${P}/binary/${P}/docs"
90 java-pkg_dojavadoc "${docdir}/api"
91 dohtml -r "${docdir}/images"
92 dohtml "${docdir}"/{*.html,*.css}
93 fi
94
95 # Recording jars to get the same behaviour as before
96 local jars="$(java-pkg_getjars mx4j-core-3.0,mx4j-tools-3.0)"
97 for jar in ${jars//:/ }; do
98 java-pkg_regjar "${jar}"
99 done
100 }
101
102 pkg_postinst() {
103 elog "Although this package can be used directly with java-config,"
104 elog "ebuild developers should use mx4j-core and mx4j-tools directly."
105 }

  ViewVC Help
Powered by ViewVC 1.1.20