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-javadoc: netbeans-javadoc-8.0.ebuild ChangeLog
Date: Sun, 23 Mar 2014 18:56:58
Message-Id: 20140323185655.002F82004F@flycatcher.gentoo.org
1 fordfrog 14/03/23 18:56:54
2
3 Modified: ChangeLog
4 Added: netbeans-javadoc-8.0.ebuild
5 Log:
6 netbeans-javadoc: new ebuild for version 8.0
7
8 (Portage version: 2.2.9-r1/cvs/Linux x86_64, signed Manifest commit with key CFE47E2F)
9
10 Revision Changes Path
11 1.21 dev-java/netbeans-javadoc/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-javadoc/ChangeLog?rev=1.21&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-javadoc/ChangeLog?rev=1.21&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-javadoc/ChangeLog?r1=1.20&r2=1.21
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-java/netbeans-javadoc/ChangeLog,v
20 retrieving revision 1.20
21 retrieving revision 1.21
22 diff -u -r1.20 -r1.21
23 --- ChangeLog 16 Oct 2013 09:48:28 -0000 1.20
24 +++ ChangeLog 23 Mar 2014 18:56:54 -0000 1.21
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-java/netbeans-javadoc
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-javadoc/ChangeLog,v 1.20 2013/10/16 09:48:28 fordfrog Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-javadoc/ChangeLog,v 1.21 2014/03/23 18:56:54 fordfrog Exp $
31 +
32 +*netbeans-javadoc-8.0 (23 Mar 2014)
33 +
34 + 23 Mar 2014; Miroslav Ć ulc <fordfrog@g.o>
35 + +netbeans-javadoc-8.0.ebuild:
36 + new ebuild for version 8.0
37
38 *netbeans-javadoc-7.4 (16 Oct 2013)
39
40
41
42
43 1.1 dev-java/netbeans-javadoc/netbeans-javadoc-8.0.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-javadoc/netbeans-javadoc-8.0.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-javadoc/netbeans-javadoc-8.0.ebuild?rev=1.1&content-type=text/plain
47
48 Index: netbeans-javadoc-8.0.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-javadoc/netbeans-javadoc-8.0.ebuild,v 1.1 2014/03/23 18:56:54 fordfrog Exp $
53
54 EAPI="4"
55 inherit eutils java-pkg-2 java-ant-2
56
57 DESCRIPTION="Netbeans JavaDocs"
58 HOMEPAGE="http://netbeans.org/"
59 SLOT="8.0"
60 SOURCE_URL="http://download.netbeans.org/netbeans/8.0/final/zip/netbeans-8.0-201403101706-src.zip"
61 SRC_URI="${SOURCE_URL}
62 http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0-build.xml.patch.bz2
63 http://hg.netbeans.org/binaries/51449E030F3A5F80327536CC51D75EE9D7E59BDA-ant-libs-1.9.2.zip"
64 LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
65 KEYWORDS="~amd64 ~x86"
66 IUSE=""
67 S="${WORKDIR}"
68
69 DEPEND=">=virtual/jdk-1.7
70 app-arch/unzip
71 dev-java/javahelp:0
72 dev-java/junit:4
73 ~dev-java/netbeans-apisupport-${PV}
74 ~dev-java/netbeans-cnd-${PV}
75 ~dev-java/netbeans-dlight-${PV}
76 ~dev-java/netbeans-enterprise-${PV}
77 ~dev-java/netbeans-ergonomics-${PV}
78 ~dev-java/netbeans-extide-${PV}
79 ~dev-java/netbeans-groovy-${PV}
80 ~dev-java/netbeans-harness-${PV}
81 ~dev-java/netbeans-ide-${PV}
82 ~dev-java/netbeans-java-${PV}
83 ~dev-java/netbeans-javacard-${PV}
84 ~dev-java/netbeans-mobility-${PV}
85 ~dev-java/netbeans-nb-${PV}
86 ~dev-java/netbeans-php-${PV}
87 ~dev-java/netbeans-platform-${PV}
88 ~dev-java/netbeans-profiler-${PV}
89 ~dev-java/netbeans-websvccommon-${PV}"
90 RDEPEND=""
91
92 JAVA_PKG_BSFIX="off"
93
94 src_unpack() {
95 unpack $(basename ${SOURCE_URL})
96
97 einfo "Deleting bundled jars..."
98 find -name "*.jar" -type f -delete
99
100 unpack netbeans-8.0-build.xml.patch.bz2
101
102 pushd "${S}" >/dev/null || die
103 ln -s "${DISTDIR}"/51449E030F3A5F80327536CC51D75EE9D7E59BDA-ant-libs-1.9.2.zip o.apache.tools.ant.module/external/ant-libs-1.9.2.zip || die
104 popd >/dev/null || die
105 }
106
107 src_prepare() {
108 einfo "Deleting bundled class files..."
109 find -name "*.class" -type f | xargs rm -vf
110
111 epatch netbeans-8.0-build.xml.patch
112
113 # Support for custom patches
114 if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
115 local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
116
117 if [ -n "${files}" ] ; then
118 einfo "Applying custom patches:"
119
120 for file in ${files} ; do
121 epatch "${file}"
122 done
123 fi
124 fi
125
126 einfo "Symlinking external libraries..."
127 java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
128 java-pkg_jar-from --build-only --into libs.junit4/external junit-4 junit.jar junit-4.10.jar
129
130 einfo "Linking in other clusters..."
131 mkdir "${S}"/nbbuild/netbeans || die
132 pushd "${S}"/nbbuild/netbeans >/dev/null || die
133
134 ln -s /usr/share/netbeans-apisupport-${SLOT} apisupport || die
135 cat /usr/share/netbeans-apisupport-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
136 touch nb.cluster.apisupport.built
137
138 ln -s /usr/share/netbeans-cnd-${SLOT} cnd || die
139 cat /usr/share/netbeans-cnd-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
140 touch nb.cluster.cnd.built
141
142 ln -s /usr/share/netbeans-dlight-${SLOT} dlight || die
143 cat /usr/share/netbeans-dlight-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
144 touch nb.cluster.dlight.built
145
146 ln -s /usr/share/netbeans-enterprise-${SLOT} enterprise || die
147 cat /usr/share/netbeans-enterprise-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
148 touch nb.cluster.enterprise.built
149
150 ln -s /usr/share/netbeans-ergonomics-${SLOT} ergonomics || die
151 cat /usr/share/netbeans-ergonomics-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
152 touch nb.cluster.ergonomics.built
153
154 ln -s /usr/share/netbeans-extide-${SLOT} extide || die
155 cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
156 touch nb.cluster.extide.built
157
158 ln -s /usr/share/netbeans-groovy-${SLOT} groovy || die
159 cat /usr/share/netbeans-groovy-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
160 touch nb.cluster.groovy.built
161
162 ln -s /usr/share/netbeans-harness-${SLOT} harness || die
163 cat /usr/share/netbeans-harness-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
164 touch nb.cluster.harness.built
165
166 ln -s /usr/share/netbeans-ide-${SLOT} ide || die
167 cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
168 touch nb.cluster.ide.built
169
170 ln -s /usr/share/netbeans-java-${SLOT} java || die
171 cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
172 touch nb.cluster.java.built
173
174 ln -s /usr/share/netbeans-javacard-${SLOT} javacard || die
175 cat /usr/share/netbeans-javacard-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
176 touch nb.cluster.javacard.built
177
178 ln -s /usr/share/netbeans-mobility-${SLOT} mobility || die
179 cat /usr/share/netbeans-mobility-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
180 touch nb.cluster.mobility.built
181
182 ln -s /usr/share/netbeans-nb-${SLOT}/nb nb || die
183 cat /usr/share/netbeans-nb-${SLOT}/nb/moduleCluster.properties >> moduleCluster.properties || die
184 touch nb.cluster.nb.built
185
186 ln -s /usr/share/netbeans-php-${SLOT} php || die
187 cat /usr/share/netbeans-php-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
188 touch nb.cluster.php.built
189
190 ln -s /usr/share/netbeans-platform-${SLOT} platform || die
191 cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
192 touch nb.cluster.platform.built
193
194 ln -s /usr/share/netbeans-profiler-${SLOT} profiler || die
195 cat /usr/share/netbeans-profiler-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
196 touch nb.cluster.profiler.built
197
198 ln -s /usr/share/netbeans-websvccommon-${SLOT} websvccommon || die
199 cat /usr/share/netbeans-websvccommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
200 touch nb.cluster.websvccommon.built
201
202 java-pkg-2_src_prepare
203 }
204
205 src_compile() {
206 eant -f nbbuild/build.xml bootstrap || die
207 ANT_OPTS="-Xmx1536m" eant -f nbbuild/javadoctools/build.xml build-javadoc
208 }
209
210 src_install() {
211 rm nbbuild/build/javadoc/*.zip
212 java-pkg_dojavadoc nbbuild/build/javadoc
213 }