spec-create: preliminary support for scon

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-03-25 22:05:44 +02:00
parent 238924c705
commit e4ce9bf357
2 changed files with 18 additions and 0 deletions

View File

@ -40,6 +40,11 @@ Changes in version 1.9.3
* i18n - Davide Madrisan:
Updated.
+ update
* spec-create - Davide Madrisan:
Preliminary support for scon.
(Feature asked by Silvan Calarco.)
--------------------------------------------------------------------------------
Changes in version 1.9.2

View File

@ -46,6 +46,10 @@ spec_cmd_configure_cmake="%cmake -d build"
spec_cmd_make_cmake="%make"
spec_cmd_makeinstall_cmake="%makeinstall -C build"
spec_cmd_configure_scons=""
spec_cmd_make_scons="scons"
spec_cmd_makeinstall_scons="scons install DESTDIR=%{buildroot}/<ADDME>"
spec_cmd_configure_makefileonly=""
spec_cmd_make_makefileonly="%make"
spec_cmd_makeinstall_makefileonly="%makeinstall"
@ -336,6 +340,11 @@ shared-libraries:,debug-package:,\
spec_cmd_make="$spec_cmd_make_makefileonly"
spec_cmd_makeinstall="$spec_cmd_makeinstall_makefileonly"
;;
scons)
spec_cmd_configure="$spec_cmd_configure_scons"
spec_cmd_make="$spec_cmd_make_scons"
spec_cmd_makeinstall="$spec_cmd_makeinstall_scons"
;;
unknown)
notify.warning $"unknown build techonology"
spec_cmd_configure="$spec_cmd_configure_default"
@ -747,6 +756,10 @@ ${standard_docs_devel:+$standard_docs_devel }$currdoc"
build_techology="autotools"
elif [ -e $tmpdir/$pck_rootdir/Makefile ]; then
build_techology="makefile"
elif [ -e $tmpdir/$pck_rootdir/SConstruct -o \
-e $tmpdir/$pck_rootdir/Sconstruct -o \
-e $tmpdir/$pck_rootdir/sconstruct ]; then
build_techology="scons"
fi
;;
esac