/[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.5 - (hide annotations) (download)
Sat Feb 3 22:49:14 2007 UTC (13 years, 3 months ago) by beandog
Branch: MAIN
Changes since 1.4: +2 -2 lines
amd64 stable, bug 160985
(Portage version: 2.1.1-r2)

1 opfer 1.4 # Copyright 1999-2007 Gentoo Foundation
2 betelgeuse 1.1 # Distributed under the terms of the GNU General Public License v2
3 beandog 1.5 # $Header: /var/cvsroot/gentoo-x86/dev-java/mx4j/mx4j-3.0.1-r2.ebuild,v 1.4 2007/01/11 22:48:38 opfer Exp $
4 betelgeuse 1.1
5     JAVA_PKG_OPT_USE="examples"
6    
7     inherit java-pkg-opt-2 java-ant-2
8    
9     DESCRIPTION="Metapackage for mx4j"
10     HOMEPAGE="http://mx4j.sourceforge.net/"
11    
12     SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz
13     doc? ( mirror://sourceforge/${PN}/${P}.tar.gz )"
14    
15     LICENSE="GPL-2"
16     SLOT="3.0"
17    
18 beandog 1.5 KEYWORDS="amd64 x86"
19 betelgeuse 1.1
20     IUSE="doc examples source"
21    
22     COMMON_DEP="
23     examples? (
24     dev-java/bcel
25     dev-java/log4j
26     dev-java/commons-logging
27     =www-servers/axis-1*
28     ~dev-java/servletapi-2.3
29     =dev-java/burlap-3.0*
30     =dev-java/hessian-3.0.8*
31     dev-java/jython
32     =dev-java/gnu-jaf-1*
33     =dev-java/gnu-javamail-1*
34     )"
35    
36    
37     RDEPEND="
38     =dev-java/mx4j-core-3.0*
39     =dev-java/mx4j-tools-3.0*
40     ${COMMON_DEP}
41     examples? ( >=virtual/jre-1.4 )"
42    
43     # We always depend on a jdk to get the package.env created
44     DEPEND=">=virtual/jdk-1.4
45     ${COMMON_DEP}"
46    
47     src_unpack() {
48     unpack "${P}-src.tar.gz"
49    
50     if use doc; then
51     mkdir binary && cd binary
52     unpack "${P}.tar.gz"
53     fi
54    
55     if use examples; then
56     cd "${S}/lib"
57     java-pkg_jar-from bcel bcel.jar
58     java-pkg_jar-from log4j
59     java-pkg_jar-from commons-logging commons-logging.jar
60     java-pkg_jar-from axis-1
61     java-pkg_jar-from servletapi-2.3 servlet.jar
62     java-pkg_jar-from burlap-3.0
63     java-pkg_jar-from hessian-3.0.8
64     java-pkg_jar-from jython jython.jar
65     java-pkg_jar-from gnu-jaf-1 activation.jar
66     java-pkg_jar-from gnu-javamail-1 gnumail.jar mail.jar
67     fi
68     }
69    
70     src_compile() {
71     cd build
72     use examples && eant compile.examples
73     }
74    
75     src_install() {
76     dodoc README.txt RELEASE-NOTES-* || die
77    
78     if use examples ; then
79     java-pkg_dojar dist/examples/mx4j-examples.jar
80     dodir /usr/share/doc/${PF}/examples
81     cp -r src/examples/mx4j/examples/* "${D}usr/share/doc/${PF}/examples"
82     fi
83    
84 betelgeuse 1.2 use source && java-pkg_dosrc src/examples/mx4j
85 betelgeuse 1.1
86     if use doc; then
87     local docdir="${WORKDIR}/binary/${P}/docs/"
88     java-pkg_dojavadoc "${docdir}/api"
89     java-pkg_dohtml -r "${docdir}/images"
90     java-pkg_dohtml "${docdir}"/{*.html,*.css}
91     fi
92    
93     # Recording jars to get the same behaviour as before
94     oldifs="${IFS}"
95     IFS=":"
96     for jar in $(java-pkg_getjars mx4j-core-3.0,mx4j-tools-3.0); do
97     java-pkg_regjar "${jar}"
98     done
99     IFS="${oldifs}"
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