File gnu/packages/c.scm changed (mode: 100644) (index c1ae98ddd3..493d99387c) |
40 |
40 |
#:use-module (gnu packages perl) |
#:use-module (gnu packages perl) |
41 |
41 |
#:use-module (gnu packages texinfo) |
#:use-module (gnu packages texinfo) |
42 |
42 |
#:use-module (gnu packages guile) |
#:use-module (gnu packages guile) |
|
43 |
|
#:use-module (gnu packages lua) |
43 |
44 |
#:use-module (gnu packages multiprecision) |
#:use-module (gnu packages multiprecision) |
44 |
45 |
#:use-module (gnu packages pcre) |
#:use-module (gnu packages pcre) |
45 |
46 |
#:use-module (gnu packages python) |
#:use-module (gnu packages python) |
|
... |
... |
string formatting and autoresizing, option and config file parsing, type |
257 |
258 |
checking casts and more.") |
checking casts and more.") |
258 |
259 |
(license license:lgpl2.1+))) |
(license license:lgpl2.1+))) |
259 |
260 |
|
|
|
261 |
|
(define-public libwuya |
|
262 |
|
;; This commit is the one before "wuy_pool.h" was removed from libwuya, |
|
263 |
|
;; which libleak currently requires. |
|
264 |
|
(let ((revision "1") |
|
265 |
|
(commit "883502041044f4616cfbf75c8f2bb60059f704a9")) |
|
266 |
|
(package |
|
267 |
|
(name "libwuya") |
|
268 |
|
(version (git-version "0.0" revision commit)) |
|
269 |
|
(source (origin |
|
270 |
|
(method git-fetch) |
|
271 |
|
(uri (git-reference |
|
272 |
|
(url "https://github.com/WuBingzheng/libwuya") |
|
273 |
|
(commit commit))) |
|
274 |
|
(file-name (git-file-name name version)) |
|
275 |
|
(sha256 |
|
276 |
|
(base32 |
|
277 |
|
"1xrsqbgr13g2v0ag165ryp7xrwzv41xfygzk2a3445ca98c1qpdc")))) |
|
278 |
|
(build-system gnu-build-system) |
|
279 |
|
(arguments |
|
280 |
|
`(#:tests? #f ;no test suite |
|
281 |
|
#:phases (modify-phases %standard-phases |
|
282 |
|
(add-after 'unpack 'patch-lua-includes |
|
283 |
|
(lambda _ |
|
284 |
|
(substitute* '("wuy_cflua.h" "wuy_cflua.c") |
|
285 |
|
(("<lua5\\.1/") "<")) |
|
286 |
|
#t)) |
|
287 |
|
(add-after 'unpack 'add--fPIC-to-CFLAGS |
|
288 |
|
(lambda _ |
|
289 |
|
(substitute* "Makefile" |
|
290 |
|
(("CFLAGS[^\n]*" all) |
|
291 |
|
(string-append all " -fPIC"))) |
|
292 |
|
#t)) |
|
293 |
|
(add-before 'build 'set-CC |
|
294 |
|
(lambda _ |
|
295 |
|
(setenv "CC" "gcc") |
|
296 |
|
#t)) |
|
297 |
|
(delete 'configure) ;no configure script |
|
298 |
|
(replace 'install |
|
299 |
|
(lambda* (#:key outputs #:allow-other-keys) |
|
300 |
|
(let* ((out (assoc-ref outputs "out")) |
|
301 |
|
(include-dir (string-append out "/include")) |
|
302 |
|
(headers (find-files "." "\\.h$"))) |
|
303 |
|
(for-each (lambda (h) |
|
304 |
|
(install-file h include-dir)) |
|
305 |
|
headers) |
|
306 |
|
(install-file "libwuya.a" (string-append out "/lib")) |
|
307 |
|
#t)))))) |
|
308 |
|
(inputs `(("lua" ,lua))) |
|
309 |
|
(home-page "https://github.com/WuBingzheng/libwuya/") |
|
310 |
|
(synopsis "C library implementing various data structures") |
|
311 |
|
(description "The @code{libwuya} library implements data structures such |
|
312 |
|
as dictionaries, skip lists, and memory pools.") |
|
313 |
|
;; There is no clear information as to what license this is distributed |
|
314 |
|
;; under, but it is included (bundled) with libleak from the same author |
|
315 |
|
;; under the GNU GPL v2 or later license, so use this here until it is |
|
316 |
|
;; clarified (see: https://github.com/WuBingzheng/libwuya/issues/2). |
|
317 |
|
(license license:gpl2+)))) |
|
318 |
|
|
260 |
319 |
(define-public packcc |
(define-public packcc |
261 |
320 |
(package |
(package |
262 |
321 |
(name "packcc") |
(name "packcc") |