summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/efl.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/efl.rb b/lib/efl.rb
index ab8322b..cf946b3 100644
--- a/lib/efl.rb
+++ b/lib/efl.rb
@@ -6,9 +6,13 @@ module Efl
#
VERSION = '0.0.8'
#
- PACKAGE_BIN_DIR = File.join `pkg-config --variable=exec_prefix ecore`.strip, 'bin'
- PACKAGE_LIB_DIR = File.join `pkg-config --variable=exec_prefix ecore`.strip, 'lib'
- PACKAGE_DATA_DIR = File.join `pkg-config --variable=exec_prefix ecore`.strip, 'share'
+ PREFIX=`pkg-config --variable=exec_prefix ecore`.strip
+ if PREFIX.empty?
+ puts "unable to determine Efl::PREFIX using pkg-config"
+ end
+ PACKAGE_BIN_DIR = File.join PREFIX, 'bin'
+ PACKAGE_LIB_DIR = File.join PREFIX, 'lib'
+ PACKAGE_DATA_DIR = File.join PREFIX, 'share'
#
autoload :EcoreEvas, './lib/efl/ecore_evas.rb'
autoload :EcoreGetopt, './lib/efl/ecore_getopt.rb'