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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.5
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/dev-java/mx4j/Attic/mx4j-3.0.1-r2.ebuild,v 1.1 2006/12/07 14:50:27 betelgeuse Exp $ 3# $Header: /var/cvsroot/gentoo-x86/dev-java/mx4j/Attic/mx4j-3.0.1-r2.ebuild,v 1.5 2007/02/03 22:49:14 beandog Exp $
4 4
5JAVA_PKG_OPT_USE="examples" 5JAVA_PKG_OPT_USE="examples"
6 6
7inherit java-pkg-opt-2 java-ant-2 7inherit java-pkg-opt-2 java-ant-2
8 8
13 doc? ( mirror://sourceforge/${PN}/${P}.tar.gz )" 13 doc? ( mirror://sourceforge/${PN}/${P}.tar.gz )"
14 14
15LICENSE="GPL-2" 15LICENSE="GPL-2"
16SLOT="3.0" 16SLOT="3.0"
17 17
18KEYWORDS="~x86" 18KEYWORDS="amd64 x86"
19 19
20IUSE="doc examples source" 20IUSE="doc examples source"
21 21
22COMMON_DEP=" 22COMMON_DEP="
23 examples? ( 23 examples? (
79 java-pkg_dojar dist/examples/mx4j-examples.jar 79 java-pkg_dojar dist/examples/mx4j-examples.jar
80 dodir /usr/share/doc/${PF}/examples 80 dodir /usr/share/doc/${PF}/examples
81 cp -r src/examples/mx4j/examples/* "${D}usr/share/doc/${PF}/examples" 81 cp -r src/examples/mx4j/examples/* "${D}usr/share/doc/${PF}/examples"
82 fi 82 fi
83 83
84 use source && java-pkg_dosrc examples/mx4j 84 use source && java-pkg_dosrc src/examples/mx4j
85 85
86 if use doc; then 86 if use doc; then
87 local docdir="${WORKDIR}/binary/${P}/docs/" 87 local docdir="${WORKDIR}/binary/${P}/docs/"
88 java-pkg_dojavadoc "${docdir}/api" 88 java-pkg_dojavadoc "${docdir}/api"
89 java-pkg_dohtml -r "${docdir}/images" 89 java-pkg_dohtml -r "${docdir}/images"
91 fi 91 fi
92 92
93 # Recording jars to get the same behaviour as before 93 # Recording jars to get the same behaviour as before
94 oldifs="${IFS}" 94 oldifs="${IFS}"
95 IFS=":" 95 IFS=":"
96 java-pkg_getjars mx4j-core-3.0,mx4j-tools-3.0
97 for jar in $(java-pkg_getjars mx4j-core-3.0,mx4j-tools-3.0); do 96 for jar in $(java-pkg_getjars mx4j-core-3.0,mx4j-tools-3.0); do
98 java-pkg_regjar "${jar}" 97 java-pkg_regjar "${jar}"
99 done 98 done
100 IFS="${oldifs}" 99 IFS="${oldifs}"
101} 100}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20