/[gentoo-x86]/dev-java/netbeans-groovy/netbeans-groovy-7.1.1.ebuild
Gentoo

Contents of /dev-java/netbeans-groovy/netbeans-groovy-7.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon May 7 06:23:41 2012 UTC (2 years, 4 months ago) by phajdan.jr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
x86 stable wrt bug #414387

(Portage version: 2.1.10.49/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-groovy/netbeans-groovy-7.1.1.ebuild,v 1.2 2012/05/06 12:06:19 ago Exp $
4
5 EAPI="4"
6 WANT_ANT_TASKS="ant-nodeps"
7 inherit eutils java-pkg-2 java-ant-2
8
9 DESCRIPTION="Netbeans Groovy Cluster"
10 HOMEPAGE="http://netbeans.org/projects/groovy"
11 SLOT="7.1"
12 SOURCE_URL="http://dlc.sun.com.edgesuite.net/netbeans/7.1.1/final/zip/netbeans-7.1.1-201203012225-src.zip"
13 SRC_URI="${SOURCE_URL}
14 http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r1-build.xml.patch.bz2
15 http://hg.netbeans.org/binaries/559C961A6CE793FAC94C8040253EA1FBD32B668B-groovy-all-1.6.4.jar"
16 LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
17 KEYWORDS="amd64 x86"
18 IUSE=""
19 S="${WORKDIR}"
20
21 CDEPEND="~dev-java/netbeans-ide-${PV}
22 ~dev-java/netbeans-java-${PV}
23 ~dev-java/netbeans-platform-${PV}"
24 DEPEND="virtual/jdk:1.6
25 app-arch/unzip
26 ${CDEPEND}
27 dev-java/javahelp:0"
28 RDEPEND=">=virtual/jdk-1.6
29 ${CDEPEND}"
30
31 INSTALL_DIR="/usr/share/${PN}-${SLOT}"
32
33 EANT_BUILD_XML="nbbuild/build.xml"
34 EANT_BUILD_TARGET="rebuild-cluster"
35 EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.groovy -Dext.binaries.downloaded=true"
36 EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
37 JAVA_PKG_BSFIX="off"
38
39 src_unpack() {
40 unpack $(basename ${SOURCE_URL})
41
42 einfo "Deleting bundled jars..."
43 find -name "*.jar" -type f -delete
44
45 unpack netbeans-9999-r1-build.xml.patch.bz2
46
47 pushd "${S}" >/dev/null || die
48 ln -s "${DISTDIR}"/559C961A6CE793FAC94C8040253EA1FBD32B668B-groovy-all-1.6.4.jar groovy.editor/external/groovy-all-1.6.4.jar || die
49 popd >/dev/null || die
50 }
51
52 src_prepare() {
53 einfo "Deleting bundled class files..."
54 find -name "*.class" -type f | xargs rm -vf
55
56 epatch netbeans-9999-r1-build.xml.patch
57
58 # Support for custom patches
59 if [ -n "${NETBEANS9999_PATCHES_DIR}" -a -d "${NETBEANS9999_PATCHES_DIR}" ] ; then
60 local files=`find "${NETBEANS9999_PATCHES_DIR}" -type f`
61
62 if [ -n "${files}" ] ; then
63 einfo "Applying custom patches:"
64
65 for file in ${files} ; do
66 epatch "${file}"
67 done
68 fi
69 fi
70
71 einfo "Symlinking external libraries..."
72 java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
73
74 einfo "Linking in other clusters..."
75 mkdir "${S}"/nbbuild/netbeans || die
76 pushd "${S}"/nbbuild/netbeans >/dev/null || die
77
78 ln -s /usr/share/netbeans-ide-${SLOT} ide || die
79 cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
80 touch nb.cluster.ide.built
81
82 ln -s /usr/share/netbeans-java-${SLOT} java || die
83 cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
84 touch nb.cluster.java.built
85
86 ln -s /usr/share/netbeans-platform-${SLOT} platform || die
87 cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
88 touch nb.cluster.platform.built
89
90 popd >/dev/null || die
91
92 java-pkg-2_src_prepare
93 }
94
95 src_install() {
96 pushd nbbuild/netbeans/groovy >/dev/null || die
97
98 insinto ${INSTALL_DIR}
99
100 grep -E "/groovy$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
101
102 doins -r *
103
104 popd >/dev/null || die
105
106 local instdir=${INSTALL_DIR}/modules/ext
107 pushd "${D}"/${instdir} >/dev/null || die
108 # groovy-all.jar
109 popd >/dev/null || die
110
111 dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/groovy
112 }

  ViewVC Help
Powered by ViewVC 1.1.20