summaryrefslogtreecommitdiffstats
path: root/lib/efl.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-08-20 19:35:39 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-08-20 19:35:39 +0200
commitcadb906fb59d288b7f9d88b77b18537631455a69 (patch)
tree25f400d202c631e0d6d55a5ac2d77cea5d5728f5 /lib/efl.rb
parent966c7b4f7589981cc1787fa7fcf2fa29b82c1fa0 (diff)
downloadffi-efl-cadb906fb59d288b7f9d88b77b18537631455a69.zip
ffi-efl-cadb906fb59d288b7f9d88b77b18537631455a69.tar.gz
well, ... Efl::PREFIX and others ... that's still no good
Diffstat (limited to 'lib/efl.rb')
-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'