diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-08-20 19:35:39 +0200 | 
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-08-20 19:35:39 +0200 | 
| commit | cadb906fb59d288b7f9d88b77b18537631455a69 (patch) | |
| tree | 25f400d202c631e0d6d55a5ac2d77cea5d5728f5 | |
| parent | 966c7b4f7589981cc1787fa7fcf2fa29b82c1fa0 (diff) | |
| download | ffi-efl-cadb906fb59d288b7f9d88b77b18537631455a69.zip ffi-efl-cadb906fb59d288b7f9d88b77b18537631455a69.tar.gz  | |
well, ... Efl::PREFIX and others ... that's still no good
| -rw-r--r-- | lib/efl.rb | 10 | 
1 files changed, 7 insertions, 3 deletions
@@ -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'  | 
