/[gentoo-x86]/dev-java/jmi-interface/jmi-interface-1.0-r3.ebuild
Gentoo

Contents of /dev-java/jmi-interface/jmi-interface-1.0-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Aug 19 19:47:37 2007 UTC (6 years, 11 months ago) by wltjr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
amd64 stable, bug #187681.
(Portage version: 2.1.3.5)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/jmi-interface/jmi-interface-1.0-r3.ebuild,v 1.2 2007/08/15 09:54:04 opfer Exp $
4
5 inherit java-pkg-2 java-ant-2
6
7 DESCRIPTION="Java Metadata Interface Sample Class Interface"
8 HOMEPAGE="http://java.sun.com/products/jmi/"
9 JMI_ZIP="jmi-${PV/./_}-fr-interfaces.zip"
10 MOF_XML="mof-${PV}.xml.bz2"
11 SRC_URI="mirror://gentoo/${JMI_ZIP}
12 mirror://gentoo/${MOF_XML}"
13
14 LICENSE="sun-bcla-jmi"
15 SLOT="0"
16 KEYWORDS="amd64 ~ppc x86 ~x86-fbsd"
17 IUSE="doc source"
18
19 DEPEND=">=virtual/jdk-1.4
20 app-arch/unzip
21 dev-java/ant-core
22 source? ( app-arch/zip )"
23 RDEPEND=">=virtual/jre-1.4"
24
25 S="${WORKDIR}"
26
27 src_unpack() {
28 mkdir "${S}/src" && cd "${S}/src"
29 unpack ${JMI_ZIP}
30
31 cd "${S}"
32 # rename enum keywords because javadoc hates them
33 # even with -source 1.4, bummer
34 epatch "${FILESDIR}/${P}-enum.patch"
35 cp "${FILESDIR}/${P}-build.xml" build.xml
36
37 #adding mof.xml required by Netbeans #98603
38 mkdir -p "${S}/build/javax/jmi/model/resources"
39 cd "${S}/build/javax/jmi/model/resources"
40 unpack ${MOF_XML}
41 # bug #162328
42 cp mof-1.0.xml mof.xml
43 }
44
45 src_compile() {
46 eant jar $(use_doc)
47 }
48
49 src_install() {
50 java-pkg_dojar dist/*.jar
51
52 use doc && java-pkg_dojavadoc doc
53 use source && java-pkg_dosrc src/javax
54 }

  ViewVC Help
Powered by ViewVC 1.1.20