Commit | Line | Data |
---|---|---|
17ce0d45 EJ |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2017 Ethan R. Jones <doubleplusgood23@gmail.com> | |
3 | ;;; | |
4 | ;;; This file is part of GNU Guix. | |
5 | ;;; | |
6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
7 | ;;; under the terms of the GNU General Public License as published by | |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
9 | ;;; your option) any later version. | |
10 | ;;; | |
11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ;;; GNU General Public License for more details. | |
15 | ;;; | |
16 | ;;; You should have received a copy of the GNU General Public License | |
17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
19 | (define-module (gnu packages cpp) | |
20 | #:use-module ((guix licenses) #:prefix license:) | |
21 | #:use-module (guix packages) | |
22 | #:use-module (guix download) | |
23 | #:use-module (guix build-system gnu) | |
24 | #:use-module (gnu packages) | |
25 | #:use-module (gnu packages autotools)) | |
26 | ||
27 | (define-public libzen | |
28 | (package | |
29 | (name "libzen") | |
30 | (version "0.4.35") | |
31 | (source (origin | |
32 | (method url-fetch) | |
33 | (uri (string-append "https://mediaarea.net/download/source/" | |
34 | name "/" version "/" | |
35 | name "_" version ".tar.bz2")) | |
36 | (sha256 | |
37 | (base32 | |
38 | "12a1icgcffgv503ii2k1453kxg5hfly09mf4zjcc80aq8a6rf8by")))) | |
39 | (native-inputs | |
40 | `(("autoconf" ,autoconf) | |
41 | ("automake" ,automake) | |
42 | ("libtool" ,libtool))) | |
43 | (build-system gnu-build-system) | |
44 | (arguments | |
45 | '(#:phases | |
46 | ;; build scripts not in root of archive | |
47 | (modify-phases %standard-phases | |
d10092b8 | 48 | (add-after 'unpack 'pre-configure |
17ce0d45 EJ |
49 | (lambda _ |
50 | (chdir "Project/GNU/Library"))) | |
d10092b8 | 51 | (add-after 'pre-configure 'autogen |
17ce0d45 | 52 | (lambda _ |
d10092b8 | 53 | (zero? (system* "sh" "autogen.sh"))))))) |
17ce0d45 EJ |
54 | (home-page "https://github.com/MediaArea/ZenLib") |
55 | (synopsis "C++ utility library") | |
56 | (description "ZenLib is a C++ utility library. It includes classes for handling | |
57 | strings, configuration, bit streams, threading, translation, and cross-platform | |
58 | operating system functions.") | |
59 | (license license:zlib))) |