Commit | Line | Data |
---|---|---|
17ce0d45 EJ |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2017 Ethan R. Jones <doubleplusgood23@gmail.com> | |
c304543e | 3 | ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
e8b40974 | 4 | ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com> |
27031358 | 5 | ;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org> |
17ce0d45 EJ |
6 | ;;; |
7 | ;;; This file is part of GNU Guix. | |
8 | ;;; | |
9 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
10 | ;;; under the terms of the GNU General Public License as published by | |
11 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
12 | ;;; your option) any later version. | |
13 | ;;; | |
14 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
15 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | ;;; GNU General Public License for more details. | |
18 | ;;; | |
19 | ;;; You should have received a copy of the GNU General Public License | |
20 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
21 | ||
22 | (define-module (gnu packages cpp) | |
23 | #:use-module ((guix licenses) #:prefix license:) | |
24 | #:use-module (guix packages) | |
25 | #:use-module (guix download) | |
e8b40974 FT |
26 | #:use-module (guix git-download) |
27 | #:use-module (guix build-system cmake) | |
17ce0d45 EJ |
28 | #:use-module (guix build-system gnu) |
29 | #:use-module (gnu packages) | |
e8b40974 FT |
30 | #:use-module (gnu packages autotools) |
31 | #:use-module (gnu packages check) | |
32 | #:use-module (gnu packages compression) | |
33 | #:use-module (gnu packages pkg-config) | |
34 | #:use-module (gnu packages tls)) | |
17ce0d45 EJ |
35 | |
36 | (define-public libzen | |
37 | (package | |
38 | (name "libzen") | |
c304543e | 39 | (version "0.4.37") |
17ce0d45 EJ |
40 | (source (origin |
41 | (method url-fetch) | |
42 | (uri (string-append "https://mediaarea.net/download/source/" | |
43 | name "/" version "/" | |
44 | name "_" version ".tar.bz2")) | |
45 | (sha256 | |
46 | (base32 | |
c304543e | 47 | "1hcsrmn85b0xp0mp33aazk7g071q1v3f163nnhv8b0mv9c4bgsfn")))) |
17ce0d45 EJ |
48 | (native-inputs |
49 | `(("autoconf" ,autoconf) | |
50 | ("automake" ,automake) | |
51 | ("libtool" ,libtool))) | |
52 | (build-system gnu-build-system) | |
53 | (arguments | |
54 | '(#:phases | |
55 | ;; build scripts not in root of archive | |
56 | (modify-phases %standard-phases | |
d10092b8 | 57 | (add-after 'unpack 'pre-configure |
17ce0d45 EJ |
58 | (lambda _ |
59 | (chdir "Project/GNU/Library"))) | |
d10092b8 | 60 | (add-after 'pre-configure 'autogen |
17ce0d45 | 61 | (lambda _ |
d10092b8 | 62 | (zero? (system* "sh" "autogen.sh"))))))) |
17ce0d45 EJ |
63 | (home-page "https://github.com/MediaArea/ZenLib") |
64 | (synopsis "C++ utility library") | |
65 | (description "ZenLib is a C++ utility library. It includes classes for handling | |
66 | strings, configuration, bit streams, threading, translation, and cross-platform | |
67 | operating system functions.") | |
68 | (license license:zlib))) | |
e8b40974 FT |
69 | |
70 | (define-public rct | |
71 | (let* ((commit "b3e6f41d9844ef64420e628e0c65ed98278a843a") | |
a893dc2f | 72 | (revision "2") |
e8b40974 FT |
73 | (version (git-version "0.0.0" revision commit))) |
74 | (package | |
75 | (name "rct") | |
76 | (version version) | |
77 | (home-page "https://github.com/Andersbakken/rct") | |
78 | (source (origin | |
79 | (method git-fetch) | |
80 | (uri (git-reference | |
81 | (url home-page) | |
82 | (commit commit))) | |
83 | (sha256 | |
84 | (base32 | |
85 | "1m2931jacka27ghnpgf1z1plkkr64z0pga4r4zdrfpp2d7xnrdvb")) | |
a893dc2f | 86 | (patches (search-patches "rct-add-missing-headers.patch")) |
e8b40974 FT |
87 | (file-name (git-file-name name version)))) |
88 | (build-system cmake-build-system) | |
89 | (arguments | |
90 | '(#:configure-flags | |
a893dc2f FT |
91 | '("-DWITH_TESTS=ON" ; To run the test suite |
92 | "-DRCT_RTTI_ENABLED=ON"))) | |
e8b40974 FT |
93 | (native-inputs |
94 | `(("cppunit" ,cppunit) | |
bad12e83 LF |
95 | ("pkg-config" ,pkg-config))) |
96 | (inputs | |
97 | `(("openssl" ,openssl) | |
e8b40974 FT |
98 | ("zlib" ,zlib))) |
99 | (synopsis "C++ library providing Qt-like APIs on top of the STL") | |
100 | (description "Rct is a set of C++ tools that provide nicer (more Qt-like) | |
101 | APIs on top of Standard Template Library (@dfn{STL}) classes.") | |
102 | (license (list license:expat ; cJSON | |
103 | license:bsd-4))))) ; everything else (LICENSE.txt) | |
27031358 LC |
104 | |
105 | (define-public dashel | |
106 | (package | |
107 | (name "dashel") | |
108 | (version "1.3.3") | |
109 | (home-page "https://github.com/aseba-community/dashel") | |
110 | (source (origin | |
111 | (method url-fetch) | |
112 | (uri (string-append home-page "/archive/" version ".tar.gz")) | |
113 | (sha256 | |
114 | (base32 | |
115 | "1ckzac1rsw3cxmpdpwcqv46jyp7risk5ybq6jjiizbqn7labf6dw")) | |
116 | (file-name (string-append name "-" version ".tar.gz")))) | |
117 | (build-system cmake-build-system) | |
118 | (arguments '(#:tests? #f)) ;no tests | |
119 | (native-inputs `(("pkg-config" ,pkg-config))) | |
120 | (synopsis "Data stream helper encapsulation library") | |
121 | (description | |
122 | "Dashel is a data stream helper encapsulation C++ library. It provides a | |
123 | unified access to TCP/UDP sockets, serial ports, console, and files streams. | |
124 | It also allows a server application to wait for any activity on any | |
125 | combination of these streams.") | |
126 | (license license:bsd-3))) |