/[gentoo-x86]/dev-java/mx4j/mx4j-3.0.1-r2.ebuild
Gentoo

Contents of /dev-java/mx4j/mx4j-3.0.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sun Oct 4 15:08:07 2009 UTC (10 years, 5 months ago) by caster
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Remove old.
(Portage version: 2.2_rc42/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20