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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Thu Jul 2 08:51:16 2015 UTC (4 years, 11 months ago) by monsieurp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Remove old.

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 93491BB8)

1 ali_bush 1.4 # Copyright 1999-2009 Gentoo Foundation
2 wltjr 1.1 # Distributed under the terms of the GNU General Public License v2
3 monsieurp 1.5 # $Header: /var/cvsroot/gentoo-x86/dev-java/mx4j/mx4j-3.0.1-r4.ebuild,v 1.4 2009/07/23 13:20:03 ali_bush Exp $
4 wltjr 1.1
5     EAPI=1
6     JAVA_PKG_IUSE="examples source doc"
7    
8     inherit java-pkg-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 ken69267 1.3 KEYWORDS="amd64 x86"
20 wltjr 1.1
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     java-virtuals/servlet-api:2.3
30     dev-java/burlap:3.0
31     dev-java/hessian:3.0.8
32 ali_bush 1.4 =dev-java/jython-2.2*
33 wltjr 1.1 dev-java/gnu-jaf:1
34     java-virtuals/javamail
35     )
36     dev-java/mx4j-core:3.0
37     dev-java/mx4j-tools:3.0
38     !<dev-java/mx4j-tools-3.0.1-r1
39     "
40    
41     RDEPEND="
42     ${COMMON_DEP}
43     examples? ( >=virtual/jre-1.4 )"
44    
45     # We always depend on a jdk to get the package.env created
46     DEPEND=">=virtual/jdk-1.4
47     ${COMMON_DEP}"
48    
49     src_unpack() {
50     unpack "${P}-src.tar.gz"
51    
52     if use doc; then
53     mkdir binary && cd binary
54     unpack "${P}.tar.gz"
55     fi
56    
57     if use examples; then
58     cd "${S}/lib"
59     java-pkg_jar-from bcel bcel.jar
60     java-pkg_jar-from log4j
61     java-pkg_jar-from commons-logging commons-logging.jar
62     java-pkg_jar-from axis-1
63     java-pkg_jar-from --virtual servlet-api-2.3 servlet.jar
64     java-pkg_jar-from burlap-3.0
65     java-pkg_jar-from hessian-3.0.8
66     java-pkg_jar-from jython jython.jar
67     java-pkg_jar-from gnu-jaf-1 activation.jar
68     java-pkg_jar-from --virtual javamail mail.jar
69     fi
70     }
71    
72     src_compile() {
73     cd build
74     use examples && eant compile.examples
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}/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