/[gentoo-x86]/dev-java/netbeans-harness/netbeans-harness-7.2.ebuild
Gentoo

Contents of /dev-java/netbeans-harness/netbeans-harness-7.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Dec 9 19:33:01 2012 UTC (2 years ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #441170

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-harness/netbeans-harness-7.2.ebuild,v 1.2 2012/12/09 19:25:13 ago Exp $
4
5 EAPI="4"
6 WANT_ANT_TASKS="ant-nodeps"
7 inherit eutils java-pkg-2 java-ant-2
8
9 DESCRIPTION="Netbeans Harness"
10 HOMEPAGE="http://netbeans.org/features/platform/"
11 SLOT="7.2"
12 SOURCE_URL="http://download.netbeans.org/netbeans/7.2/final/zip/netbeans-7.2-201207171143-src.zip"
13 SRC_URI="${SOURCE_URL}
14 http://dev.gentoo.org/~fordfrog/distfiles/netbeans-7.2-r1-build.xml.patch.bz2
15 http://hg.netbeans.org/binaries/A806D99716C5E9441BFD8B401176FDDEFC673022-bindex-2.2.jar
16 http://hg.netbeans.org/binaries/418FC62C8A6EF5311987B01FE389B1F88EFDDCA2-jemmy-2.3.0.0.jar"
17 LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
18 KEYWORDS="amd64 x86"
19 IUSE=""
20 S="${WORKDIR}"
21
22 CDEPEND="~dev-java/netbeans-platform-${PV}
23 dev-java/javahelp:0"
24 DEPEND="virtual/jdk:1.6
25 app-arch/unzip
26 ${CDEPEND}
27 >=dev-java/junit-4.4:4"
28 RDEPEND=">=virtual/jdk-1.6
29 ${CDEPEND}"
30
31 INSTALL_DIR="/usr/share/${PN}-${SLOT}"
32
33 EANT_BUILD_XML="nbbuild/build.xml"
34 EANT_BUILD_TARGET="rebuild-cluster"
35 EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.harness -Dext.binaries.downloaded=true"
36 EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
37 JAVA_PKG_BSFIX="off"
38
39 src_unpack() {
40 unpack $(basename ${SOURCE_URL})
41
42 einfo "Deleting bundled jars..."
43 find -name "*.jar" -type f -delete
44
45 unpack netbeans-7.2-r1-build.xml.patch.bz2
46
47 pushd "${S}" >/dev/null || die
48 ln -s "${DISTDIR}"/A806D99716C5E9441BFD8B401176FDDEFC673022-bindex-2.2.jar apisupport.harness/external/bindex-2.2.jar || die
49 ln -s "${DISTDIR}"/418FC62C8A6EF5311987B01FE389B1F88EFDDCA2-jemmy-2.3.0.0.jar jemmy/external/jemmy-2.3.0.0.jar || die
50 popd >/dev/null || die
51 }
52
53 src_prepare() {
54 einfo "Deleting bundled class files..."
55 find -name "*.class" -type f | xargs rm -vf
56
57 epatch netbeans-7.2-r1-build.xml.patch
58
59 # Support for custom patches
60 if [ -n "${NETBEANS72_PATCHES_DIR}" -a -d "${NETBEANS72_PATCHES_DIR}" ] ; then
61 local files=`find "${NETBEANS72_PATCHES_DIR}" -type f`
62
63 if [ -n "${files}" ] ; then
64 einfo "Applying custom patches:"
65
66 for file in ${files} ; do
67 epatch "${file}"
68 done
69 fi
70 fi
71
72 einfo "Symlinking external libraries..."
73 java-pkg_jar-from --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
74 java-pkg_jar-from --into apisupport.harness/external javahelp jsearch.jar jsearch-2.0_05.jar
75 java-pkg_jar-from --build-only --into libs.junit4/external junit-4 junit.jar junit-4.10.jar
76
77 einfo "Linking in other clusters..."
78 mkdir "${S}"/nbbuild/netbeans || die
79 pushd "${S}"/nbbuild/netbeans >/dev/null || die
80
81 ln -s /usr/share/netbeans-platform-${SLOT} platform || die
82 cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
83 touch nb.cluster.platform.built
84
85 popd >/dev/null || die
86
87 java-pkg-2_src_prepare
88 }
89
90 src_install() {
91 pushd nbbuild/netbeans/harness >/dev/null || die
92
93 insinto ${INSTALL_DIR}
94
95 grep -E "/harness$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
96
97 doins -r *
98 fperms 755 launchers/app.sh
99 find "${D}" -name "*.exe" -type f -delete
100
101 popd >/dev/null || die
102
103 local instdir=${INSTALL_DIR}/antlib
104 pushd "${D}"/${instdir} >/dev/null || die
105 rm jsearch-2.0_05.jar && dosym /usr/share/javahelp/lib/jsearch.jar ${instdir}/jsearch-2.0_05.jar || die
106 popd >/dev/null || die
107
108 dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/harness
109 }

  ViewVC Help
Powered by ViewVC 1.1.20