[Lunar-commits] <moonbase> udev: make gobject-introspection an optional depend.

Florin Braescu florin at lunar-linux.org
Sun Mar 14 09:37:29 CET 2010


commit 5945516e54157fc02ce22a3a78e7254fa39132e0
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Sun Mar 14 10:37:29 2010 +0200

    udev: make gobject-introspection an optional depend.
---
 filesys/udev/BUILD   |   17 +++++++++--------
 filesys/udev/DEPENDS |    6 +++++-
 2 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/filesys/udev/BUILD b/filesys/udev/BUILD
index bd6c886..21bbe68 100644
--- a/filesys/udev/BUILD
+++ b/filesys/udev/BUILD
@@ -17,9 +17,10 @@
     # create static nodes dir if missing
     mkdir -p /lib/udev/devices  &&
 
-    patch_it $SOURCE2 0 &&
-    sedit "/^pkgconfigdir/s;.*;pkgconfigdir = /usr/lib/pkgconfig;" Makefile.in &&
-    sedit '/$(DESTDIR)$(prefix)\/lib\/ConsoleKit/s;$(DESTDIR)$(prefix);/usr;g' Makefile.in &&
+    patch_it $SOURCE2 0  &&
+    sedit "/^pkgconfigdir/s;.*;pkgconfigdir = /usr/lib/pkgconfig;" Makefile.in  &&
+    sedit '/$(DESTDIR)$(prefix)\/lib\/ConsoleKit/s;$(DESTDIR)$(prefix);/usr;g' Makefile.in  &&
+    sedit "s:enable_introspection=yes:enable_introspection=no:" configure  &&
 
     find $SOURCE_DIRECTORY/rules -type f -name '*.rules' -exec sed -i 's/uucp/dialout/g' {} \;  &&
 
@@ -32,11 +33,11 @@
        rm -f /etc/udev/rules.d/70-persistent-{cd,net}.rules
     fi  &&
 
-    ./configure  --prefix=""               \
-                 --libexecdir=/lib/udev    \
-                 --mandir=/usr/share/man   \
-                 --includedir=/usr/include \
-                 --datarootdir=/usr/share  \
+    ./configure  --prefix=""                \
+                 --libexecdir=/lib/udev     \
+                 --mandir=/usr/share/man    \
+                 --includedir=/usr/include  \
+                 --datarootdir=/usr/share   \
                  --sysconfdir=/etc         &&
     sedit '/^GIRTYPELIBDIR/s;\${exec_prefix};/usr;' Makefile  &&
     default_make  &&
diff --git a/filesys/udev/DEPENDS b/filesys/udev/DEPENDS
index a20937f..59af1f9 100644
--- a/filesys/udev/DEPENDS
+++ b/filesys/udev/DEPENDS
@@ -2,7 +2,11 @@ depends lunar-init
 depends sysfsutils
 depends gperf
 depends libusb-compat
-depends gobject-introspection
+
+optional_depends "gobject-introspection"  \
+                 "" \
+                 "--disable-introspection"  \
+                 "for introspection support"
 
 optional_depends "acl"      "" "" "to build acl helpful extras"
 optional_depends "pciutils" "" "" "to build usb helpful extras"


More information about the Lunar-commits mailing list