summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-10-12 17:06:09 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-10-12 17:06:09 +0000
commit30511a672d4ff98291f745a85b566039f41375c1 (patch)
tree87be258df9f97f1e1c9e105b85be4d0fdbf90b57 /dev-util/netbeans
parentremove xf86-input-synpatics 1.2.0 from package.mask (diff)
downloadhistorical-30511a672d4ff98291f745a85b566039f41375c1.tar.gz
historical-30511a672d4ff98291f745a85b566039f41375c1.tar.bz2
historical-30511a672d4ff98291f745a85b566039f41375c1.zip
Fix quoting and remove invalid desktop entry generation.
Package-Manager: portage-2.2_rc46/cvs/Linux x86_64
Diffstat (limited to 'dev-util/netbeans')
-rw-r--r--dev-util/netbeans/netbeans-3.6-r1.ebuild63
1 files changed, 17 insertions, 46 deletions
diff --git a/dev-util/netbeans/netbeans-3.6-r1.ebuild b/dev-util/netbeans/netbeans-3.6-r1.ebuild
index 3fca764ae8df..33613ef2b5b0 100644
--- a/dev-util/netbeans/netbeans-3.6-r1.ebuild
+++ b/dev-util/netbeans/netbeans-3.6-r1.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/netbeans-3.6-r1.ebuild,v 1.12 2007/04/06 18:01:36 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/netbeans-3.6-r1.ebuild,v 1.13 2009/10/12 17:06:09 ssuominen Exp $
-IUSE="kde gnome"
+inherit eutils
+
+IUSE=""
MY_P=netbeans-${PV/./_}
S=${WORKDIR}/${PN}
@@ -24,7 +26,7 @@ src_unpack() {
unpack ${A}
# fix jdkhome references
- cd ${S}/bin
+ cd "${S}"/bin
# runide.sh
sed -i -e 's:^jdkhome="":jdkhome="`java-config --jdk-home`":' \
runide.sh
@@ -32,18 +34,18 @@ src_unpack() {
src_install() {
# remove non-x86 Linux binaries
- rm -f ${S}/bin/runide*.exe ${S}/bin/rmid_wrapper.exe
- rm -f ${S}/bin/runide_exe_defaults
- rm -f ${S}/bin/runide*.com
- rm -f ${S}/bin/runideos2.cmd
- rm -f ${S}/bin/fastjavac/fastjavac.exe
- rm -f ${S}/bin/fastjavac/fastjavac.sun
- rm -f ${S}/bin/fastjavac/fastjavac.sun.intel
- rm -f ${S}/bin/unsupported/*.bat
+ rm -f "${S}"/bin/runide*.exe "${S}"/bin/rmid_wrapper.exe
+ rm -f "${S}"/bin/runide_exe_defaults
+ rm -f "${S}"/bin/runide*.com
+ rm -f "${S}"/bin/runideos2.cmd
+ rm -f "${S}"/bin/fastjavac/fastjavac.exe
+ rm -f "${S}"/bin/fastjavac/fastjavac.sun
+ rm -f "${S}"/bin/fastjavac/fastjavac.sun.intel
+ rm -f "${S}"/bin/unsupported/*.bat
# Remove MacOS X Binaries? This doesn't necessarily make
# sense because MacOS X could live happily beside Gentoo.
- rm -f ${S}/bin/macosx_launcher.dmg
+ rm -f "${S}"/bin/macosx_launcher.dmg
dodir /opt/${P}
dodoc build_info
@@ -52,7 +54,7 @@ src_install() {
cp -Rdp ant beans bin \
docs jakarta-tomcat-5.0.19 \
lib modules sources \
- system update_tracking ${D}/opt/${P}
+ system update_tracking "${D}"/opt/${P}
keepdir /opt/${P}/lib/patches \
/opt/${P}/modules \
/opt/netbeans-3.6/jakarta-tomcat-5.0.19/server/classes \
@@ -61,36 +63,5 @@ src_install() {
dodir /usr/bin
dosym /opt/${P}/bin/runide.sh /usr/bin/netbeans
- # If either Gnome or KDE are installed, then install the icons.
- if use gnome || use kde; then
- echo "Adding icons...."
- insinto /usr/share/pixmaps
- doins ${FILESDIR}/netbeans.png
- fi
-
- # If Gnome is installed, then copy in the desktop entry.
- if use gnome ; then
- einfo "Adding Gnome support...."
- insinto /usr/share/gnome/apps/Development
- doins ${FILESDIR}/netbeans.desktop
- echo "Exec=/opt/${P}/bin/runide.sh" >> ${D}/usr/share/gnome/apps/Development/netbeans.desktop
- echo >> ${D}/usr/share/gnome/apps/Development/netbeans.desktop
- fi
-
- # If KDE is installed, the copy in the menu entry to the
- # "Development" menu.
- # Unfortunately, the file doesn't contain any internationalized
- # text at the moment.
- if use kde ; then
- einfo "Adding KDE support...."
- DESKTOP_FILE=netbeans-KDE.desktop
- DESKTOP_DIR=/usr/share/applnk/Development
- DESKTOP=${DESKTOP_DIR}/${DESKTOP_FILE}
- insinto ${DESKTOP_DIR}
- doins ${FILESDIR}/${DESKTOP_FILE}
- echo "Name=NetBeans ${PV}" >> ${D}/${DESKTOP}
- echo "Exec=/usr/bin/netbeans" >> ${D}/${DESKTOP}
- echo "Icon=/usr/share/pixmaps/netbeans.png" >> ${D}/${DESKTOP}
- echo >> ${D}/${DESKTOP}
- fi
+ doicon "${FILESDIR}"/netbeans.png
}