From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 2/4] gnu: Add libpthread_workqueue. Date: Fri, 28 Oct 2016 15:01:30 +0000 Message-ID: <20161028150132.25730-3-ng0@we.make.ritual.n0.is> References: <20161028150132.25730-1-ng0@we.make.ritual.n0.is> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c08fs-0006t8-KG for guix-devel@gnu.org; Fri, 28 Oct 2016 11:02:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c08fp-00063L-Dg for guix-devel@gnu.org; Fri, 28 Oct 2016 11:02:28 -0400 Received: from aibo.runbox.com ([91.220.196.211]:51673) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c08fp-00062x-76 for guix-devel@gnu.org; Fri, 28 Oct 2016 11:02:25 -0400 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1c08fm-0008Bg-L4 for guix-devel@gnu.org; Fri, 28 Oct 2016 17:02:22 +0200 In-Reply-To: <20161028150132.25730-1-ng0@we.make.ritual.n0.is> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/libdispatch.scm (libpthread_workqueue): New variable. --- gnu/packages/libdispatch.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/libdispatch.scm b/gnu/packages/libdispatch.scm index 77c80c0..37d9195 100644 --- a/gnu/packages/libdispatch.scm +++ b/gnu/packages/libdispatch.scm @@ -62,3 +62,34 @@ native kernel facilities.") (synopsis "kqueue(2) compatibility library") ;; event.h is bsd-2 (license (list license:expat license:bsd-2)))) + +(define-public libpthread_workqueue + (package + (name "libpthread_workqueue") + (version "0.9.2") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/mheily/libpwq/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0gi8l6jy5d7w3fff684qfjdj16snbc8vkf27y68w91xl5jy16xri")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'autogen + (lambda _ + (zero? (system* "autoreconf" "--install" "--verbose"))))))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("autoconf" ,(autoconf-wrapper)) + ("automake" ,automake) + ("libtool" ,libtool))) + (home-page "https://github.com/mheily/libpwq") + (description + "libpthread_workqueue is a POSIX threads workqueue library.") + (synopsis "Portable implementation of the pthread_workqueue API") + (license license:bsd-2))) -- 2.10.1