Gentoo Archives: gentoo-commits

From: "Miroslav Sulc (fordfrog)" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/netbeans-harness: netbeans-harness-7.1.ebuild ChangeLog
Date: Fri, 06 Jan 2012 10:47:11
Message-Id: 20120106104701.800322004B@flycatcher.gentoo.org
1 fordfrog 12/01/06 10:47:01
2
3 Modified: ChangeLog
4 Added: netbeans-harness-7.1.ebuild
5 Log:
6 dev-java/netbeans-harness: version bump
7
8 (Portage version: 2.1.10.44/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.8 dev-java/netbeans-harness/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-harness/ChangeLog?rev=1.8&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-harness/ChangeLog?rev=1.8&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-harness/ChangeLog?r1=1.7&r2=1.8
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-java/netbeans-harness/ChangeLog,v
20 retrieving revision 1.7
21 retrieving revision 1.8
22 diff -u -r1.7 -r1.8
23 --- ChangeLog 24 Oct 2011 23:59:49 -0000 1.7
24 +++ ChangeLog 6 Jan 2012 10:47:01 -0000 1.8
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-java/netbeans-harness
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-harness/ChangeLog,v 1.7 2011/10/24 23:59:49 fordfrog Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-harness/ChangeLog,v 1.8 2012/01/06 10:47:01 fordfrog Exp $
31 +
32 +*netbeans-harness-7.1 (06 Jan 2012)
33 +
34 + 06 Jan 2012; Miroslav Šulc <fordfrog@g.o>
35 + +netbeans-harness-7.1.ebuild:
36 + Version bump
37
38 24 Oct 2011; Miroslav Šulc <fordfrog@g.o>
39 netbeans-harness-7.0.1.ebuild:
40
41
42
43 1.1 dev-java/netbeans-harness/netbeans-harness-7.1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-harness/netbeans-harness-7.1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-harness/netbeans-harness-7.1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: netbeans-harness-7.1.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-harness/netbeans-harness-7.1.ebuild,v 1.1 2012/01/06 10:47:01 fordfrog Exp $
53
54 EAPI="4"
55 WANT_ANT_TASKS="ant-nodeps"
56 inherit eutils java-pkg-2 java-ant-2
57
58 DESCRIPTION="Netbeans Harness"
59 HOMEPAGE="http://netbeans.org/features/platform/"
60 SLOT="7.1"
61 SOURCE_URL="http://dlc.sun.com.edgesuite.net/netbeans/7.1/final/zip/netbeans-7.1-201112071828-src.zip"
62 SRC_URI="${SOURCE_URL}
63 http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r1-build.xml.patch.bz2
64 http://hg.netbeans.org/binaries/A806D99716C5E9441BFD8B401176FDDEFC673022-bindex-2.2.jar
65 http://hg.netbeans.org/binaries/418FC62C8A6EF5311987B01FE389B1F88EFDDCA2-jemmy-2.3.0.0.jar"
66 LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
67 KEYWORDS="~amd64 ~x86"
68 IUSE=""
69 S="${WORKDIR}"
70
71 CDEPEND="~dev-java/netbeans-platform-${PV}
72 dev-java/javahelp:0"
73 DEPEND="virtual/jdk:1.6
74 app-arch/unzip
75 ${CDEPEND}
76 >=dev-java/junit-4.4:4"
77 RDEPEND=">=virtual/jdk-1.6
78 ${CDEPEND}"
79
80 INSTALL_DIR="/usr/share/${PN}-${SLOT}"
81
82 EANT_BUILD_XML="nbbuild/build.xml"
83 EANT_BUILD_TARGET="rebuild-cluster"
84 EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.harness -Dext.binaries.downloaded=true"
85 EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
86 JAVA_PKG_BSFIX="off"
87
88 src_unpack() {
89 unpack $(basename ${SOURCE_URL})
90
91 einfo "Deleting bundled jars..."
92 find -name "*.jar" -type f -delete
93
94 unpack netbeans-9999-r1-build.xml.patch.bz2
95
96 pushd "${S}" >/dev/null || die
97 ln -s "${DISTDIR}"/A806D99716C5E9441BFD8B401176FDDEFC673022-bindex-2.2.jar apisupport.harness/external/bindex-2.2.jar || die
98 ln -s "${DISTDIR}"/418FC62C8A6EF5311987B01FE389B1F88EFDDCA2-jemmy-2.3.0.0.jar jemmy/external/jemmy-2.3.0.0.jar || die
99 popd >/dev/null || die
100 }
101
102 src_prepare() {
103 einfo "Deleting bundled class files..."
104 find -name "*.class" -type f | xargs rm -vf
105
106 epatch netbeans-9999-r1-build.xml.patch
107
108 # Support for custom patches
109 if [ -n "${NETBEANS9999_PATCHES_DIR}" -a -d "${NETBEANS9999_PATCHES_DIR}" ] ; then
110 local files=`find "${NETBEANS9999_PATCHES_DIR}" -type f`
111
112 if [ -n "${files}" ] ; then
113 einfo "Applying custom patches:"
114
115 for file in ${files} ; do
116 epatch "${file}"
117 done
118 fi
119 fi
120
121 einfo "Symlinking external libraries..."
122 java-pkg_jar-from --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
123 java-pkg_jar-from --into apisupport.harness/external javahelp jsearch.jar jsearch-2.0_05.jar
124 java-pkg_jar-from --build-only --into libs.junit4/external junit-4 junit.jar junit-4.10.jar
125
126 einfo "Linking in other clusters..."
127 mkdir "${S}"/nbbuild/netbeans || die
128 pushd "${S}"/nbbuild/netbeans >/dev/null || die
129
130 ln -s /usr/share/netbeans-platform-${SLOT} platform || die
131 cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
132 touch nb.cluster.platform.built
133
134 popd >/dev/null || die
135
136 java-pkg-2_src_prepare
137 }
138
139 src_install() {
140 pushd nbbuild/netbeans/harness >/dev/null || die
141
142 insinto ${INSTALL_DIR}
143
144 grep -E "/harness$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
145
146 doins -r *
147 fperms 755 launchers/app.sh
148 find "${D}" -name "*.exe" -type f -delete
149
150 popd >/dev/null || die
151
152 local instdir=${INSTALL_DIR}/antlib
153 pushd "${D}"/${instdir} >/dev/null || die
154 # bindex-2.2.jar
155 rm jsearch-2.0_05.jar && dosym /usr/share/javahelp/lib/jsearch.jar ${instdir}/jsearch-2.0_05.jar || die
156 popd >/dev/null || die
157
158 local instdir=${INSTALL_DIR}/modules/ext
159 pushd "${D}"/${instdir} >/dev/null || die
160 # jemmy-2.3.0.0.jar
161 popd >/dev/null || die
162
163 dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/harness
164 }