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