# -*- 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 PortGroup muniversal 1.0 name anjuta version 2.32.1.1 revision 1 license GPL-2 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}/ use_bzip2 yes checksums rmd160 2f1ae061e75761e60e0a83943ec1e31ee8b43cbf \ sha256 f2b67609890a45d907ab5b42fd5963ba7cb41193d4a0dd2543584eca2ec5db58 depends_build port:pkgconfig \ port:intltool \ port:gnome-common \ port:gnome-doc-utils \ port:gtk-doc \ port:p5.12-locale-gettext depends_lib port:autogen \ port:gconf \ port:gdl \ port:libgda4 \ port:libunique \ port:vte depends_run port:desktop-file-utils \ port:rarian \ port:shared-mime-info \ port:gnome-settings-daemon \ port:epiphany \ port:yelp \ port:xdg-utils patchfiles patch-plugins-project-wizard-autogen.c.diff \ patch-configure.in.diff \ patch-disable-python.diff post-patch { reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.12|" ${worksrcpath}/scripts/builder2schema.pl } use_autoreconf yes autoreconf.args -fvi configure.perl ${prefix}/bin/perl5.12 configure.args --enable-static \ --enable-introspection=no \ --disable-scrollkeeper \ --disable-schemas-install \ --disable-silent-rules \ --disable-graphviz \ --disable-plugin-devhelp \ --disable-plugin-glade \ --disable-plugin-sourceview \ --disable-plugin-subversion \ --disable-vala # Buggy inline code, -std=gnu99 (eg, clang) complain configure.cflags-append -std=gnu89 variant devhelp description {Enable devhelp plugin support} { configure.args-delete --disable-plugin-devhelp depends_lib-append port:devhelp } variant sourceview description {Enable gtksourceview editor plugin support instead of scintilla} { configure.args-delete --disable-plugin-sourceview depends_lib-append port:gtksourceview2 } variant graphviz description {Enable class inheritance plugin support using graphviz} { configure.args-delete --disable-graphviz depends_lib-append path:bin/dot:graphviz } 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:apr \ port:apr-util \ port:neon \ port:subversion } variant glade description {Enable glade-3 plugin support} { configure.args-delete --disable-plugin-glade depends_lib-append port:glade3 } variant vala description {Enable vala support} { configure.args-delete --disable-vala depends_lib-append port:vala } post-activate { system "scrollkeeper-update" system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor" system "${prefix}/bin/update-desktop-database ${prefix}/share/applications" system "${prefix}/bin/update-mime-database ${prefix}/share/mime" system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \ gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas" } livecheck.type gnome