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-mobility: netbeans-mobility-8.0.ebuild ChangeLog
Date: Sun, 23 Mar 2014 18:58:15
Message-Id: 20140323185812.364C02004F@flycatcher.gentoo.org
1 fordfrog 14/03/23 18:58:12
2
3 Modified: ChangeLog
4 Added: netbeans-mobility-8.0.ebuild
5 Log:
6 netbeans-mobility: 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.20 dev-java/netbeans-mobility/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-mobility/ChangeLog?rev=1.20&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-mobility/ChangeLog?rev=1.20&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-mobility/ChangeLog?r1=1.19&r2=1.20
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-java/netbeans-mobility/ChangeLog,v
20 retrieving revision 1.19
21 retrieving revision 1.20
22 diff -u -r1.19 -r1.20
23 --- ChangeLog 16 Oct 2013 09:49:56 -0000 1.19
24 +++ ChangeLog 23 Mar 2014 18:58:12 -0000 1.20
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-java/netbeans-mobility
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-mobility/ChangeLog,v 1.19 2013/10/16 09:49:56 fordfrog Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-mobility/ChangeLog,v 1.20 2014/03/23 18:58:12 fordfrog Exp $
31 +
32 +*netbeans-mobility-8.0 (23 Mar 2014)
33 +
34 + 23 Mar 2014; Miroslav Ć ulc <fordfrog@g.o>
35 + +netbeans-mobility-8.0.ebuild:
36 + new ebuild for version 8.0
37
38 *netbeans-mobility-7.4 (16 Oct 2013)
39
40
41
42
43 1.1 dev-java/netbeans-mobility/netbeans-mobility-8.0.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-mobility/netbeans-mobility-8.0.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-mobility/netbeans-mobility-8.0.ebuild?rev=1.1&content-type=text/plain
47
48 Index: netbeans-mobility-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-mobility/netbeans-mobility-8.0.ebuild,v 1.1 2014/03/23 18:58:12 fordfrog Exp $
53
54 EAPI="4"
55 inherit eutils java-pkg-2 java-ant-2
56
57 DESCRIPTION="Netbeans Mobility Cluster"
58 HOMEPAGE="http://netbeans.org/features/platform/"
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 LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
64 KEYWORDS="~amd64 ~x86"
65 IUSE=""
66 S="${WORKDIR}"
67
68 CDEPEND="~dev-java/netbeans-apisupport-${PV}
69 ~dev-java/netbeans-enterprise-${PV}
70 ~dev-java/netbeans-extide-${PV}
71 ~dev-java/netbeans-ide-${PV}
72 ~dev-java/netbeans-java-${PV}
73 ~dev-java/netbeans-platform-${PV}
74 ~dev-java/netbeans-websvccommon-${PV}"
75 DEPEND=">=virtual/jdk-1.7
76 app-arch/unzip
77 ${CDEPEND}
78 dev-java/javahelp:0"
79 RDEPEND=">=virtual/jdk-1.7
80 ${CDEPEND}"
81
82 INSTALL_DIR="/usr/share/${PN}-${SLOT}"
83
84 EANT_BUILD_XML="nbbuild/build.xml"
85 EANT_BUILD_TARGET="rebuild-cluster"
86 EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.mobility -Dext.binaries.downloaded=true"
87 EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
88 JAVA_PKG_BSFIX="off"
89
90 src_unpack() {
91 unpack $(basename ${SOURCE_URL})
92
93 einfo "Deleting bundled jars..."
94 find -name "*.jar" -type f | grep -vE "mobility.databindingme/lib/netbeans_databindingme.*\.jar" \
95 | grep -v "vmd.components.midp/netbeans_midp_components_basic/dist/netbeans_midp_components_basic.jar" \
96 | grep -v "vmd.components.midp.pda/netbeans_midp_components_pda/dist/netbeans_midp_components_pda.jar" \
97 | grep -v "vmd.components.midp.wma/netbeans_midp_components_wma/dist/netbeans_midp_components_wma.jar" \
98 | grep -v "vmd.components.svg/nb_svg_midp_components/dist/nb_svg_midp_components.jar" | xargs rm
99
100 unpack netbeans-8.0-build.xml.patch.bz2
101 }
102
103 src_prepare() {
104 einfo "Deleting bundled class files..."
105 find -name "*.class" -type f | xargs rm -vf
106
107 epatch netbeans-8.0-build.xml.patch
108
109 # Support for custom patches
110 if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
111 local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
112
113 if [ -n "${files}" ] ; then
114 einfo "Applying custom patches:"
115
116 for file in ${files} ; do
117 epatch "${file}"
118 done
119 fi
120 fi
121
122 einfo "Symlinking external libraries..."
123 java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
124
125 einfo "Linking in other clusters..."
126 mkdir "${S}"/nbbuild/netbeans || die
127 pushd "${S}"/nbbuild/netbeans >/dev/null || die
128
129 ln -s /usr/share/netbeans-apisupport-${SLOT} apisupport || die
130 cat /usr/share/netbeans-apisupport-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
131 touch nb.cluster.apisupport.built
132
133 ln -s /usr/share/netbeans-enterprise-${SLOT} enterprise || die
134 cat /usr/share/netbeans-enterprise-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
135 touch nb.cluster.enterprise.built
136
137 ln -s /usr/share/netbeans-extide-${SLOT} extide || die
138 cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
139 touch nb.cluster.extide.built
140
141 ln -s /usr/share/netbeans-ide-${SLOT} ide || die
142 cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
143 touch nb.cluster.ide.built
144
145 ln -s /usr/share/netbeans-java-${SLOT} java || die
146 cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
147 touch nb.cluster.java.built
148
149 ln -s /usr/share/netbeans-platform-${SLOT} platform || die
150 cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
151 touch nb.cluster.platform.built
152
153 ln -s /usr/share/netbeans-websvccommon-${SLOT} websvccommon || die
154 cat /usr/share/netbeans-websvccommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
155 touch nb.cluster.websvccommon.built
156
157 popd >/dev/null || die
158
159 java-pkg-2_src_prepare
160 }
161
162 src_install() {
163 pushd nbbuild/netbeans/mobility >/dev/null || die
164
165 insinto ${INSTALL_DIR}
166
167 grep -E "/mobility$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
168
169 doins -r *
170 rm -rf "${D}"/${INSTALL_DIR}/modules/lib || die
171
172 popd >/dev/null || die
173
174 dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/mobility
175 }