An open API service indexing awesome lists of open source software.

https://github.com/artyom-poptsov/guile-udev

GNU Guile bindings to libudev.
https://github.com/artyom-poptsov/guile-udev

guile scheme udev

Last synced: 5 months ago
JSON representation

GNU Guile bindings to libudev.

Awesome Lists containing this project

README

          

# -*- mode: org; -*-

* Guile-Udev
[[https://github.com/artyom-poptsov/guile-udev/actions/workflows/guile2.2.yml/badge.svg]] [[https://github.com/artyom-poptsov/guile-udev/actions/workflows/guile3.0.yml/badge.svg]] [[https://github.com/artyom-poptsov/guile-udev/actions/workflows/guix.yml/badge.svg]]

Guile-Udev is a [[https://www.gnu.org/software/guile/][GNU Guile]] bindings to [[https://en.wikipedia.org/wiki/Udev][libudev]].

** License
Guile-Udev is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version. Please see =COPYING= file for the terms of GNU General
Public License.

** Requirements
- guile-2.2 / guile-3.0
- libudev >= 239

*** Build-time dependencies
- guile-2.2-dev / guile-3.0-dev
- libudev-dev
- gettext
- automake
- autoconf
- texinfo
- pkg-config

** Building and installation
*** GNU Guix
To install the latest release of Guile-Udev on [[https://guix.gnu.org/][GNU Guix]], issue the following
command:
#+BEGIN_EXAMPLE shell
$ guix install guile-udev
#+END_EXAMPLE

If you want to install the Git version you can use =guix.scm= package
description that Guile-Udev provides in the repository:
#+BEGIN_EXAMPLE shell
$ guix build -f guix.scm
$ guix package -f guix.scm
#+END_EXAMPLE

*** Ubuntu GNU/Linux
On Ubuntu GNU/Linux 20.04 you'll need to install the needed dependencies to
be able to build the library with Guile 3.0:
#+BEGIN_EXAMPLE shell
$ sudo apt install \
gcc \
make \
guile-3.0-dev \
libudev-dev \
gettext \
automake \
autoconf \
texinfo \
pkg-config \
libguile-dev
#+END_EXAMPLE

*** Manual
To build and install the library, use the following commands:
#+BEGIN_EXAMPLE shell
$ autoreconf -vif
$ ./configure
$ make
$ make install
#+END_EXAMPLE

** Usage
Please see the documentation in Info format for API documentation and usage
examples -- you can open it by typing =info guile-udev= in the shell, or using
=C-h i m guile-udev RET= combo in Emacs. Also take a look on examples in the
=examples= directory.