[52553] trunk/dports/gnome/anjuta

devans at macports.org devans at macports.org
Thu Jun 18 13:39:55 PDT 2009


Revision: 52553
          http://trac.macports.org/changeset/52553
Author:   devans at macports.org
Date:     2009-06-18 13:39:55 -0700 (Thu, 18 Jun 2009)
Log Message:
-----------
anjuta: update to current version from old outdated 1.2.4a, closes #19941.

  * take maintainership openmaintainer
  * update to version 2.26.2.0
  * update dependencies, configuration
  * add variants to support
    - devhelp plugin
    - glade plugin
    - graphviz (class inheritance) plugin
    - gtksourceview (instead of default scintilla) editor plugin
    - subversion plugin
  * update scrollkeeper and gconf schema databases post activate

Modified Paths:
--------------
    trunk/dports/gnome/anjuta/Portfile

Added Paths:
-----------
    trunk/dports/gnome/anjuta/files/patch-libanjuta-anjuta-launcher.c.diff
    trunk/dports/gnome/anjuta/files/patch-libanjuta-anjuta-utils.c.diff

Modified: trunk/dports/gnome/anjuta/Portfile
===================================================================
--- trunk/dports/gnome/anjuta/Portfile	2009-06-18 20:10:25 UTC (rev 52552)
+++ trunk/dports/gnome/anjuta/Portfile	2009-06-18 20:39:55 UTC (rev 52553)
@@ -1,29 +1,92 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem          1.0
-name                anjuta
-version             1.2.4a
-categories          gnome devel
-maintainers         nomaintainer
-description         A gnome ide.
-long_description    ${description}
+PortSystem      1.0
 
-platforms           darwin 
+name            anjuta
+version         2.26.2.0
+set branch      [join [lrange [split ${version} .] 0 1] .]
+description     A GNOME/GTK IDE
+long_description        ${description}
+maintainers     devans openmaintainer
+categories      gnome devel
+platforms       darwin
+homepage        http://anjuta.sourceforge.net/
+master_sites    gnome:sources/${name}/${branch}/
 
-homepage            http://anjuta.sourceforge.net/
-master_sites        sourceforge
+checksums       md5     16435dc99012e9799525e1fbdda35e79 \
+                sha1    b8d438f1938a8021143e6c410d61a4dc52fbdae7 \
+                rmd160  c612ff9515ebeae6a82b49285d40049f454b10dd
 
-checksums           md5 7e6af289b4bfd1ec2ca72e2017efc4d3
+patchfiles      patch-libanjuta-anjuta-launcher.c.diff \
+                patch-libanjuta-anjuta-utils.c.diff
 
-depends_lib         lib:libzvt-2:libzvt lib:libvte:vte lib:libpcreposix:pcre \
-                    lib:libgnomeprintui-2.2:libgnomeprintui
+depends_build   port:pkgconfig \
+                port:intltool \
+                port:p5-xml-parser \
+                port:gnome-doc-utils \
+                port:gtk-doc
 
-post-extract {
-   reinplace "s|-lutil||g" ${worksrcpath}/src/Makefile.in
+depends_lib     port:autogen \
+                port:gconf \
+                port:gdl \
+                port:libgda4 \
+                port:libunique \
+                port:vte
+
+post-patch {
+        reinplace "s|/usr/bin/perl|${prefix}/bin/perl|" ${worksrcpath}/scripts/glade2schema.pl
 }
 
-patchfiles          patch-parser.h patch-launcher.c
+configure.args  --enable-static \
+                --disable-scrollkeeper \
+                --disable-schemas-install \
+                --disable-plugin-devhelp \
+                --disable-plugin-glade \
+                --disable-graphviz \
+                --disable-plugin-sourceview \
+                --disable-plugin-valgrind \
+                --disable-plugin-subversion
 
-configure.cppflags-append   "-L${prefix}/lib"
-configure.cflags-append     "-no-cpp-precomp -L${prefix}/lib" 
+variant devhelp description {Enable devhelp plugin support} {
+                configure.args-delete   --disable-plugin-devhelp
+                depends_lib-append      port:devhelp
+}
 
+variant glade description {Enable glade plugin support} {
+                configure.args-delete   --disable-plugin-glade
+                depends_lib-append      port:glade3
+}
+
+variant graphviz description {Enable class inheritance plugin support using graphviz} {
+                configure.args-delete   --disable-graphviz
+                depends_lib-append      port:graphviz
+}
+
+variant sourceview description {Enable gtksourceview editor plugin support instead of scintilla} {
+                configure.args-append   --disable-plugin-scintilla
+                configure.args-delete   --disable-plugin-sourceview
+                depends_lib-append      port:gtksourceview2
+}
+
+variant subversion description {Enable subversion plugin support} {
+                configure.args-delete   --disable-plugin-subversion
+                configure.args-append   --with-subversion-dir=${prefix} \
+                                        --with-svn-include=${prefix}/include/subversion-1 \
+                                        --with-svn-lib=${prefix}/lib
+                depends_lib-append      port:subversion
+}
+
+post-destroot {
+        system "cd ${destroot}${prefix}/lib/anjuta && ln -s libfile-manager.dylib libfile-manager.so"
+}
+
+post-activate {
+        system "scrollkeeper-update"
+        system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
+             gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
+}
+
+livecheck.check regex
+livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
+livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}

Added: trunk/dports/gnome/anjuta/files/patch-libanjuta-anjuta-launcher.c.diff
===================================================================
--- trunk/dports/gnome/anjuta/files/patch-libanjuta-anjuta-launcher.c.diff	                        (rev 0)
+++ trunk/dports/gnome/anjuta/files/patch-libanjuta-anjuta-launcher.c.diff	2009-06-18 20:39:55 UTC (rev 52553)
@@ -0,0 +1,11 @@
+--- libanjuta/anjuta-launcher.c.orig	2009-03-09 13:00:09.000000000 -0700
++++ libanjuta/anjuta-launcher.c	2009-03-09 13:03:01.000000000 -0700
+@@ -38,7 +38,7 @@
+ 
+ #if defined(__FreeBSD__)
+ #  include <libutil.h>
+-#elif defined(__OpenBSD__) || defined(__NetBSD__)
++#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
+ #  include <util.h>
+ #elif !defined(__sun)
+ #  include <pty.h>

Added: trunk/dports/gnome/anjuta/files/patch-libanjuta-anjuta-utils.c.diff
===================================================================
--- trunk/dports/gnome/anjuta/files/patch-libanjuta-anjuta-utils.c.diff	                        (rev 0)
+++ trunk/dports/gnome/anjuta/files/patch-libanjuta-anjuta-utils.c.diff	2009-06-18 20:39:55 UTC (rev 52553)
@@ -0,0 +1,11 @@
+--- libanjuta/anjuta-utils.c.orig	2009-03-09 13:17:30.000000000 -0700
++++ libanjuta/anjuta-utils.c	2009-03-09 13:19:13.000000000 -0700
+@@ -1245,7 +1245,7 @@
+ 	return local_path;
+ }
+ 
+-#ifndef HAVE_LIBUTIL
++#if !defined(HAVE_LIBUTIL) && !defined(__APPLE__)
+ #include <grp.h>
+ 
+ static int ptym_open (char *pts_name);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090618/bcb42a08/attachment.html>


More information about the macports-changes mailing list