View previous topic :: View next topic |
Author |
Message |
schoppenhauer n00b
Joined: 22 Aug 2014 Posts: 2
|
Posted: Fri Aug 22, 2014 11:09 am Post subject: CL bindings for brlapi, brltty |
|
|
Hello.
The BrlAPI has a binding for Common Lisp. However, I cannot get the ebuild of brltty installing it. I set the use-flags "api" and "common-lisp", but it will not be built. Am I doing something wrong? |
|
Back to top |
|
|
limn l33t
Joined: 13 May 2005 Posts: 997
|
Posted: Fri Aug 22, 2014 2:50 pm Post subject: |
|
|
No, you are not. The ebuild does not support that binding. Please open a bug requesting that.
If you are comfortable editing the ebuild you can add it yourself.
To IUSE add
to REQUIRED_USE add
Code: | common-lisp? ( api ) |
local myconf add
Code: | $(use_enable common-lisp lisp-bindings) |
Then recreate the manifest and emerge.
These changes are patterned after the ocaml USE flag in the ebuild. brltty-5.0-r3 will compile with lisp bindings with these changes.
I did not test the bindings, or check to see if it links with local lisp libraries. sbcl is on that box.
Changes to the ebuild will be over-written by your next sync and emerging again without them will remove the binding.
Last edited by limn on Sat Aug 23, 2014 1:37 am; edited 1 time in total |
|
Back to top |
|
|
schoppenhauer n00b
Joined: 22 Aug 2014 Posts: 2
|
Posted: Fri Aug 22, 2014 7:01 pm Post subject: |
|
|
I never did this before. I tried to do this. The "add" in REQUIRED_USE was probably a typo (?), so I left it out. It builds, but the library does not get installed. There should be a "brlapi.lisp" somewhere, and it is not. I also cannot find anything in "equery files brltty". |
|
Back to top |
|
|
limn l33t
Joined: 13 May 2005 Posts: 997
|
Posted: Sat Aug 23, 2014 1:51 am Post subject: |
|
|
Yes, typo. Corrected. Try
to inherit add
That is
Code: | inherit findlib eutils multilib toolchain-funcs java-pkg-opt-2 flag-o-matic \
autotools udev systemd python-r1 common-lisp
|
In src_install() at the beginning add
Code: | if use common-lisp; then
CLPACKAGE=cl-brlapi
pushd "${BUILDDIR}"
cd "Bindings/Lisp" || die
common-lisp-install *.lisp *.asd
common-lisp-system-symlink
popd
fi |
That is
Code: | src_install() {
if use common-lisp; then
CLPACKAGE=cl-brlapi
pushd "${BUILDDIR}"
cd "Bindings/Lisp" || die
... |
|
|
Back to top |
|
|
|