joined to this a patch to that add Debian packaging support:
$ ./waf configure
$ ./waf build # Check that jslibs compile well
$ ./waf debian # Create source archive and launch debuild
It will create several debian packages:
jslibs-runtime_2572-1_i386.deb
jslibs-crypt_2572-1_i386.deb
jslibs-font_2572-1_i386.deb
jslibs-io_2572-1_i386.deb
jslibs-sqlite_2572-1_i386.deb
jslibs-zlib_2572-1_i386.deb
jslibs-debug_2572-1_i386.deb
jslibs-iconv_2572-1_i386.deb
jslibs-protex_2572-1_i386.deb
jslibs-std_2572-1_i386.deb
jslibs-fastcgi_2572-1_i386.deb
jslibs-image_2572-1_i386.deb
jslibs-trimesh_2572-1_i386.deb
[The version number is taken from VERSION= in main wscript file.]
File to verify:
- debian/copyright # Check that I put right information here
Few details remain anyway:
- To follow the classical Linux way the jslibs modules [jsz, jsio,
etc...] are installed in /usr/lib/jslibs/. Thus you have to set the
LD_LIBRARY_PATH=/usr/lib/jslibs/ to make jshost to work.
The solution should be to make jshost look also in PREFIX/lib/jslibs
directory when loading modules. [PREFIX will be the prefix define in
./waf configure --prefix=PREFIX]. For that there is some little work to
do on jhost side.
- Same for libmozjs.so that should not be in /usr/lib, because it's a
modified version of spidermonkey, but should be in /usr/lib/jslibs. [For
example Thunderdird on Debian come with its own libmozjs.so in
/usr/lib/icedove/libmozjs.so]. For that there is some [big?] work to do
on jhost side.
Next steps: Publish these debian package on a public repository and
support more jslibs modules.
--
Julien