[32883] trunk/dports/devel/dbus/Portfile
nox at macports.org
nox at macports.org
Mon Jan 14 02:57:11 PST 2008
Revision: 32883
http://trac.macosforge.org/projects/macports/changeset/32883
Author: nox at macports.org
Date: 2008-01-14 02:57:09 -0800 (Mon, 14 Jan 2008)
Log Message:
-----------
dbus:
* Whitespace changes.
* Changed enable-tests variant name to "test" for consistency with
other ports.
Modified Paths:
--------------
trunk/dports/devel/dbus/Portfile
Modified: trunk/dports/devel/dbus/Portfile
===================================================================
--- trunk/dports/devel/dbus/Portfile 2008-01-14 10:47:52 UTC (rev 32882)
+++ trunk/dports/devel/dbus/Portfile 2008-01-14 10:57:09 UTC (rev 32883)
@@ -1,91 +1,95 @@
# $Id$
-PortSystem 1.0
-name dbus
-version 1.0.2
+
+PortSystem 1.0
+
+name dbus
+version 1.0.2
revision 2
-description A message bus system, a simple way for applications to talk to one another.
-long_description ${description}
-maintainers nomaintainer
-categories devel
-platforms darwin
+maintainers nomaintainer
+categories devel
+platforms darwin
+description A message bus system, a simple way for applications to talk to one another.
+
+long_description \
+ ${description}
+
+
homepage http://www.freedesktop.org/Software/dbus
master_sites http://dbus.freedesktop.org/releases/dbus
-checksums md5 0552a9b54beb4a044951b7cdbc8fc855 \
- sha1 2870efd6ea0b5b0d14e52195f560238a74bb1e0e \
- rmd160 d5eddfb058c4c026d4a9f091ad90abcc6e54861a
-depends_lib port:expat \
- port:libxml2
+
+checksums md5 0552a9b54beb4a044951b7cdbc8fc855 \
+ sha1 2870efd6ea0b5b0d14e52195f560238a74bb1e0e \
+ rmd160 d5eddfb058c4c026d4a9f091ad90abcc6e54861a
+
+depends_lib port:expat \
+ port:libxml2
depends_build port:pkgconfig \
- port:docbook-xml-4.1.2 \
- port:xmlto
+ port:docbook-xml-4.1.2 \
+ port:xmlto
+
configure.args --mandir=${prefix}/share/man \
- --disable-tests \
- --enable-xml-docs \
- --enable-kqueue \
- --with-dbus-daemondir=${prefix}/bin
+ --disable-tests \
+ --enable-xml-docs \
+ --enable-kqueue \
+ --with-dbus-daemondir=${prefix}/bin
-configure.cflags-append -no-cpp-precomp
+configure.cflags-append -no-cpp-precomp
configure.cflags-append -flat_namespace
-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 --system"
+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 --system"
pre-patch {
- file mkdir ${worksrcpath}/m4
- system "touch ${worksrcpath}/m4/acx_pthread.m4"
+ 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-unix.c
+ reinplace "s|ucred.h|sys/ucred.h|g" ${worksrcpath}/dbus/dbus-sysdeps-unix.c
}
+test.run yes
+test.target check
+
+pre-test {
+ if {![variant_isset test]} {
+ ui_error "test variant must be activated to enable test support"
+ return -code 1
+ }
+}
+
post-destroot {
- file mkdir ${destroot}${prefix}/share/dbus-1/services
- file mkdir ${destroot}${prefix}/var/run/dbus
- file mkdir ${destroot}${prefix}/var/lib/dbus
- file mkdir ${destroot}${prefix}/etc/dbus-1/system.d
+ file mkdir ${destroot}${prefix}/share/dbus-1/services
+ file mkdir ${destroot}${prefix}/var/run/dbus
+ file mkdir ${destroot}${prefix}/var/lib/dbus
+ file mkdir ${destroot}${prefix}/etc/dbus-1/system.d
}
destroot.keepdirs \
- ${destroot}${prefix}/share/dbus-1/services \
- ${destroot}${prefix}/var/run/dbus \
- ${destroot}${prefix}/var/lib/dbus \
- ${destroot}${prefix}/etc/dbus-1/system.d
+ ${destroot}${prefix}/share/dbus-1/services \
+ ${destroot}${prefix}/var/run/dbus \
+ ${destroot}${prefix}/var/lib/dbus \
+ ${destroot}${prefix}/etc/dbus-1/system.d
pre-activate {
- addgroup messagebus
- adduser messagebus gid=[existsgroup messagebus] realname=Message\ Bus
+ addgroup messagebus
+ adduser messagebus gid=[existsgroup messagebus] realname=Message\ Bus
}
post-activate {
- file attributes ${prefix}/var/run/dbus -group messagebus -owner messagebus
- system "${prefix}/bin/dbus-uuidgen --ensure"
+ file attributes ${prefix}/var/run/dbus -group messagebus -owner messagebus
+ system "${prefix}/bin/dbus-uuidgen --ensure"
}
-variant enable_tests {
- configure.args-delete --disable-tests
- configure.args-append --enable-tests
- test.run yes
- test.target check
+variant test {
+ configure.args-delete --disable-tests
+ configure.args-append --enable-tests
}
-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 {
- reinplace "s|libtoolize|glibtoolize|g" ${worksrcpath}/autogen.sh
- system "cd ${worksrcpath} && ./autogen.sh"
- }
-}
-
platform darwin 7 {
- configure.args-delete --enable-kqueue
+ configure.args-delete --enable-kqueue
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080114/bdbdaaab/attachment.html
More information about the macports-changes
mailing list