Search:  
Gentoo Wiki

Anjuta

This page is a candidate for deletion 
Reason given: later version available in portage without the need of preparations
If you disagree with its deletion, please explain why on its discussion page.
If you intend to fix it, please remove this notice, but do not remove this notice from articles that you have created yourself.
Make sure no other pages link here and check the page's history before deleting.
This article is part of the HOWTO series.
Installation Kernel & Hardware Networks Portage Software System X Server Gaming Non-x86 Emulators Misc

Contents

Introduction

Anjuta is an all around great C/C++ IDE for gnome. It also supports various other programming languages. In this HOWTO, I will explain how I installed version 2.0.2, the new not-yet-in-portage alpha version.

Note: There is a pending bug for getting Anjuta2 into portage. Note: Anjuta-2.1.0_beta1 is in Portage as of 2007-01-30.

Note also that not all parts will work, creating gtkmm applications might not work due to libglademm not being updated. (Correct me if im wrong -xFallenAngel)

Step 1 : Portage overlay

Before we can install Anjuta2 (2.0.2), we need to create a portage overlay containing Anjuta2 (no longer need to add most of its dependencies as they were added to portage).

mkdir /usr/local/portage/dev-util/anjuta/files -p

Now we obtain the necessary ebuild and patches

wget -O /usr/local/portage/dev-util/anjuta/anjuta-2.0.2.ebuild \
 "http://bugs.gentoo.org/attachment.cgi?id=98380"
wget -O /usr/local/portage/dev-util/anjuta/files/2.0.2-install-sandbox.patch \
 "http://bugs.gentoo.org/attachment.cgi?id=86898"
wget -O /usr/local/portage/dev-util/anjuta/files/glade.patch \
 "http://bugs.gentoo.org/attachment.cgi?id=98379"

Note: these attachments may be out of date. Check for newer versions in the corresponding bugs.

Digest the ebuild

ebuild /usr/local/portage/dev-util/anjuta/anjuta-2.0.2.ebuild digest


Note: I had to set PORTDIR_OVERLAY="/usr/local/portage" (in /etc/make.conf) in order to get the digesting to work!
AreJ 13:37, 17 December 2005 (GMT)

Stap 2 : Package masks

Now we need to take care of the package masks

File: /etc/portage/package.keywords
dev-util/anjuta ~x86
dev-libs/gdl ~x86 # Needed by anjuta-2.0.2
dev-libs/gnome-build ~x86 # Needed by anjuta-2.0.2
sys-devel/autogen ~x86 # Needed by anjuta-2.0.2
dev-util/glade ~x86  #needed by anjuta-2.0.2

Even if anjuta uses glade in order to edit the GUI's of the projects opened into it, seems that the new version of glade broke a bit the anjuta's glade plugin, which runs embedded inside anjuta.We must install anjuta without the glade plugin support until someone will fix this issue, hopefully as soon as possible.(I've noticed that the cvs version of anjuta doesn't have this issue, but now we're installing 2.0.2 not the one from cvs.)

echo "dev-util/anjuta -glade" >> /etc/portage/package.use 

Even if you do not add any of scintilla and sourceview, the ebuild seems to take care to include the scintilla text editor automatically. I personally use scintilla and don't change anything here, but you could install them both and select one of them at runtime, when you open a source file. To add support for both of them issue the following command:

echo "dev-util/anjuta glade scintilla sourceview" >> /etc/portage/package.use

Stap 3 : Emerge

Now is the long part, lets emerge anjuta Note: The package's gdl and gnome-build need the "gnome" USE flag or anjuta will complain gdl-gnome-1.0 not found

emerge -av anjuta

you should get something like this :

Code: emerge -av anjuta
These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] gnome-extra/gdl-0.6.1  -debug -doc 0 kB [1]
[ebuild  N    ] dev-util/gnome-build-0.1.3  -debug -doc 0 kB [1]
[ebuild  N    ] gnome-base/gnome-common-2.8.0  -debug -doc 57 kB
[ebuild  N    ] dev-util/glade-3.0.1  -debug -doc +gnome 0 kB [1]
[ebuild  N    ] www-client/mozilla-1.7.8-r1  +crypt -debug +gnome -ipv6 +java -ldap -mozcalendar -mozdevelop -moznocompose -moznoirc -moznomail -moznoxft -mozsvg -mozxmlterm -postgres +ssl +truetype -xinerama -xprint 0 kB
[ebuild  N    ] dev-util/devhelp-0.10  -debug +firefox +zlib 0 kB
[ebuild  N    ] dev-util/guile-1.6.7  2,968 kB
[ebuild  N    ] sys-devel/autogen-5.7.1  1,195 kB
[ebuild  N   ] dev-util/anjuta-2.0.2 -debug -doc -glade -inherit-graph -subversion 0 kB [1]

Total size of downloads: 4,221 kB
Portage overlays:
 [1] /usr/local/portage

Do you want me to merge these packages? [Yes/No]

All you have to do now is accept and enjoy anjuta2 :-)

Conclusion

Anjuta2 is really great! I hope that it will go stable soon and be put in portage.
I hope that I did not make any mistakes, if I did then please feel free to edit this HOWTO.

High 10:48, 16 Jul 2005 (GMT)

Updated to anjuta-2.0.2 by
Grzegorz Dymarek 20:26, 17 May 2006 (GMT)

Updated with some needed ~x86 packages for 2.0.2
Raymond den Ouden 16:52, 7 September 2006 (GMT)

Removed some unneeded ~x86 packages for 2.0.2, and the links pointing to the ebuilds where updated.
Paskov 00:54, 25 September 2006 (GTM+3)

Retrieved from "http://www.gentoo-wiki.info/Anjuta"

Last modified: Sun, 03 Aug 2008 11:09:00 +0000 Hits: 17,915