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-webcommon: ChangeLog netbeans-webcommon-8.0.ebuild
Date: Sun, 23 Mar 2014 18:59:44
Message-Id: 20140323185941.0FB362004F@flycatcher.gentoo.org
1 fordfrog 14/03/23 18:59:40
2
3 Modified: ChangeLog
4 Added: netbeans-webcommon-8.0.ebuild
5 Log:
6 netbeans-webcommon: 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.6 dev-java/netbeans-webcommon/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-webcommon/ChangeLog?rev=1.6&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-webcommon/ChangeLog?rev=1.6&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-webcommon/ChangeLog?r1=1.5&r2=1.6
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-java/netbeans-webcommon/ChangeLog,v
20 retrieving revision 1.5
21 retrieving revision 1.6
22 diff -u -r1.5 -r1.6
23 --- ChangeLog 16 Oct 2013 09:52:19 -0000 1.5
24 +++ ChangeLog 23 Mar 2014 18:59:40 -0000 1.6
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-java/netbeans-webcommon
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-webcommon/ChangeLog,v 1.5 2013/10/16 09:52:19 fordfrog Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-webcommon/ChangeLog,v 1.6 2014/03/23 18:59:40 fordfrog Exp $
31 +
32 +*netbeans-webcommon-8.0 (23 Mar 2014)
33 +
34 + 23 Mar 2014; Miroslav Ć ulc <fordfrog@g.o>
35 + +netbeans-webcommon-8.0.ebuild:
36 + new ebuild for version 8.0
37
38 *netbeans-webcommon-7.4 (16 Oct 2013)
39
40
41
42
43 1.1 dev-java/netbeans-webcommon/netbeans-webcommon-8.0.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-webcommon/netbeans-webcommon-8.0.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-webcommon/netbeans-webcommon-8.0.ebuild?rev=1.1&content-type=text/plain
47
48 Index: netbeans-webcommon-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-webcommon/netbeans-webcommon-8.0.ebuild,v 1.1 2014/03/23 18:59:40 fordfrog Exp $
53
54 EAPI="4"
55 inherit eutils java-pkg-2 java-ant-2
56
57 DESCRIPTION="Netbeans Web Services Cluster"
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/20317762D93542637CD2C6123B836C8DA267DE9D-cdnjs.zip
64 http://hg.netbeans.org/binaries/59631804B5A7FF3CEAA3F0E113584AF7E1BB6E9B-dd-plist.jar
65 http://hg.netbeans.org/binaries/E1B4ED2DCA9B1BDE7FE6D8F4B0A0CA265BCFFC16-ios-sim
66 http://hg.netbeans.org/binaries/9D29F2A9722C91A403F32971E97DD0E49E97B02E-libiDeviceNativeBinding.dylib
67 http://hg.netbeans.org/binaries/9F0D0D95F57E73C0110FA023813A4F9756D543B1-libimobiledevice.4.dylib
68 http://hg.netbeans.org/binaries/480C9E376169E21EA3BDA5D5841425BD7CC054D7-libplist.1.dylib
69 http://hg.netbeans.org/binaries/08FE518AB60FFA2E5440B75B4D9F8502E0791B3C-libs.jstestdriver-ext.jar
70 http://hg.netbeans.org/binaries/D05B7274396C8EED185207399B6D0400DE347DB7-libusbmuxd.2.dylib"
71 LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
72 KEYWORDS="~amd64 ~x86"
73 IUSE=""
74 S="${WORKDIR}"
75
76 CDEPEND="~dev-java/netbeans-platform-${PV}
77 ~dev-java/netbeans-extide-${PV}
78 ~dev-java/netbeans-ide-${PV}"
79 DEPEND=">=virtual/jdk-1.7
80 app-arch/unzip
81 ${CDEPEND}
82 dev-java/javahelp:0"
83 RDEPEND=">=virtual/jdk-1.7
84 ${CDEPEND}"
85
86 INSTALL_DIR="/usr/share/${PN}-${SLOT}"
87
88 EANT_BUILD_XML="nbbuild/build.xml"
89 EANT_BUILD_TARGET="rebuild-cluster"
90 EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.webcommon -Dext.binaries.downloaded=true"
91 EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
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}"/20317762D93542637CD2C6123B836C8DA267DE9D-cdnjs.zip web.clientproject.api/external/cdnjs.zip || die
104 ln -s "${DISTDIR}"/59631804B5A7FF3CEAA3F0E113584AF7E1BB6E9B-dd-plist.jar libs.plist/external/dd-plist.jar || die
105 ln -s "${DISTDIR}"/E1B4ED2DCA9B1BDE7FE6D8F4B0A0CA265BCFFC16-ios-sim cordova.platforms.ios/external/ios-sim || die
106 ln -s "${DISTDIR}"/9D29F2A9722C91A403F32971E97DD0E49E97B02E-libiDeviceNativeBinding.dylib cordova.platforms.ios/external/libiDeviceNativeBinding.dylib || die
107 ln -s "${DISTDIR}"/9F0D0D95F57E73C0110FA023813A4F9756D543B1-libimobiledevice.4.dylib cordova.platforms.ios/external/libimobiledevice.4.dylib || die
108 ln -s "${DISTDIR}"/480C9E376169E21EA3BDA5D5841425BD7CC054D7-libplist.1.dylib cordova.platforms.ios/external/libplist.1.dylib || die
109 ln -s "${DISTDIR}"/08FE518AB60FFA2E5440B75B4D9F8502E0791B3C-libs.jstestdriver-ext.jar libs.jstestdriver/external/libs.jstestdriver-ext.jar || die
110 ln -s "${DISTDIR}"/D05B7274396C8EED185207399B6D0400DE347DB7-libusbmuxd.2.dylib cordova.platforms.ios/external/libusbmuxd.2.dylib || die
111 popd >/dev/null || die
112 }
113
114 src_prepare() {
115 einfo "Deleting bundled class files..."
116 find -name "*.class" -type f | xargs rm -vf
117
118 epatch netbeans-8.0-build.xml.patch
119
120 # Support for custom patches
121 if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
122 local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
123
124 if [ -n "${files}" ] ; then
125 einfo "Applying custom patches:"
126
127 for file in ${files} ; do
128 epatch "${file}"
129 done
130 fi
131 fi
132
133 einfo "Symlinking external libraries..."
134 java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
135
136 einfo "Linking in other clusters..."
137 mkdir "${S}"/nbbuild/netbeans || die
138 pushd "${S}"/nbbuild/netbeans >/dev/null || die
139
140 ln -s /usr/share/netbeans-platform-${SLOT} platform || die
141 cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
142 touch nb.cluster.platform.built
143
144 ln -s /usr/share/netbeans-extide-${SLOT} extide || die
145 cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
146 touch nb.cluster.extide.built
147
148 ln -s /usr/share/netbeans-ide-${SLOT} ide || die
149 cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
150 touch nb.cluster.ide.built
151
152 popd >/dev/null || die
153
154 java-pkg-2_src_prepare
155 }
156
157 src_install() {
158 pushd nbbuild/netbeans/webcommon >/dev/null || die
159
160 insinto ${INSTALL_DIR}
161 grep -E "/webcommon$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
162 doins -r *
163
164 popd >/dev/null || die
165
166 dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/webcommon
167 }