Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Netbeans 3.5 ebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
allend
n00b
n00b


Joined: 25 May 2003
Posts: 9

PostPosted: Wed Jun 11, 2003 6:12 pm    Post subject: Netbeans 3.5 ebuild Reply with quote

Hi. I don't know how many people use this, but I made an ebuild for netbeans 3.5 which just came out. If you want to use a java ide, then you should try it. 3.5 has really speeded up the startup time and response times! Just modified the 3.4.1 ebuild.

Code:

# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/dev-util/netbeans/netbeans-3.5.ebuild,v 1.4 2003/05/26 10:49:11 absinthe Exp $

IUSE="kde gnome"

MY_BUILD=200306022350
MY_P=NetBeansIDE-release35
S=${WORKDIR}/${PN}
DESCRIPTION="NetBeans ${PV} IDE for Java"
SRC_URI="http://www.netbeans.org/download/release35/night/build${MY_BUILD}/${MY_P}.tar.bz2"
HOMEPAGE="http://www.netbeans.org"

SLOT="0"
LICENSE="GPL-2 Apache-1.1 sun-bcla-j2ee JPython SPL"
KEYWORDS="x86 sparc alpha ppc"
#still need to add JPython, Sun Public and DynamicJava licenses
#sun-j2ee actually contains Sun Binary Code license
#will have to be renamed and containing it ebuilds updated at spome point..

DEPEND=">=virtual/jdk-1.3"

src_unpack() {
   unpack ${A}

   # fix jdkhome references
   cd ${S}/bin
   # rmid_wrapper.sh
   cp rmid_wrapper.sh rmid_wrapper.sh.orig
   sed -e 's:^jdkhome="":jdkhome="`java-config --jdk-home`":' \
      rmid_wrapper.sh.orig >rmid_wrapper.sh
   rm -f rmid_wrapper.sh.orig
   # runide.sh
   cp runide.sh runide.sh.orig
   sed -e 's:^jdkhome="":jdkhome="`java-config --jdk-home`":' \
      runide.sh.orig >runide.sh
   rm -f runide.sh.orig
}

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

   # 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

   dodir /opt/${P}
   dodoc build_info
   dohtml CHANGES.html CREDITS.html README.html netbeans.css
   # note: docs/ are docs used internally by the IDE
   cp -Rdp beans bin docs lib modules sources system ${D}/opt/${P}
   cp ${FILEDIR}/netbeans ${S}/netbeans
   echo "/opt/${P}/bin/runide.sh \$*" >> ${S}/netbeans
   dobin ${S}/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=${KDEDIR}/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
}


Call the file /usr/portage/dev-util/netbeans/netbeans-3.5.ebuild. You will have to make a digest for the ebuild after the tar.bz2 file is downloaded.

Code:
$ ebuild /usr/portage/dev-util/netbeans/netbeans-3.5.ebuild digest
Back to top
View user's profile Send private message
Narada
Guru
Guru


Joined: 12 Dec 2002
Posts: 300
Location: London, UK

PostPosted: Sat Jun 14, 2003 12:41 am    Post subject: Reply with quote

Hello. Good job. Please submit this as a request/enhancement on bugs.gentoo.org so that it is incorporated into the portage tree officially for the rest of us.
_________________
http://dhruba.name/
Back to top
View user's profile Send private message
maor
Guru
Guru


Joined: 28 Aug 2002
Posts: 323

PostPosted: Sat Jun 14, 2003 9:51 am    Post subject: Reply with quote

bummer don't work for me so i installed it manually and worked perfect by now it's seem no big changes just as it was before.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum