RZ Some thoughts about a "may be" new package description syntax:
-- <pkg> <ver> ?<cmd> <script>?
<cmd> is one of require, source, configure, make, test, clean. The order is not significant. Everything is saved internally and checked before really used.
Define common functions:
-- {} {} test {-run make test} -- pkga {} test {-run make testaa}
Use common functions:
-- pkga 0.1 test {{*}[-- pkga {} test]} -- pkga 0.2 test {{*}[-- {} {} test]} -- pkga 0.3 test {{*}[-- pkga 0.2 test]
or with a special command:
-- pkga 0.2 test {-include pkga {} test} -- pkga 0.2 test {eval [-get {} {} test]aa}
Define a package:
-- pkga 0.1 require {-use tcl-8.5} -- pkga 0.1 source {-link dira} -- pkga 0.1 make {-run make} -- pkga 0.1 install {-run make install}
or with the same effect:
-- pkga 0.1 require {-exact tcl-8.5} source {-link dira}\ make {-run make} install {-run make install}
-- pkga {} default {{*}[-- pkga 0.2]}
or
-- pkga {} default {0.2}