| But I am doing a similar thing using pkg_mkIndex
as explained in
http://www.tcl.tk/man/tcl8.4/TclCmd/pkgMkIndex.htm
That is to use tclcsound with package require
(or even load). The manual perhaps needs updating.
There is a one-line script that calls pkg_mkIndex
called pkgbuild.tcl, which is called by scons.
Isn't that enough? I'm fine with any improvements
to it, if you feel they need to be made.
Victor
>
> Hi. In the process of packaging for Debian, I contacted
> the Debian maintainers for tcl/tk to ask them about
> correct practices for installing tcl modules. What they
> said is pretty easy to implement, and sounds cleaner than
> the status quo:
>
> 1. Create a file called pkgIndex.tcl that contains the
> following lines:
>
> package ifneeded tclcsound 1.0 \
> [list load [file join $dir tclcsound.so]
> Tclcsound]
>
> That 1.0 is because frontends/tclcsound/tclcsound.c is
> exporting a 1.0
> version number
>
> 2. Install tclcsound.so and pkgIndex.tcl to
> /usr/lib/tclcsound.
>
> That should make it work. The downside is that there would
> be a new semantic for loading the csound module. Instead
> of "load tclcsound.so" as seen on several parts on the
> web, now a "package require tclcsound" has to be issued.
>
> While I'd like to do as suggested by the tcl/tk debian
> team, this change will break compatibility, since the
> "load tclcsound.so Tclcsound" instruction will not work
> anymore. On the other hand, this probably isn't too big a
> deal either: changing this is easy, and there is also
> cstclsh, which I guess is the natural choice for using
> csound instead of the tclcsound module (although I don't
> know if cstclsh is strictly equivalent to
> tclsh+tclcsound).
>
> As a transition plan, maybe there could be a symlink
> from /usr/lib/tclcsound.so pointing to
> /usr/lib/tclcsound/tclcsound.so.
>
> Ideas?
>
> --
>
> Felipe Sateler
>
>
>
> ----------------------------------------------------------
> --------------- This SF.net email is sponsored by:
> Microsoft Defy all challenges. Microsoft(R) Visual Studio
> 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> [Attachment: fsateler@gmail.com.sig]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |