1 |
fordfrog 12/01/06 11:01:26 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: netbeans-nb-7.1.ebuild |
5 |
Log: |
6 |
dev-java/netbeans-nb: 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-nb/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-nb/ChangeLog?rev=1.8&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-nb/ChangeLog?rev=1.8&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-nb/ChangeLog?r1=1.7&r2=1.8 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-java/netbeans-nb/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:17:45 -0000 1.7 |
24 |
+++ ChangeLog 6 Jan 2012 11:01:25 -0000 1.8 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-java/netbeans-nb |
27 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-nb/ChangeLog,v 1.7 2011/10/25 00:17:45 fordfrog Exp $ |
29 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-nb/ChangeLog,v 1.8 2012/01/06 11:01:25 fordfrog Exp $ |
31 |
+ |
32 |
+*netbeans-nb-7.1 (06 Jan 2012) |
33 |
+ |
34 |
+ 06 Jan 2012; Miroslav Šulc <fordfrog@g.o> |
35 |
+ +files/7.1/keychain-support.patch, +netbeans-nb-7.1.ebuild: |
36 |
+ Version bump |
37 |
|
38 |
25 Oct 2011; Miroslav Šulc <fordfrog@g.o> netbeans-nb-7.0.1.ebuild: |
39 |
Filtering ecj compilers as the package does not compile using them |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-java/netbeans-nb/netbeans-nb-7.1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-nb/netbeans-nb-7.1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netbeans-nb/netbeans-nb-7.1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: netbeans-nb-7.1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-nb/netbeans-nb-7.1.ebuild,v 1.1 2012/01/06 11:01:25 fordfrog Exp $ |
53 |
|
54 |
EAPI="4" |
55 |
WANT_ANT_TASKS="ant-nodeps" |
56 |
inherit eutils java-pkg-2 java-ant-2 |
57 |
|
58 |
DESCRIPTION="Netbeans IDE Branding" |
59 |
HOMEPAGE="http://netbeans.org/" |
60 |
SLOT="7.1" |
61 |
SOURCE_URL="http://dlc.sun.com.edgesuite.net/netbeans/7.1/final/zip/netbeans-7.1-201112071828-src.zip" |
62 |
SRC_URI="${SOURCE_URL} |
63 |
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-9999-r1-build.xml.patch.bz2 |
64 |
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-7.0.png" |
65 |
LICENSE="|| ( CDDL GPL-2-with-linking-exception )" |
66 |
KEYWORDS="~amd64 ~x86" |
67 |
IUSE="keychain" |
68 |
S="${WORKDIR}" |
69 |
|
70 |
CDEPEND="~dev-java/netbeans-platform-${PV} |
71 |
~dev-java/netbeans-harness-${PV} |
72 |
~dev-java/netbeans-ide-${PV}" |
73 |
DEPEND="virtual/jdk:1.6 |
74 |
app-arch/unzip |
75 |
${CDEPEND} |
76 |
dev-java/javahelp:0" |
77 |
RDEPEND=">=virtual/jdk-1.6 |
78 |
${CDEPEND} |
79 |
keychain? ( |
80 |
net-misc/keychain:0 |
81 |
net-misc/x11-ssh-askpass:0 |
82 |
)" |
83 |
|
84 |
INSTALL_DIR="/usr/share/${PN}-${SLOT}" |
85 |
|
86 |
EANT_BUILD_XML="nbbuild/build.xml" |
87 |
EANT_BUILD_TARGET="rebuild-cluster create-netbeans-import finish-build" |
88 |
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.nb -Dext.binaries.downloaded=true" |
89 |
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7" |
90 |
JAVA_PKG_BSFIX="off" |
91 |
|
92 |
src_unpack() { |
93 |
unpack $(basename ${SOURCE_URL}) |
94 |
|
95 |
einfo "Deleting bundled jars..." |
96 |
find -name "*.jar" -type f -delete |
97 |
|
98 |
unpack netbeans-9999-r1-build.xml.patch.bz2 |
99 |
} |
100 |
|
101 |
src_prepare() { |
102 |
einfo "Deleting bundled class files..." |
103 |
find -name "*.class" -type f | xargs rm -vf |
104 |
|
105 |
epatch netbeans-9999-r1-build.xml.patch |
106 |
use keychain && epatch "${FILESDIR}"/${SLOT}/keychain-support.patch |
107 |
|
108 |
# Support for custom patches |
109 |
if [ -n "${NETBEANS9999_PATCHES_DIR}" -a -d "${NETBEANS9999_PATCHES_DIR}" ] ; then |
110 |
local files=`find "${NETBEANS9999_PATCHES_DIR}" -type f` |
111 |
|
112 |
if [ -n "${files}" ] ; then |
113 |
einfo "Applying custom patches:" |
114 |
|
115 |
for file in ${files} ; do |
116 |
epatch "${file}" |
117 |
done |
118 |
fi |
119 |
fi |
120 |
|
121 |
einfo "Symlinking external libraries..." |
122 |
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar |
123 |
|
124 |
einfo "Linking in other clusters..." |
125 |
mkdir "${S}"/nbbuild/netbeans || die |
126 |
pushd "${S}"/nbbuild/netbeans >/dev/null || die |
127 |
|
128 |
ln -s /usr/share/netbeans-platform-${SLOT} platform || die |
129 |
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die |
130 |
touch nb.cluster.platform.built |
131 |
|
132 |
ln -s /usr/share/netbeans-harness-${SLOT} harness || die |
133 |
cat /usr/share/netbeans-harness-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die |
134 |
touch nb.cluster.harness.built |
135 |
|
136 |
ln -s /usr/share/netbeans-ide-${SLOT} ide || die |
137 |
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die |
138 |
touch nb.cluster.ide.built |
139 |
popd >/dev/null || die |
140 |
|
141 |
java-pkg-2_src_prepare |
142 |
} |
143 |
|
144 |
src_install() { |
145 |
pushd nbbuild/netbeans >/dev/null || die |
146 |
|
147 |
insinto ${INSTALL_DIR}/nb |
148 |
|
149 |
grep -E "/nb$" moduleCluster.properties > "${D}"/${INSTALL_DIR}/nb/moduleCluster.properties || die |
150 |
|
151 |
insinto ${INSTALL_DIR} |
152 |
doins -r nb |
153 |
dodoc *.txt |
154 |
dohtml *.html *.css |
155 |
|
156 |
insinto ${INSTALL_DIR}/bin |
157 |
doins bin/netbeans |
158 |
dosym ${INSTALL_DIR}/bin/netbeans /usr/bin/netbeans-${SLOT} |
159 |
fperms 755 ${INSTALL_DIR}/bin/netbeans |
160 |
|
161 |
insinto /etc/netbeans-${SLOT} |
162 |
doins etc/* |
163 |
dosym /etc/netbeans-${SLOT} ${INSTALL_DIR}/etc |
164 |
|
165 |
# fix paths per bug# 163483 |
166 |
if [[ -e "${D}"/${INSTALL_DIR}/bin/netbeans ]]; then |
167 |
sed -i -e "s:\"\$progdir\"/../etc/:/etc/netbeans-${SLOT}/:" "${D}"/${INSTALL_DIR}/bin/netbeans |
168 |
sed -i -e "s:\"\${userdir}\"/etc/:/etc/netbeans-${SLOT}/:" "${D}"/${INSTALL_DIR}/bin/netbeans |
169 |
fi |
170 |
|
171 |
dodir /usr/share/icons/hicolor/32x32/apps |
172 |
dosym ${INSTALL_DIR}/nb/netbeans.png /usr/share/icons/hicolor/32x32/apps/netbeans-${SLOT}.png |
173 |
dodir /usr/share/icons/hicolor/128x128/apps |
174 |
cp "${DISTDIR}"/netbeans-7.0.png "${D}"/usr/share/icons/hicolor/128x128/apps/netbeans-${SLOT}.png || die |
175 |
dosym /usr/share/icons/hicolor/128x128/apps/netbeans-${SLOT}.png /usr/share/pixmaps/netbeans-${SLOT}.png |
176 |
|
177 |
popd >/dev/null || die |
178 |
|
179 |
make_desktop_entry netbeans-${SLOT} "Netbeans ${PV}" netbeans-${SLOT} Development |
180 |
|
181 |
mkdir -p "${D}"/${INSTALL_DIR}/nb/config || die |
182 |
echo "NBGNT" > "${D}"/${INSTALL_DIR}/nb/config/productid || die |
183 |
} |
184 |
|
185 |
pkg_postinst() { |
186 |
if use keychain ; then |
187 |
einfo "You enabled keychain support, that means NetBeans will use keychain for managing" |
188 |
einfo "your keys while connecting to ssh protected repositories. If you want to load some" |
189 |
einfo "keys on NetBeans startup, create file keychain-keys.txt in your userdir" |
190 |
einfo "(~/.netbeans/${SLOT}/keychain-keys.txt) and put names of your keys in the file," |
191 |
einfo "each key on single line, for example:" |
192 |
einfo "id_dsa" |
193 |
einfo "id_dsa_gentoo" |
194 |
einfo "If on NetBeans startup key will not be handled by keychain yet, you will be asked" |
195 |
einfo "for key password (only this time and never again). You can find more information" |
196 |
einfo "about keychain at http://www.gentoo.org/doc/en/keychain-guide.xml" |
197 |
fi |
198 |
} |