HiPhish <[email protected]> writes:

> Hello Schemers,
>
> A while ago I presented my MessagePack implementation for Guile[1] here and I 
> want to make it available to users. Guile has no dedicated package manager, 
> so 
> it's either manual or Guix, and I would like to support both. What it the 
> best 
> way of doing it?
…
> I guess I could use GNU Autotools instead of a manually written makefile, but 
> I 
> would rather stick to what I know and is simple for such a simple project.

The best way I see is actually the full autotools toolchain. If you
write the simple thing, you’ll eventually be implementing all the
autotools stuff yourself, down to cross-compilation and other dark
corners, which is likely to be more work than going the autotools route.

If you want to avoid going through manual setup, you could give my conf
tool a try: it creates a basic autotools setup you can modify.

    conf new myproj --lang guile
    cd myproj
    ./bootstrap.sh && ./configure --prefix ~/.local && make && make install

    cd /; guile -c '(import (myproj hello))(hello-world)'; cd -

It isn’t perfect yet, but it should have you set up within minutes.

It also gives the user easy-to-use uninstall:

    make uninstall

See https://bitbucket.org/ArneBab/conf/

Get it via

wget https://bitbucket.org/ArneBab/conf/downloads/conf-0.2.2.tar.gz && tar xf 
conf-0.2.2.tar.gz && cd conf-0.2.2 && ./bootstrap.sh && ./configure --prefix 
~/.local && make && make install

> [1] https://gitlab.com/HiPhish/guile-msgpack

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken

Attachment: signature.asc
Description: PGP signature

Reply via email to