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