[21313] trunk/dports/devel/dbus/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sat Jan 20 03:20:21 PST 2007


Revision: 21313
          http://trac.macosforge.org/projects/macports/changeset/21313
Author:   rhwood at macports.org
Date:     2007-01-20 03:20:18 -0800 (Sat, 20 Jan 2007)

Log Message:
-----------
Upgrade to version 1.0.2

Modified Paths:
--------------
    trunk/dports/devel/dbus/Portfile

Modified: trunk/dports/devel/dbus/Portfile
===================================================================
--- trunk/dports/devel/dbus/Portfile	2007-01-20 11:14:51 UTC (rev 21312)
+++ trunk/dports/devel/dbus/Portfile	2007-01-20 11:20:18 UTC (rev 21313)
@@ -1,34 +1,80 @@
 # $Id$
 PortSystem 1.0
 name		dbus
-version		0.61
-revision	3	
+version		1.0.2
+revision		1
 description	A message bus system, a simple way for applications to talk to one another.
 long_description	${description}
-maintainers	macports-dev at lists.macosforge.org
+maintainers	rhwood at macports.org
 categories	devel
-platforms	darwin 
+platforms	darwin
 homepage        http://www.freedesktop.org/Software/dbus
-master_sites    http://dbus.freedesktop.org/releases/
-checksums	md5 cfd4f26004e4304e0dace4d82894e50b	 \
-		sha1 fdddc695dad64974fb4138fcb04a77a66f1f47f8 \
-		rmd160 67306e1a632c1986460e8ead311ae642447cdcc3
-depends_lib	port:glib2 port:libxml2
-configure.args	--mandir=${prefix}/share/man --disable-mono --disable-monodocs \
-		--disable-tests --enable-glib
+master_sites    http://dbus.freedesktop.org/releases/dbus
+checksums	md5 0552a9b54beb4a044951b7cdbc8fc855	 \
+			sha1 2870efd6ea0b5b0d14e52195f560238a74bb1e0e \
+			rmd160 d5eddfb058c4c026d4a9f091ad90abcc6e54861a
+depends_lib	port:expat port:libxml2
+depends_build	port:pkgconfig
+configure.args	--mandir=${prefix}/share/man \
+		--enable-tests \
+		--with-dbus-daemondir=${prefix}/bin
+	
 configure.env   CPPFLAGS="-I${prefix}/include -L${prefix}/lib" \
                 CFLAGS="-no-cpp-precomp -flat_namespace -L${prefix}/lib"
+
+startupitem.create	yes
+startupitem.name	dbus
+startupitem.init	XDG_DATA_DIRS=${prefix}/share
+startupitem.start	${prefix}/bin/dbus-daemon --system
+startupitem.stop	kill `cat ${prefix}/var/run/dbus/pid`
+startupitem.restart	"kill `cat ${prefix}/var/run/dbus/pid` ; ${prefix}/bin/dbus-daemon"
+
+pre-patch {
+	file mkdir ${worksrcpath}/m4
+	system "touch ${worksrcpath}/m4/acx_pthread.m4"
+}
+
 pre-build {
-	reinplace "s|ucred.h|sys/ucred.h|g" ${worksrcpath}/dbus/dbus-sysdeps.c
+	reinplace "s|ucred.h|sys/ucred.h|g" ${worksrcpath}/dbus/dbus-sysdeps-unix.c
 }
+
 post-destroot {
 	file mkdir ${destroot}${prefix}/share/dbus-1/services
+	file mkdir ${destroot}${prefix}/var/run/dbus
+	file mkdir ${destroot}${prefix}/etc/dbus-1/system.d
 }
-destroot.keepdirs ${destroot}${prefix}/share/dbus-1/services
-variant with_qt {
-	depends_lib-append	port:qt4
+
+destroot.keepdirs \
+	${destroot}${prefix}/share/dbus-1/services \
+	${destroot}${prefix}/var/run/dbus \
+	${destroot}${prefix}/etc/dbus-1/system.d
+
+pre-activate {
+	addgroup messagebus
+	adduser messagebus gid=[existsgroup messagebus]
 }
-variant with_mono {
-	depends_lib-append	port:mono
-	configure.args-delete	--disable-mono
+
+post-activate {
+	file attributes ${prefix}/var/run/dbus -group messagebus -owner messagebus
 }
+
+variant enable_tests {
+	configure.args-delete	--disable-tests
+	configure.args-append	--enable-tests
+	test.run		yes
+	test.target		check
+}
+
+variant	 devel {
+	fetch.type	cvs
+	cvs.root		:pserver:anoncvs at anoncvs.freedesktop.org:/cvs/dbus
+	cvs.module	dbus
+	cvs.tag		HEAD
+	version		HEAD
+	worksrcdir	${cvs.module}
+	pre-configure	{
+		cd ${worksrcpath}
+		reinplace "s|libtoolize|glibtoolize|g" ${worksrcpath}/autogen.sh
+		system "./autogen.sh"
+	}
+}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070120/acb8e820/attachment.html


More information about the macports-changes mailing list