From 8c4bc2ff01c8e7aa2998f9eda6caf4a0d1bfc82a Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Wed, 25 Mar 2009 17:31:09 +0100 Subject: [PATCH] lib/functions.in: first attempt to handle the different ways for ruby packages --- lib/functions.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/functions.in b/lib/functions.in index 8374d55..93b7298 100644 --- a/lib/functions.in +++ b/lib/functions.in @@ -932,6 +932,16 @@ build_this_package() { pyconfopt="${pyconfopt:=--prefix $root/$prefix}" hook_eval premake eval ${pyscript:-python} setup.py build install $pyconfopt + hook_eval postmake + elif [ -f install.rb ] ; then + hook_eval premake + ${rubyscript:-ruby} install.rb + + hook_eval postmake + elif [ -f Rakefile ] ; then + hook_eval premake + eval rake package + hook_eval postmake else # styles that include a make run if [ ! -f Makefile -a ! -f makefile -a \