/[gentoo-x86]/dev-java/netbeans-webcommon/netbeans-webcommon-7.2.ebuild
Gentoo

Contents of /dev-java/netbeans-webcommon/netbeans-webcommon-7.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Wed Jul 25 16:11:03 2012 UTC (23 months, 3 weeks ago) by fordfrog
Branch: MAIN
dev-java/netbeans-webcommon: netbeans 7.2 released

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 fordfrog 1.1 # Copyright 1999-2012 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 Web Services Cluster"
10     HOMEPAGE="http://netbeans.org/"
11     SLOT="7.2"
12     SOURCE_URL="http://download.netbeans.org/netbeans/7.2/final/zip/netbeans-7.2-201207171143-src.zip"
13     SRC_URI="${SOURCE_URL}
14     http://dev.gentoo.org/~fordfrog/distfiles/netbeans-7.2-r1-build.xml.patch.bz2"
15     LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
16     KEYWORDS="~amd64 ~x86"
17     IUSE=""
18     S="${WORKDIR}"
19    
20     CDEPEND="~dev-java/netbeans-platform-${PV}
21     ~dev-java/netbeans-ide-${PV}"
22     DEPEND="virtual/jdk:1.6
23     app-arch/unzip
24     ${CDEPEND}
25     dev-java/javahelp:0"
26     RDEPEND=">=virtual/jdk-1.6
27     ${CDEPEND}"
28    
29     INSTALL_DIR="/usr/share/${PN}-${SLOT}"
30    
31     EANT_BUILD_XML="nbbuild/build.xml"
32     EANT_BUILD_TARGET="rebuild-cluster"
33     EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.webcommon -Dext.binaries.downloaded=true"
34     EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
35     JAVA_PKG_BSFIX="off"
36    
37     src_unpack() {
38     unpack $(basename ${SOURCE_URL})
39    
40     einfo "Deleting bundled jars..."
41     find -name "*.jar" -type f -delete
42    
43     unpack netbeans-7.2-r1-build.xml.patch.bz2
44     }
45    
46     src_prepare() {
47     einfo "Deleting bundled class files..."
48     find -name "*.class" -type f | xargs rm -vf
49    
50     epatch netbeans-7.2-r1-build.xml.patch
51    
52     # Support for custom patches
53     if [ -n "${NETBEANS72_PATCHES_DIR}" -a -d "${NETBEANS72_PATCHES_DIR}" ] ; then
54     local files=`find "${NETBEANS72_PATCHES_DIR}" -type f`
55    
56     if [ -n "${files}" ] ; then
57     einfo "Applying custom patches:"
58    
59     for file in ${files} ; do
60     epatch "${file}"
61     done
62     fi
63     fi
64    
65     einfo "Symlinking external libraries..."
66     java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
67    
68     einfo "Linking in other clusters..."
69     mkdir "${S}"/nbbuild/netbeans || die
70     pushd "${S}"/nbbuild/netbeans >/dev/null || die
71    
72     ln -s /usr/share/netbeans-platform-${SLOT} platform || die
73     cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
74     touch nb.cluster.platform.built
75    
76     ln -s /usr/share/netbeans-ide-${SLOT} ide || die
77     cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
78     touch nb.cluster.ide.built
79    
80     popd >/dev/null || die
81    
82     java-pkg-2_src_prepare
83     }
84    
85     src_install() {
86     pushd nbbuild/netbeans/webcommon >/dev/null || die
87    
88     insinto ${INSTALL_DIR}
89     grep -E "/webcommon$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
90     doins -r *
91    
92     popd >/dev/null || die
93    
94     dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/webcommon
95     }

  ViewVC Help
Powered by ViewVC 1.1.20