[Lunar-commits] <moonbase> qt4: fix the XDG_DATA_DIRS if it's not already set

Zachary McGrew zmcgrew at lunar-linux.org
Thu Dec 30 00:50:33 CET 2010


commit d0ddb19a0213475793b3545bed24e0c139feff0a
Author: Zachary McGrew <zmcgrew at lunar-linux.org>
Date:   Wed Dec 8 01:20:49 2010 -0800

    qt4: fix the XDG_DATA_DIRS if it's not already set
    
    gtk+-2 doesnt explicitly set this, and just expects /usr/share
---
 qt4-apps/qt4/BUILD |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/qt4-apps/qt4/BUILD b/qt4-apps/qt4/BUILD
index 17801fc..44b54d8 100644
--- a/qt4-apps/qt4/BUILD
+++ b/qt4-apps/qt4/BUILD
@@ -56,7 +56,7 @@
 
   echo export QTDIR=\"/usr\" > $SOURCE_DIRECTORY/qt4.rc  &&
   echo export PATH=\"'${PATH}':'${QTDIR}'/bin\" >> $SOURCE_DIRECTORY/qt4.rc  &&
-  echo export XDG_DATA_DIRS=\"'${XDG_DATA_DIRS}':/usr/share/\" >> $SOURCE_DIRECTORY/qt4.rc &&
+  echo export XDG_DATA_DIRS=\"'${XDG_DATA_DIRS:-/usr/share}':/usr/share/qt4\" >> $SOURCE_DIRECTORY/qt4.rc &&
   echo export PKG_CONFIG_PATH=\"'${PKG_CONFIG_PATH}':/usr/lib/qt4/pkgconfig\" >> $SOURCE_DIRECTORY/qt4.rc &&
 
   install -m644 $SOURCE_DIRECTORY/qt4.rc /etc/profile.d/


More information about the Lunar-commits mailing list