From patchwork Wed May 29 11:40:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Guillaume Le Vaillant X-Patchwork-Id: 14152 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 44FDA17064; Wed, 29 May 2019 15:39:48 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 1DACB17060 for ; Wed, 29 May 2019 15:39:47 +0100 (BST) Received: from localhost ([127.0.0.1]:55526 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVzk2-00081t-IT for patchwork@mira.cbaines.net; Wed, 29 May 2019 10:39:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVzdb-0003Zz-Gu for guix-patches@gnu.org; Wed, 29 May 2019 10:33:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVzdZ-0005xv-HI for guix-patches@gnu.org; Wed, 29 May 2019 10:33:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45984) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hVzdW-0005vv-NJ for guix-patches@gnu.org; Wed, 29 May 2019 10:33:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hVzdW-0006ns-IL for guix-patches@gnu.org; Wed, 29 May 2019 10:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35992] [PATCH] gnu: Add zbar Resent-From: Guillaume LE VAILLANT Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 29 May 2019 14:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35992 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35992@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155914032226068 (code B ref -1); Wed, 29 May 2019 14:33:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 May 2019 14:32:02 +0000 Received: from localhost ([127.0.0.1]:59528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVzcV-0006m4-LW for submit@debbugs.gnu.org; Wed, 29 May 2019 10:32:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34557) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVwy3-00069K-W0 for submit@debbugs.gnu.org; Wed, 29 May 2019 07:42:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:53611) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVwxy-0003dj-Rw for submit@debbugs.gnu.org; Wed, 29 May 2019 07:41:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVwxv-00055y-OG for guix-patches@gnu.org; Wed, 29 May 2019 07:41:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVwxt-0003b0-CS for guix-patches@gnu.org; Wed, 29 May 2019 07:41:55 -0400 Received: from mout02.posteo.de ([185.67.36.66]:44303) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVwxs-0003XR-OT for guix-patches@gnu.org; Wed, 29 May 2019 07:41:53 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 94B4C2400FD for ; Wed, 29 May 2019 13:41:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1559130105; bh=TUcjkhK88lmr9iXB5EJ9wHXkarF8B6vwPSUux511bdA=; h=From:To:Cc:Subject:Date:From; b=Am+7H1HBQ40dEX/BnfvqM9MrbwNgpCSThcva0zKMJOpyW2LZAK7wZ6Z8QVIGLJl3O Uu8UFHQuoPYYQs4hvlr59NR/QxY7SVzCuq+Lw3DEGOOiDk2OEwkfpGxspNZNDdOTy8 13N86r5D9Yv3Jbr/7wUL3416WFVquNYXgRxIcFCOWsKO/VD9MeLTogYgEbUNMZi6ab 6wI2ekLHBp2CtN7UYJf7w0bvW67IyF+fqE9tR09b2nOwz85FP86cknaOUrECLmJGlR o/vSFa1LSiq3bN9uwnKVx7+aMr4cQFiiJ0PH3WKdAH9Njp10L5MaeK5BnP+u4Z2s2l JeAEjol3rIp2w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 45DTM84p77z9rxY; Wed, 29 May 2019 13:41:40 +0200 (CEST) Received: from yamatai.local (unknown [IPv6:2a01:e34:ed03:c7d0:154f:9a6f:8955:52cf]) by vps530281.ovh.net (Postfix) with ESMTPSA id 0C09A3E9B9; Wed, 29 May 2019 13:41:40 +0200 (CEST) From: Guillaume LE VAILLANT Date: Wed, 29 May 2019 13:40:25 +0200 Message-Id: <20190529114025.10099-1-glv@posteo.net> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Wed, 29 May 2019 10:31:58 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guillaume LE VAILLANT Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/aidc.scm (zbar): New variable. --- gnu/packages/aidc.scm | 55 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm index afcb33ad6d..a55690461d 100644 --- a/gnu/packages/aidc.scm +++ b/gnu/packages/aidc.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2016 Efraim Flashner ;;; Copyright © 2017 Hartmut Goebel ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice +;;; Copyright © 2019 Guillaume Le Vaillant ;;; ;;; This file is part of GNU Guix. ;;; @@ -26,8 +27,15 @@ #:use-module (guix download) #:use-module (guix git-download) #:use-module (gnu packages autotools) - #:use-module (gnu packages pkg-config) + #:use-module (gnu packages imagemagick) + #:use-module (gnu packages glib) + #:use-module (gnu packages gtk) #:use-module (gnu packages image) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) + #:use-module (gnu packages python-xyz) + #:use-module (gnu packages qt) + #:use-module (gnu packages video) #:use-module (guix build-system gnu)) @@ -102,3 +110,48 @@ characters, and is highly robust.") barcodes of the modern ECC200 variety. libdmtx is a shared library, allowing C/C++ programs to use its capabilities without restrictions or overhead.") (license license:bsd-3))) + +(define-public zbar + (package + (name "zbar") + (version "0.23") + (source + (origin + (method url-fetch) + (uri (string-append "https://linuxtv.org/downloads/zbar/zbar-" + version + ".tar.bz2")) + (sha256 + (base32 + "0bmd93a15qpgbsq9c9j33qms18rdrgz6gbc48zi6z9w5pvrvi7z9")))) + (build-system gnu-build-system) + (arguments + '(#:configure-flags (list "--with-gtk=auto" + "--with-python=auto" + (string-append "--with-dbusconfdir=" + (assoc-ref %outputs "out") + "/etc") + "CXXFLAGS=-std=c++11"))) + (native-inputs + `(("glib" ,glib "bin") + ("pkg-config" ,pkg-config))) + (inputs + `(("gobject-introspection" ,gobject-introspection) + ("gtk+" ,gtk+) + ("imagemagick" ,imagemagick) + ("libjpeg" ,libjpeg-turbo) + ("python" ,python) + ("qtbase" ,qtbase) + ("qtx11extras" ,qtx11extras) + ("v4l-utils" ,v4l-utils))) + (synopsis "Bar code reader") + (description + "ZBar can read barcodes from various sources, such as video streams, +image files, and raw intensity sensors. It supports EAN-13/UPC-A, UPC-E, +EAN-8, Code 128, Code 93, Code 39, Codabar, Interleaved 2 of 5, QR Code and +SQ Code. Included with the library are basic applications for decoding +captured bar code images and using a video device (eg, webcam) as a bar code +scanner. For application developers, language bindings are included for C, +C++ and Python as well as GUI widgets for GTK and Qt.") + (home-page "https://github.com/mchehab/zbar") + (license license:lgpl2.1+)))