[144464] trunk/dports/gnome/gnotime

devans at macports.org devans at macports.org
Sat Jan 9 08:49:15 PST 2016


Revision: 144464
          https://trac.macports.org/changeset/144464
Author:   devans at macports.org
Date:     2016-01-09 08:49:15 -0800 (Sat, 09 Jan 2016)
Log Message:
-----------
gnotime: complete update to version 2.4.0, dependencies, configuration, add post-activate processing.

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

Added Paths:
-----------
    trunk/dports/gnome/gnotime/files/
    trunk/dports/gnome/gnotime/files/patch-configure.in.diff
    trunk/dports/gnome/gnotime/files/patch-src-main.c.diff

Modified: trunk/dports/gnome/gnotime/Portfile
===================================================================
--- trunk/dports/gnome/gnotime/Portfile	2016-01-09 16:45:30 UTC (rev 144463)
+++ trunk/dports/gnome/gnotime/Portfile	2016-01-09 16:49:15 UTC (rev 144464)
@@ -2,6 +2,7 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           active_variants 1.1
 
 name                gnotime
 version             2.4.0
@@ -22,18 +23,51 @@
 checksums           rmd160  a0963cad9547c9b25f2ee6280c211a7fcb87e4d2 \
                     sha256  a1bf1389829e5795016cc49810c8be80f9bbccb5d56e97f00efb0718559a539b
 
-depends_build       port:pkgconfig
+depends_build       port:pkgconfig \
+                    port:intltool \
+                    port:gnome-common \
+                    port:autoconf \
+                    port:automake \
+                    port:libtool
 
-depends_lib         bin:guile:guile \
-                    port:libgtkhtml \
+depends_lib         port:desktop-file-utils \
+                    port:gconf \
+                    port:gtk2 \
+                    port:guile \
+                    port:libglade2 \
                     port:libgnome \
-                    port:libgnomeui
+                    port:libgnomeui \
+                    port:libgtkhtml3 \
+                    port:libxml2 \
+                    port:qof \
+                    port:rarian \
+                    port:xorg-libX11 \
+                    port:xorg-libXScrnSaver
 
-configure.cppflags-append \
-                    "-L${prefix}/lib"
+depends_run         port:yelp
 
-configure.args      --x-includes=${prefix}/include \
+patchfiles          patch-configure.in.diff \
+                    patch-src-main.c.diff
+
+# only builds with X11
+
+require_active_variants gtk2 x11
+
+# reconfigure using distributed autogen.sh for intltool 0.51 compatibility
+
+configure.cmd       ./autogen.sh
+
+configure.args      --enable-compile-warnings=minimum \
+                    --disable-silent-rules \
+                    --x-includes=${prefix}/include \
                     --x-libraries=${prefix}/lib
 
+post-activate {
+    system "${prefix}/bin/scrollkeeper-update"
+    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
+    system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
+        gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
+}
+
 livecheck.url       http://sourceforge.net/projects/gttr/files/
 livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"

Added: trunk/dports/gnome/gnotime/files/patch-configure.in.diff
===================================================================
--- trunk/dports/gnome/gnotime/files/patch-configure.in.diff	                        (rev 0)
+++ trunk/dports/gnome/gnotime/files/patch-configure.in.diff	2016-01-09 16:49:15 UTC (rev 144464)
@@ -0,0 +1,30 @@
+--- configure.in.orig	2016-01-09 08:03:05.000000000 -0800
++++ configure.in	2016-01-09 08:04:23.000000000 -0800
+@@ -151,18 +151,18 @@
+ 
+ 
+ dnl *************************************************************
+-dnl Check for DBUS
++dnl Check for DBUS (broken, disable)
+ dnl *************************************************************
+ 
+-PKG_CHECK_MODULES(LIBDBUS, dbus-glib-1 >= $LIBDBUS_REQUIRED_MIN,
+-[
+-AC_SUBST(LIBDBUS_CFLAGS)
+-AC_SUBST(LIBDBUS_LIBS)
+-WITH_DBUS=1
+-],
+-[
++dnl PKG_CHECK_MODULES(LIBDBUS, dbus-glib-1 >= $LIBDBUS_REQUIRED_MIN,
++dnl [
++dnl AC_SUBST(LIBDBUS_CFLAGS)
++dnl AC_SUBST(LIBDBUS_LIBS)
++dnl WITH_DBUS=1
++dnl ],
++dnl [
+ WITH_DBUS=0
+-])
++dnl ])
+ AC_SUBST(WITH_DBUS)
+ 
+ 

Added: trunk/dports/gnome/gnotime/files/patch-src-main.c.diff
===================================================================
--- trunk/dports/gnome/gnotime/files/patch-src-main.c.diff	                        (rev 0)
+++ trunk/dports/gnome/gnotime/files/patch-src-main.c.diff	2016-01-09 16:49:15 UTC (rev 144464)
@@ -0,0 +1,10 @@
+--- src/main.c.orig	2016-01-09 07:56:16.000000000 -0800
++++ src/main.c	2016-01-09 07:56:33.000000000 -0800
+@@ -496,7 +496,6 @@
+ 	}
+ 
+ 	post_read_data ();
+-	g_free (xml_filepath);
+ 	return;
+ }
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160109/888269a5/attachment-0001.html>


More information about the macports-changes mailing list