From cadb906fb59d288b7f9d88b77b18537631455a69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 20 Aug 2011 19:35:39 +0200 Subject: well, ... Efl::PREFIX and others ... that's still no good --- lib/efl.rb | 10 +++++++--- 1 file 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' -- cgit v1.1-2-g2b99