Bug 162914 - new feature for dev-util/netbeans-5.5: C/C++ support
Bug#: 162914 Product:  Gentoo Linux Version: 2006.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: fordfrog@gentoo.org Reported By: Sergey.Belyashov@gmail.com
Component: Development
URL: 
Summary: new feature for dev-util/netbeans-5.5: C/C++ support
Keywords:  
Status Whiteboard: 
Opened: 2007-01-20 11:36 0000
Description:   Opened: 2007-01-20 11:36 0000
I add to dev-util/netbeans-5.5-r1.ebuild new USE flag "cnd" which installs
C/C++ package to netbeans-5.5 at emerge time.

Reproducible: Always

Steps to Reproduce:

------- Comment #1 From Sergey Belyashov 2007-01-20 11:39:49 0000 -------
Created an attachment (id=107519) [details]
dev-util/netbeans-5.5-r1.ebuild with C/C++ support

C/C++ package is distributed as InstallShield selfextracting package with
wizard. But it have some keys which I use to unpack and install from ebuild.

------- Comment #2 From Petteri Räty 2007-01-20 13:49:02 0000 -------
(In reply to comment #1)
> Created an attachment (id=107519) [edit] [details]
> dev-util/netbeans-5.5-r1.ebuild with C/C++ support
> 

It's usually better to attach patches against current ebuilds so that it's easy
to see what you changed and comment on that.

------- Comment #3 From Sergey Belyashov 2007-01-20 13:56:57 0000 -------
Created an attachment (id=107527) [details]
patch which adds support C/C++ to dev-util/netbeans-5.5-r1.ebuild

------- Comment #4 From Petteri Räty 2007-01-20 14:33:26 0000 -------
(In reply to comment #3)
> Created an attachment (id=107527) [edit] [details]
> patch which adds support C/C++ to dev-util/netbeans-5.5-r1.ebuild
> 

It would probably be possible to make this a separate ebuild too so we need
think how we want to do this. Is this open source? If so we should look into
compiling it from source. New binary ebuilds can only be added to our overlays. 

------- Comment #5 From Sergey Belyashov 2007-01-20 14:52:34 0000 -------
cnd is open source project http://cnd.netbeans.org/ 
But I cannot find source tarball there. There is only cvs access present.

It is impossible to make it as separate ebuild because installer changes
/usr/share/netbeans-5.5/etc/netbeans.clusters (add's to the end "cnd1"). This
file originally installed by netbeans ebuild.

Is it need to rewrite ebuild for fetch sources from cvs?

------- Comment #6 From Petteri Räty 2007-01-20 16:41:00 0000 -------
(In reply to comment #5)
> 
> Is it need to rewrite ebuild for fetch sources from cvs?
> 

We would package a snapshot of the CVS sources in that case.

------- Comment #7 From Sergey Belyashov 2007-01-20 18:46:06 0000 -------
Ok. I view sources and think that I cannot write ebuild to build this plugin
from sources.

------- Comment #8 From Miroslav Šulc 2007-01-21 20:08:48 0000 -------
I must have missed this bug somehow. I already created ebuild for C/C++ support
for netbeans though it is binary atm. You can find it here:
https://overlays.gentoo.org/svn/proj/java/migrated-java-experimental-overlay/dev-util/netbeans-cnd

------- Comment #9 From Miroslav Šulc 2007-01-21 20:20:05 0000 -------
Please note that netbeans-cnd ebuild needs eclass from that overlay so you
should either copy that too or add the whole overlay to your system (you can
use layman for that)

------- Comment #10 From MACHINE 2007-05-29 02:40:08 0000 -------
Feature wanted:

Some of linux users might want to use NetBeans for developing C/C++ software
ONLY, so it would be appreciated if NetBeans ebuild could have a USE flag to
let the users choose to integrate either JAVA IDE, C/C++ IDE, or both.

Thanks.

------- Comment #11 From Petteri Räty 2007-05-29 07:28:03 0000 -------
(In reply to comment #10)
> Feature wanted:
> 
> Some of linux users might want to use NetBeans for developing C/C++ software
> ONLY, so it would be appreciated if NetBeans ebuild could have a USE flag to
> let the users choose to integrate either JAVA IDE, C/C++ IDE, or both.
> 
> Thanks.
> 

I think fordfrog has something like this in the works in the java-experimental
overlay.

------- Comment #12 From Miroslav Šulc 2007-05-29 07:54:01 0000 -------
I'm working on 6.0 these days, but will try to find some time to bump 5.5 to
5.5.1 and add support for C/C++ and other extra packs. Hopefully this weekend.

------- Comment #13 From Miroslav Šulc 2007-06-03 16:01:28 0000 -------
Sergey,

please, where did you get the info about installing c++ extra pack using
setup.jar? I want as a first step install the extra packs using binary
distributions (as I do not have enough time now to play with the sources and
redistribution policy of bundled jars) but your patch works only for c++ and
not for the other extra packs.

You can find the experimental ebuild here:
https://overlays.gentoo.org/proj/java/browser/java-experimental/dev-util/netbeans/netbeans-5.5.1.ebuild

------- Comment #14 From Sergey Belyashov 2007-06-03 21:51:13 0000 -------
(In reply to comment #13)
> Sergey,
> 
> please, where did you get the info about installing c++ extra pack using
> setup.jar? I want as a first step install the extra packs using binary
> distributions (as I do not have enough time now to play with the sources and
> redistribution policy of bundled jars) but your patch works only for c++ and
> not for the other extra packs.
> 
Reverse engeneering and googling. ;-)

------- Comment #15 From Miroslav Šulc 2007-06-04 00:06:21 0000 -------
(In reply to comment #14)
> Reverse engeneering and googling. ;-)
> 

Uff, I hoped your answer will bring me easier solution :-)

------- Comment #16 From Sergey Belyashov 2007-06-04 10:07:38 0000 -------
netbeans cnd package created by Install Shield soft. It accepts some keys, for
example:
-is:tempdir </path/to/dir>
-is:extract
After extracting is possible to run wizard in unnatended mode, see my patch.

------- Comment #17 From Miroslav Šulc 2007-06-04 10:25:44 0000 -------
(In reply to comment #16)
> netbeans cnd package created by Install Shield soft. It accepts some keys, for
> example:
> -is:tempdir </path/to/dir>
> -is:extract
> After extracting is possible to run wizard in unnatended mode, see my patch.
> 

Yeah, that is exactly what I did, ie I used your patch. Unfortunately there are
two problems with it:
- it works only with c++ pack, not with the other packs
- script does not die on installation failure

I would appreciate if you have some time and will if you could help me to make
the other extra packs install too as you seem to be able to dig that info out
from the invisible :-) I also sent an email to
linux-packaging@installer.netbeans.org but no answer yet (if ever).

Maybe the solution would be obvious for you, but it's not for me.

------- Comment #18 From Sergey Belyashov 2007-06-04 10:37:59 0000 -------
At this week I have no time. But you can begin from this:
http://helpnet.installshield.com/robo/projects/is10-5universalhelplibrary/topics/commandline_options_run.htm

------- Comment #19 From Miroslav Šulc 2007-06-20 14:04:17 0000 -------
Just a side note, I added netbeans 6.0 ebuild with cnd cluster (c++ support) in
java-experimental overlay so anybody feel free to give it a try. If you need
netbeans just for c++ stuff, run 'USE="apisupport cnd harness ide nb" emerge
netbeans', otherwise you can turn on even more clusters (use flags).

------- Comment #20 From Miroslav Šulc 2007-06-20 14:06:32 0000 -------
hm, I think you should drop 'apisupport' from the use flags:
'USE="cnd harness ide nb" emerge netbeans'

------- Comment #21 From Andrea 2007-06-23 20:07:04 0000 -------
I want know when netbeans 5.5 will be release as stable version....

i things that it's time to do....i dont understand why this version stay halt
to unstable

------- Comment #22 From Petteri Räty 2007-06-23 20:16:27 0000 -------
(In reply to comment #21)
> I want know when netbeans 5.5 will be release as stable version....
> 
> i things that it's time to do....i dont understand why this version stay halt
> to unstable
> 

Yes working on that. The thing is that it has quite a few ~arch deps that must
be reviewed first.

------- Comment #23 From Miroslav Šulc 2007-08-25 17:31:26 0000 -------
Netbeans 5.5.1 with C/C++ Pack moved to tree, thanks for the hack to get C/C++
pack installed.