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-php: netbeans-php-7.1.ebuild ChangeLog
Date: Fri, 06 Jan 2012 11:35:37
Message-Id: 20120106113528.6DA8520033@flycatcher.gentoo.org
1 fordfrog 12/01/06 11:35:28
2
3 Modified: ChangeLog
4 Added: netbeans-php-7.1.ebuild
5 Log:
6 dev-java/netbeans-php: version bump
7
8 (Portage version: 2.1.10.44/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.8 dev-java/netbeans-php/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-php/ChangeLog?rev=1.8&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-php/ChangeLog?rev=1.8&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-php/ChangeLog?r1=1.7&r2=1.8
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-java/netbeans-php/ChangeLog,v
20 retrieving revision 1.7
21 retrieving revision 1.8
22 diff -u -r1.7 -r1.8
23 --- ChangeLog 25 Oct 2011 00:24:07 -0000 1.7
24 +++ ChangeLog 6 Jan 2012 11:35:28 -0000 1.8
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-java/netbeans-php
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-php/ChangeLog,v 1.7 2011/10/25 00:24:07 fordfrog Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-php/ChangeLog,v 1.8 2012/01/06 11:35:28 fordfrog Exp $
31 +
32 +*netbeans-php-7.1 (06 Jan 2012)
33 +
34 + 06 Jan 2012; Miroslav Šulc <fordfrog@g.o> +netbeans-php-7.1.ebuild:
35 + Version bump
36
37 25 Oct 2011; Miroslav Šulc <fordfrog@g.o> netbeans-php-7.0.1.ebuild:
38 Filtering ecj compilers as the package does not compile using them
39
40
41
42 1.1 dev-java/netbeans-php/netbeans-php-7.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-php/netbeans-php-7.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-php/netbeans-php-7.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: netbeans-php-7.1.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-php/netbeans-php-7.1.ebuild,v 1.1 2012/01/06 11:35:28 fordfrog Exp $
52
53 EAPI="4"
54 WANT_ANT_TASKS="ant-nodeps"
55 inherit eutils java-pkg-2 java-ant-2
56
57 DESCRIPTION="Netbeans PHP Cluster"
58 HOMEPAGE="http://netbeans.org/projects/php"
59 SLOT="7.1"
60 SOURCE_URL="http://dlc.sun.com.edgesuite.net/netbeans/7.1/final/zip/netbeans-7.1-201112071828-src.zip"
61 SRC_URI="${SOURCE_URL}
62 http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r1-build.xml.patch.bz2
63 http://hg.netbeans.org/binaries/0702230EB3354A1687E4496D73A94F33A1E343BD-phpdocdesc.zip
64 http://hg.netbeans.org/binaries/BB8CBBD70CCD7ABF40943487C48512D82FB01AE9-phpsigfiles.zip
65 http://hg.netbeans.org/binaries/40BC40A6E6DBD598900E8FAB87E460FCC601275C-predefined_vars.zip"
66 LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
67 KEYWORDS="~amd64 ~x86"
68 IUSE=""
69 S="${WORKDIR}"
70
71 CDEPEND="~dev-java/netbeans-ide-${PV}
72 ~dev-java/netbeans-platform-${PV}
73 ~dev-java/netbeans-websvccommon-${PV}
74 dev-java/javacup:0"
75 DEPEND="virtual/jdk:1.6
76 app-arch/unzip
77 ${CDEPEND}
78 dev-java/javahelp:0"
79 RDEPEND=">=virtual/jdk-1.6
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.php -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 -delete
95
96 unpack netbeans-9999-r1-build.xml.patch.bz2
97
98 pushd "${S}" >/dev/null || die
99 ln -s "${DISTDIR}"/0702230EB3354A1687E4496D73A94F33A1E343BD-phpdocdesc.zip php.phpdoc.documentation/external/phpdocdesc.zip || die
100 ln -s "${DISTDIR}"/BB8CBBD70CCD7ABF40943487C48512D82FB01AE9-phpsigfiles.zip php.project/external/phpsigfiles.zip || die
101 ln -s "${DISTDIR}"/40BC40A6E6DBD598900E8FAB87E460FCC601275C-predefined_vars.zip php.editor/external/predefined_vars.zip || die
102 popd >/dev/null || die
103 }
104
105 src_prepare() {
106 einfo "Deleting bundled class files..."
107 find -name "*.class" -type f | xargs rm -vf
108
109 epatch netbeans-9999-r1-build.xml.patch
110
111 # Support for custom patches
112 if [ -n "${NETBEANS9999_PATCHES_DIR}" -a -d "${NETBEANS9999_PATCHES_DIR}" ] ; then
113 local files=`find "${NETBEANS9999_PATCHES_DIR}" -type f`
114
115 if [ -n "${files}" ] ; then
116 einfo "Applying custom patches:"
117
118 for file in ${files} ; do
119 epatch "${file}"
120 done
121 fi
122 fi
123
124 einfo "Symlinking external libraries..."
125 java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
126 java-pkg_jar-from --into libs.javacup/external javacup javacup.jar java-cup-11a.jar
127
128 einfo "Linking in other clusters..."
129 mkdir "${S}"/nbbuild/netbeans || die
130 pushd "${S}"/nbbuild/netbeans >/dev/null || die
131
132 ln -s /usr/share/netbeans-ide-${SLOT} ide || die
133 cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
134 touch nb.cluster.ide.built
135
136 ln -s /usr/share/netbeans-platform-${SLOT} platform || die
137 cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
138 touch nb.cluster.platform.built
139
140 ln -s /usr/share/netbeans-websvccommon-${SLOT} websvccommon || die
141 cat /usr/share/netbeans-websvccommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
142 touch nb.cluster.websvccommon.built
143
144 popd >/dev/null || die
145
146 java-pkg-2_src_prepare
147 }
148
149 src_install() {
150 pushd nbbuild/netbeans/php >/dev/null || die
151
152 insinto ${INSTALL_DIR}
153
154 grep -E "/php$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
155
156 doins -r *
157
158 popd >/dev/null || die
159
160 local instdir=${INSTALL_DIR}/modules/ext
161 pushd "${D}"/${instdir} >/dev/null || die
162 rm java-cup-11a.jar && dosym /usr/share/javacup/lib/javacup.jar ${instdir}/java-cup-11a.jar || die
163 popd >/dev/null || die
164
165 dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/php
166 }