From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
To: guix-devel@gnu.org
Subject: [PATCH 2/6] gnu: Add lua-libmpack.
Date: Tue, 24 Jan 2017 15:40:11 +0100 [thread overview]
Message-ID: <20170124144015.24473-2-ricardo.wurmus@mdc-berlin.de> (raw)
In-Reply-To: <20170124144015.24473-1-ricardo.wurmus@mdc-berlin.de>
* gnu/packages/serialization.scm (lua-libmpack): New variable.
---
gnu/packages/serialization.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm
index ab794ef80..d59ded313 100644
--- a/gnu/packages/serialization.scm
+++ b/gnu/packages/serialization.scm
@@ -24,6 +24,7 @@
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix utils)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (gnu packages)
@@ -32,6 +33,7 @@
#:use-module (gnu packages check)
#:use-module (gnu packages compression)
#:use-module (gnu packages documentation)
+ #:use-module (gnu packages lua)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python))
@@ -157,6 +159,40 @@ serialization.")
that implements both the msgpack and msgpack-rpc specifications.")
(license license:expat)))
+(define-public lua-libmpack
+ (package (inherit libmpack)
+ (name "lua-libmpack")
+ (build-system gnu-build-system)
+ (arguments
+ `(;; FIXME: tests require "busted", which is not yet available in Guix.
+ #:tests? #f
+ #:test-target "test"
+ #:make-flags
+ (let* ((lua-version ,(package-version lua))
+ (lua-major+minor ,(version-major+minor (package-version lua))))
+ (list "CC=gcc"
+ "USE_SYSTEM_LUA=yes"
+ (string-append "LUA_VERSION=" lua-version)
+ (string-append "LUA_VERSION_MAJ_MIN=" lua-major+minor)
+ (string-append "PREFIX="
+ (assoc-ref %outputs "out"))
+ (string-append "LUA_CMOD_INSTALLDIR="
+ (assoc-ref %outputs "out")
+ "/lib/lua/" lua-major+minor)
+ ;; This is unnecessary as of upstream commit 02886c13ff8a2,
+ ;; which is not part of the current release.
+ "CFLAGS=-DLUA_C89_NUMBERS -fPIC"))
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (add-after 'unpack 'chdir
+ (lambda _ (chdir "binding/lua") #t)))))
+ (inputs
+ `(("lua" ,lua)))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (synopsis "Lua bindings for the libmpack binary serialization library")))
+
(define-public yaml-cpp
(package
(name "yaml-cpp")
--
2.11.0
next prev parent reply other threads:[~2017-01-24 14:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-24 14:40 [PATCH 1/6] gnu: Add libmpack Ricardo Wurmus
2017-01-24 14:40 ` Ricardo Wurmus [this message]
2017-01-24 18:51 ` [PATCH 2/6] gnu: Add lua-libmpack Leo Famulari
2017-01-25 9:18 ` Ricardo Wurmus
2017-01-24 14:40 ` [PATCH 3/6] gnu: Add lua5.2-libmpack Ricardo Wurmus
2017-01-24 14:40 ` [PATCH 4/6] gnu: Add lua5.2-bitop Ricardo Wurmus
2017-01-24 18:52 ` Leo Famulari
2017-01-25 9:17 ` Ricardo Wurmus
2017-01-24 14:40 ` [PATCH 5/6] gnu: Add lua5.2-lpeg Ricardo Wurmus
2017-01-26 18:01 ` Ludovic Courtès
2017-01-31 19:41 ` Ricardo Wurmus
2017-01-24 14:40 ` [PATCH 6/6] gnu: Add neovim Ricardo Wurmus
2017-01-24 21:31 ` Ludovic Courtès
2017-01-31 20:04 ` Ricardo Wurmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170124144015.24473-2-ricardo.wurmus@mdc-berlin.de \
--to=ricardo.wurmus@mdc-berlin.de \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.