Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CL bindings for brlapi, brltty
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
schoppenhauer
n00b
n00b


Joined: 22 Aug 2014
Posts: 2

PostPosted: Fri Aug 22, 2014 11:09 am    Post subject: CL bindings for brlapi, brltty Reply with quote

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
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Fri Aug 22, 2014 2:50 pm    Post subject: Reply with quote

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
Code:
common-lisp

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
View user's profile Send private message
schoppenhauer
n00b
n00b


Joined: 22 Aug 2014
Posts: 2

PostPosted: Fri Aug 22, 2014 7:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Sat Aug 23, 2014 1:51 am    Post subject: Reply with quote

Yes, typo. Corrected. Try
to inherit add
Code:
common-lisp

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum