[92760] trunk/dports/devel/dbus/Portfile
pixilla at macports.org
pixilla at macports.org
Sat May 5 16:08:43 PDT 2012
Revision: 92760
https://trac.macports.org/changeset/92760
Author: pixilla at macports.org
Date: 2012-05-05 16:08:42 -0700 (Sat, 05 May 2012)
Log Message:
-----------
devel/dbus:
- The startupitem.install keyword does not exist in MacPorts < 2.1
so set startupitem.install if it does not exist.
- Set default variants taking the old no_startupitem variant into consideration.
- Uncomment ${startupitem.install} tests.
- Closes #34343
Modified Paths:
--------------
trunk/dports/devel/dbus/Portfile
Modified: trunk/dports/devel/dbus/Portfile
===================================================================
--- trunk/dports/devel/dbus/Portfile 2012-05-05 22:56:25 UTC (rev 92759)
+++ trunk/dports/devel/dbus/Portfile 2012-05-05 23:08:42 UTC (rev 92760)
@@ -45,6 +45,17 @@
--with-test-socket-dir=/tmp \
--disable-tests
+# The startupitem.install keyword does not exist in MacPorts < 2.1.
+if {![info exists startupitem.install]} {
+ set startupitem.install yes
+}
+# Set default variants taking the old no_startupitem variant into consideration.
+if {[variant_isset no_startupitem]} {
+ default_variants -startupitem
+} else {
+ default_variants +startupitem
+}
+
pre-configure {
# Value must be set in pre-configure because dbus_user may change in variant.
configure.args-append --with-dbus-user=${dbus_user}
@@ -127,8 +138,8 @@
close ${plist}
- if { [variant_isset startupitem]} {
- #&& ${startupitem.install} != "no" } {
+ if { [variant_isset startupitem]
+ && ${startupitem.install} != "no" } {
xinstall -d -m 0755 ${destroot}${startup_root}/Library/LaunchDaemons
xinstall -d -m 0755 ${destroot}${startup_root}/Library/LaunchAgents
ln -s ${plistFl} ${destroot}${startup_root}/Library/LaunchDaemons
@@ -178,8 +189,8 @@
variant startupitem description {Install startup files.} {}
-if { [variant_isset startupitem]} {
-#&& ${startupitem.install} != "no" } {
+if { [variant_isset startupitem]
+&& ${startupitem.install} != "no" } {
notes "############################################################################
# Startup items have been generated that will aid in
# starting ${name} with launchd. They are disabled
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120505/507473ec/attachment.html>
More information about the macports-changes
mailing list