[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sbcl package definition
From: |
Ludovic Courtès |
Subject: |
Re: sbcl package definition |
Date: |
Sun, 06 Oct 2013 21:54:39 +0200 |
User-agent: |
Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) |
Hi,
Kete <address@hidden> skribis:
> Instead of ./configure, make and make install, sbcl uses a command
> like this: INSTALL_ROOT=/home/me sh install.sh
>
> How would the build-system and inputs go?
In general, when that happens, we still use ‘gnu-build-system’ but
customize/remove some of the phases.
An example of that is ‘net-tools’ in linux.scm: it has no ./configure
script, and has specific makefile targets.
For SBCL, you would probably remove the ‘configure’ phase, perhaps the
‘build’ phase too, and replace the ‘install’ phase:
(alist-replace
'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(setenv "INSTALL_ROOT" out)
(zero? (system* "sh" "install.sh"))))
(alist-delete 'configure %standard-phases))
HTH,
Ludo’.