gnome/anjuta: Added anjuta-2.28.2.0.

slackware-14.2
Damien Goutte-Gattat 13 years ago
parent 85bfa0013e
commit f15daa5d59
  1. 46
      gnome/anjuta/anjuta-2.28.2.0-gtk-activatable.patch
  2. 1
      gnome/anjuta/anjuta-2.28.2.0.tar.bz2.sha1
  3. 124
      gnome/anjuta/anjuta.SlackBuild
  4. 12
      gnome/anjuta/slack-desc

@ -0,0 +1,46 @@
diff -Naur anjuta-2.28.2.0.orig/src/anjuta-app.c anjuta-2.28.2.0/src/anjuta-app.c
--- anjuta-2.28.2.0.orig/src/anjuta-app.c 2010-01-31 16:16:24.000000000 +0100
+++ anjuta-2.28.2.0/src/anjuta-app.c 2010-05-15 19:22:49.421613506 +0200
@@ -57,24 +57,6 @@
static GtkToolbarStyle style = -1;
static void
-menu_item_select_cb (GtkMenuItem *proxy,
- AnjutaApp *app)
-{
- GtkAction *action;
- char *message;
-
- action = gtk_activatable_get_related_action (GTK_ACTIVATABLE (proxy));
- g_return_if_fail (action != NULL);
-
- g_object_get (G_OBJECT (action), "tooltip", &message, NULL);
- if (message)
- {
- anjuta_status_push (app->status, "%s", message);
- g_free (message);
- }
-}
-
-static void
menu_item_deselect_cb (GtkMenuItem *proxy,
AnjutaApp *app)
{
@@ -90,8 +72,6 @@
{
if (GTK_IS_MENU_ITEM (proxy))
{
- g_signal_connect (proxy, "select",
- G_CALLBACK (menu_item_select_cb), app);
g_signal_connect (proxy, "deselect",
G_CALLBACK (menu_item_deselect_cb), app);
}
@@ -106,8 +86,6 @@
if (GTK_IS_MENU_ITEM (proxy))
{
g_signal_handlers_disconnect_by_func
- (proxy, G_CALLBACK (menu_item_select_cb), app);
- g_signal_handlers_disconnect_by_func
(proxy, G_CALLBACK (menu_item_deselect_cb), app);
}
}

@ -0,0 +1 @@
ea008d7d55d0c7d075e5c3cf028607ce58a9a473 anjuta-2.28.2.0.tar.bz2

@ -0,0 +1,124 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2010 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest anjuta sourcecode is available at: <http://anjuta.org/>.
#
# Depends: gnome/gconf, gnome/devhelp, xap/glade3, gnome/libgda, l/gdl
# Depends: d/autogen
# Recommends: l/gtksourceview
# Source package infos
NAMESRC=${NAMESRC:-anjuta}
VERSION=${VERSION:-2.28.2.0} # Latest 2.30.1.0 requires Gtk+ >= 2.17
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-http://ftp.gnome.org/pub/GNOME/sources/anjuta/2.28/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-anjuta}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
# Sanity checks
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exist or is not a directory!"
exit 1
fi
# Compilation flags
LIBDIRSUFFIX=""
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
LIBDIRSUFFIX="64"
;;
*)
CPUOPT="-O2"
;;
esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
# GTK_ACTIVATABLE has been introduced in Gtk+ 2.16
patch -p 1 < $CWD/anjuta-2.28.2.0-gtk-activatable.patch
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--sysconfdir=/etc \
--mandir=/usr/man \
--docdir=/usr/doc/$NAME \
--enable-gtk-doc \
--disable-scrollkeeper
make -j $JOBS
make install-strip DESTDIR=$PKG
# Compress man pages
find $PKG/usr/man -type f -exec gzip -9 {} \;
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

@ -0,0 +1,12 @@
|-----handy-ruler-------------------------------------------------------|
anjuta: anjuta (integrated development environment for GNOME)
anjuta:
anjuta: Anjuta DevStudio is a versatile Integrated Development Environment on
anjuta: GNOME Desktop Environment and features a number of advanced
anjuta: programming facilities. These include project management, application
anjuta: and class wizards, an on-board interactive debugger, powerful source
anjuta: editor, syntax highlighting, intellisense autocompletions, symbol
anjuta: nabigation, version controls, integrated GUI designing and other
anjuta: tools.
anjuta:
anjuta:
Loading…
Cancel
Save