projects/guix·blob java-team · refs

79 lines · 3.0 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Federico Beffa <[email protected]>
3;;; Copyright © 2015 Ricardo Wurmus <[email protected]>
4;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <[email protected]>
5;;; Copyright © 2019 Gábor Boskovits <[email protected]>
6;;; Copyright © 2020 Giacomo Leidi <[email protected]>
7;;; Copyright © 2024, 2025 Janneke Nieuwenhuizen <[email protected]>
8;;;
9;;; This file is part of GNU Guix.
10;;;
11;;; GNU Guix is free software; you can redistribute it and/or modify it
12;;; under the terms of the GNU General Public License as published by
13;;; the Free Software Foundation; either version 3 of the License, or (at
14;;; your option) any later version.
15;;;
16;;; GNU Guix is distributed in the hope that it will be useful, but
17;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19;;; GNU General Public License for more details.
20;;;
21;;; You should have received a copy of the GNU General Public License
22;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23
24(define-module (gnu packages libedit)
25 #:use-module (guix gexp)
26 #:use-module (guix licenses)
27 #:use-module (guix packages)
28 #:use-module (guix utils)
29 #:use-module (guix download)
30 #:use-module (guix build-system gnu)
31 #:use-module (gnu packages ncurses))
32
33(define-public libedit
34 (package
35 (name "libedit")
36 (version "20191231-3.1")
37 (source
38 (origin
39 (method url-fetch)
40 (uri (string-append "https://thrysoee.dk/editline"
41 "/libedit-" version ".tar.gz"))
42 (sha256
43 (base32 "0wch48nml28jj6ild889745dsg2agm7mpvrmbl1gi98nw6vjrf6v"))))
44 (build-system gnu-build-system)
45 (arguments
46 (list
47 #:configure-flags
48 #~(list "CFLAGS=-g -O2 -Wno-error=incompatible-pointer-types")))
49 (inputs
50 (list ncurses))
51 (home-page "https://thrysoee.dk/editline/")
52 (synopsis "NetBSD Editline library")
53 (description
54 "This is an autotool- and libtoolized port of the NetBSD Editline
55library (libedit). This Berkeley-style licensed command line editor library
56provides generic line editing, history, and tokenization functions, similar to
57those found in GNU Readline.")
58 (license bsd-3)))
59
60(define-public editline
61 (package
62 (name "editline")
63 (version "1.17.1")
64 (source
65 (origin
66 (method url-fetch)
67 (uri (string-append
68 "https://ftp.troglobit.com/editline/editline-" version ".tar.xz"))
69 (sha256
70 (base32 "03pw3z6pz590v8xfnjx0yynnzij2sb9xwjbvqvdzsid56crkn8nz"))))
71 (build-system gnu-build-system)
72 (home-page "https://troglobit.com/projects/editline/")
73 (synopsis "Line editing library")
74 (description
75 "@code{editline} is a small line editing library. It can be linked into almost
76any program to provide command line editing and history functions. It is call
77compatible with the GNU Readline library, but at a fraction of the size,
78and as a result fewer features.")
79 (license bsd-4)))