/[gentoo-x86]/dev-java/netbeans-mobility/netbeans-mobility-7.0.1.ebuild
Gentoo

Contents of /dev-java/netbeans-mobility/netbeans-mobility-7.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Oct 25 00:16:18 2011 UTC (3 years, 1 month ago) by fordfrog
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -0 lines
dev-java/netbeans-mobility: filtering ecj compilers

(Portage version: 2.1.10.31/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI="4"
6 WANT_ANT_TASKS="ant-nodeps"
7 inherit eutils java-pkg-2 java-ant-2
8
9 DESCRIPTION="Netbeans Mobility Cluster"
10 HOMEPAGE="http://netbeans.org/features/platform/"
11 SLOT="7.0"
12 SOURCE_URL="http://download.netbeans.org/netbeans/7.0.1/final/zip/netbeans-7.0.1-201107282000-src.zip"
13 SRC_URI="${SOURCE_URL}
14 http://dev.gentoo.org/~fordfrog/distfiles/netbeans-${SLOT}-build.xml-r1.patch.bz2
15 http://hg.netbeans.org/binaries/CEF99941E945D543DF0711F2C6AEF765B50F8501-jakarta-slide-ant-webdav-2.1.jar
16 http://hg.netbeans.org/binaries/D1B5BA3BFE8DCFAF08A0468F8879EF1D0E998038-jakarta-slide-webdavlib-2.1.jar
17 http://hg.netbeans.org/binaries/2FB485DD8C5EFC7972037781BFFF0CE31316FCE6-jmunit-1.2.1-api.zip
18 http://hg.netbeans.org/binaries/BD84F1A4C0789070CC62A8D2DBA75121A57C069C-jmunit4cldc10-1.2.1.jar
19 http://hg.netbeans.org/binaries/D76B8334DCBDBE93297AA5C02B17D9A856E72246-jmunit4cldc11-1.2.1.jar
20 http://hg.netbeans.org/binaries/3A5C68B301F42D3E8D89976F90D4E2AE6F2984B6-nbactivesync-5.0.jar
21 http://hg.netbeans.org/binaries/2EF44D925014E2EF76416535CC0F3A7C7E9F4AE1-perseus-nb-1.0.jar
22 http://hg.netbeans.org/binaries/793B8D020D81284E0B67FB635C17026121F06433-RicohAntTasks-2.0.jar"
23 LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
24 KEYWORDS="~amd64 ~x86"
25 IUSE=""
26 S="${WORKDIR}"
27
28 CDEPEND="~dev-java/netbeans-apisupport-${PV}
29 ~dev-java/netbeans-enterprise-${PV}
30 ~dev-java/netbeans-ide-${PV}
31 ~dev-java/netbeans-java-${PV}
32 ~dev-java/netbeans-platform-${PV}
33 ~dev-java/netbeans-websvccommon-${PV}
34 dev-java/ant-contrib:0
35 dev-java/commons-codec:0
36 dev-java/commons-httpclient:3
37 dev-java/jdom:1.0"
38 DEPEND="virtual/jdk:1.6
39 app-arch/unzip
40 ${CDEPEND}
41 dev-java/javahelp:0"
42 RDEPEND=">=virtual/jdk-1.6
43 ${CDEPEND}"
44
45 INSTALL_DIR="/usr/share/${PN}-${SLOT}"
46
47 EANT_BUILD_XML="nbbuild/build.xml"
48 EANT_BUILD_TARGET="rebuild-cluster"
49 EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.mobility -Dext.binaries.downloaded=true"
50 EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
51 JAVA_PKG_BSFIX="off"
52
53 src_unpack() {
54 unpack $(basename ${SOURCE_URL})
55
56 einfo "Deleting bundled jars..."
57 find -name "*.jar" -type f | grep -vE "mobility.databindingme/lib/netbeans_databindingme.*\.jar" \
58 | grep -v "vmd.components.midp/netbeans_midp_components_basic/dist/netbeans_midp_components_basic.jar" \
59 | grep -v "vmd.components.midp.pda/netbeans_midp_components_pda/dist/netbeans_midp_components_pda.jar" \
60 | grep -v "vmd.components.midp.wma/netbeans_midp_components_wma/dist/netbeans_midp_components_wma.jar" \
61 | grep -v "vmd.components.svg/nb_svg_midp_components/dist/nb_svg_midp_components.jar" | xargs rm
62
63 unpack netbeans-7.0-build.xml-r1.patch.bz2
64
65 pushd "${S}" >/dev/null || die
66 ln -s "${DISTDIR}"/CEF99941E945D543DF0711F2C6AEF765B50F8501-jakarta-slide-ant-webdav-2.1.jar mobility.deployment.webdav/external/jakarta-slide-ant-webdav-2.1.jar || die
67 ln -s "${DISTDIR}"/D1B5BA3BFE8DCFAF08A0468F8879EF1D0E998038-jakarta-slide-webdavlib-2.1.jar mobility.deployment.webdav/external/jakarta-slide-webdavlib-2.1.jar || die
68 ln -s "${DISTDIR}"/2FB485DD8C5EFC7972037781BFFF0CE31316FCE6-jmunit-1.2.1-api.zip mobility.j2meunit/external/jmunit-1.2.1-api.zip || die
69 ln -s "${DISTDIR}"/BD84F1A4C0789070CC62A8D2DBA75121A57C069C-jmunit4cldc10-1.2.1.jar mobility.j2meunit/external/jmunit4cldc10-1.2.1.jar || die
70 ln -s "${DISTDIR}"/D76B8334DCBDBE93297AA5C02B17D9A856E72246-jmunit4cldc11-1.2.1.jar mobility.j2meunit/external/jmunit4cldc11-1.2.1.jar || die
71 ln -s "${DISTDIR}"/3A5C68B301F42D3E8D89976F90D4E2AE6F2984B6-nbactivesync-5.0.jar o.n.mobility.lib.activesync/external/nbactivesync-5.0.jar || die
72 ln -s "${DISTDIR}"/2EF44D925014E2EF76416535CC0F3A7C7E9F4AE1-perseus-nb-1.0.jar svg.perseus/external/perseus-nb-1.0.jar || die
73 ln -s "${DISTDIR}"/793B8D020D81284E0B67FB635C17026121F06433-RicohAntTasks-2.0.jar j2me.cdc.project.ricoh/external/RicohAntTasks-2.0.jar || die
74 popd >/dev/null || die
75 }
76
77 src_prepare() {
78 einfo "Deleting bundled class files..."
79 find -name "*.class" -type f | xargs rm -vf
80
81 epatch netbeans-7.0-build.xml-r1.patch
82 sed -i "/release\.external.*nbactivesync\.dll/d" o.n.mobility.lib.activesync/nbproject/project.properties || die
83
84 # Support for custom patches
85 if [ -n "${NETBEANS70_PATCHES_DIR}" -a -d "${NETBEANS70_PATCHES_DIR}" ] ; then
86 local files=`find "${NETBEANS70_PATCHES_DIR}" -type f`
87
88 if [ -n "${files}" ] ; then
89 einfo "Applying custom patches:"
90
91 for file in ${files} ; do
92 epatch "${file}"
93 done
94 fi
95 fi
96
97 einfo "Symlinking external libraries..."
98 java-pkg_jar-from --into j2me.cdc.project.ricoh/external commons-codec commons-codec.jar commons-codec-1.3.jar
99 java-pkg_jar-from --into j2me.cdc.project.ricoh/external commons-httpclient-3 commons-httpclient.jar commons-httpclient-3.0.jar
100 java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
101 java-pkg_jar-from --into mobility.antext/external ant-contrib ant-contrib.jar ant-contrib-1.0b3.jar
102 java-pkg_jar-from --into mobility.deployment.webdav/external commons-httpclient-3 commons-httpclient.jar commons-httpclient-3.0.1.jar
103 java-pkg_jar-from --into mobility.deployment.webdav/external jdom-1.0 jdom.jar jdom-1.0.jar
104
105 einfo "Linking in other clusters..."
106 mkdir "${S}"/nbbuild/netbeans || die
107 pushd "${S}"/nbbuild/netbeans >/dev/null || die
108
109 ln -s /usr/share/netbeans-apisupport-${SLOT} apisupport || die
110 cat /usr/share/netbeans-apisupport-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
111 touch nb.cluster.apisupport.built
112
113 ln -s /usr/share/netbeans-enterprise-${SLOT} enterprise || die
114 cat /usr/share/netbeans-enterprise-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
115 touch nb.cluster.enterprise.built
116
117 ln -s /usr/share/netbeans-ide-${SLOT} ide || die
118 cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
119 touch nb.cluster.ide.built
120
121 ln -s /usr/share/netbeans-java-${SLOT} java || die
122 cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
123 touch nb.cluster.java.built
124
125 ln -s /usr/share/netbeans-platform-${SLOT} platform || die
126 cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
127 touch nb.cluster.platform.built
128
129 ln -s /usr/share/netbeans-websvccommon-${SLOT} websvccommon || die
130 cat /usr/share/netbeans-websvccommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
131 touch nb.cluster.websvccommon.built
132
133 popd >/dev/null || die
134
135 java-pkg-2_src_prepare
136 }
137
138 src_install() {
139 pushd nbbuild/netbeans/mobility >/dev/null || die
140
141 insinto ${INSTALL_DIR}
142
143 grep -E "/mobility$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
144
145 doins -r *
146 rm -rf "${D}"/${INSTALL_DIR}/modules/lib || die
147
148 popd >/dev/null || die
149
150 local instdir=${INSTALL_DIR}/modules/ext
151 pushd "${D}"/${instdir} >/dev/null || die
152 rm ant-contrib-1.0b3.jar && dosym /usr/share/ant-contrib/lib/ant-contrib.jar ${instdir}/ant-contrib-1.0b3.jar || die
153 # cdc-agui-swing-layout.jar
154 # cdc-pp-awt-layout.jar
155 rm commons-codec-1.3.jar && dosym /usr/share/commons-codec/lib/commons-codec.jar ${instdir}/commons-codec-1.3.jar || die
156 rm commons-httpclient-3.0.jar && dosym /usr/share/commons-httpclient-3/lib/commons-httpclient.jar ${instdir}/commons-httpclient-3.0.jar || die
157 rm commons-httpclient-3.0.1.jar && dosym /usr/share/commons-httpclient-3/lib/commons-httpclient.jar ${instdir}/commons-httpclient-3.0.1.jar || die
158 # jakarta-slide-ant-webdav-2.1.jar
159 # jakarta-slide-webdavlib-2.1.jar
160 rm jdom-1.0.jar && dosym /usr/share/jdom-1.0/lib/jdom.jar ${instdir}/jdom-1.0.jar || die
161 # jmunit4cldc10-1.2.1.jar
162 # jmunit4cldc11-1.2.1.jar
163 # nbactivesync-5.0.jar
164 # nb_svg_midp_components.jar
165 # netbeans_databindingme.jar
166 # netbeans_databindingme_pim.jar
167 # netbeans_databindingme_svg.jar
168 # netbeans_midp_components_basic.jar
169 # netbeans_midp_components_pda.jar
170 # netbeans_midp_components_wma.jar
171 # org-netbeans-modules-deployment-deviceanywhere.jar
172 # org-netbeans-modules-j2me-cdc-platform-nsicom-probe.jar
173 # org-netbeans-modules-j2me-cdc-project.jar
174 # org-netbeans-modules-j2me-cdc-project-nokiaS80.jar
175 # org-netbeans-modules-j2me-cdc-project-ojec.jar
176 # org-netbeans-modules-j2me-cdc-project-ricoh.jar
177 # org-netbeans-modules-j2me-cdc-project-savaje.jar
178 # org-netbeans-modules-j2me-cdc-project-semc.jar
179 # org-netbeans-modules-j2me-cdc-project-sjmc.jar
180 # perseus-nb-1.0.jar
181 # RicohAntTasks-2.0.jar
182 popd >/dev/null || die
183
184 dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/mobility
185 }

  ViewVC Help
Powered by ViewVC 1.1.20