From patchwork Sat Oct 15 14:45:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Liliana Marie Prikler X-Patchwork-Id: 43426 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 A0EBE27BBEA; Sat, 15 Oct 2022 15:56:31 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, PP_MIME_FAKE_ASCII_TEXT,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1911F27BBE9 for ; Sat, 15 Oct 2022 15:56:31 +0100 (BST) Received: from localhost ([::1]:50468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojiaU-0001iV-8k for patchwork@mira.cbaines.net; Sat, 15 Oct 2022 10:56:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojia3-0001Pq-Ao for guix-patches@gnu.org; Sat, 15 Oct 2022 10:56:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43343) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojia3-0000Dj-2W for guix-patches@gnu.org; Sat, 15 Oct 2022 10:56:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojia2-0001Jq-TS for guix-patches@gnu.org; Sat, 15 Oct 2022 10:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57181] [PATCH v2 1/4] gnu: Add aiger. References: <923508243.78855.1660404889221@ox93.mailbox.org> In-Reply-To: <923508243.78855.1660404889221@ox93.mailbox.org> Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 15 Oct 2022 14:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57181 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57181@debbugs.gnu.org Cc: mail@maxheisinger.at Received: via spool by 57181-submit@debbugs.gnu.org id=B57181.16658457555037 (code B ref 57181); Sat, 15 Oct 2022 14:56:02 +0000 Received: (at 57181) by debbugs.gnu.org; 15 Oct 2022 14:55:55 +0000 Received: from localhost ([127.0.0.1]:42416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojiZu-0001J5-UR for submit@debbugs.gnu.org; Sat, 15 Oct 2022 10:55:55 -0400 Received: from mail-ej1-f65.google.com ([209.85.218.65]:38514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojiZr-0001ID-62 for 57181@debbugs.gnu.org; Sat, 15 Oct 2022 10:55:53 -0400 Received: by mail-ej1-f65.google.com with SMTP id fy4so16163205ejc.5 for <57181@debbugs.gnu.org>; Sat, 15 Oct 2022 07:55:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:content-transfer-encoding:cc:to:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=kuvSxt1n3+tIFGjf6oi1gG/JPRN5V09UHwnJSZLiyNA=; b=p2ENY2hmVLWeAl5ROPjEiDZteE2YboutUlEGYCfioLBkuvT16HuA6tLoglYpVKspr/ bDI/AGVNZTQ12pBSlPnm5a/O2b71QUMlHKFrhYrPJC1j4/l5ejsiZAFEdS+pszSTo5ro pNmIjHHkcCROX107D0913Lwt+DHFRDPkpCkcBnkO1E5gyHH767vHJElRgfGUASaeRHQe fW4/3DN4GNWvJ3tqJWolc8UCMPIyn7b6qM1MUyC/FWXX8ABkyJd2aGwDm103+d6TBXM9 +WHdVXCfE4kDfmhAYpyT35Mgqvl30tSbrj01h4kYGrLduRog1MYt9KmIb+xzz57EunQm J72A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:content-transfer-encoding:cc:to:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kuvSxt1n3+tIFGjf6oi1gG/JPRN5V09UHwnJSZLiyNA=; b=syBCt5ZjAQgpdTbGh0hcc1QGg0aH0OPgD/c0cWb8+4UoNIqZS4Qyz/vii36adUNzli iLAHzgo331VeOxDf0uzx6qUdbumPRCXKisNgBcZz74gYR6864Dc8xgN97XbFLgkipzIu 3cyLD33fW+/+i4mm8DuFk0HQGDXKrgR1iRAihntcwR7Onou8p308B1HMSAZD78rLmVWO 432YjQWY/sxaiBszYIw6mTTQVkf4bfghvNTnkn6AyTVnjdI1jClcs5qi7mXXhhzY8djA J7tM86CQv51m22LHSWqymIHaSkaeKuSaCetFJK5ZaR9eVebQbr3gX7W5u2t5HxdJYQrO A0nA== X-Gm-Message-State: ACrzQf0pQWBn8CSfMEstuPcI8nl+DbostskNkTe0m1HDOiZr3Aq4qV6X ZpPChJtga+vAeFKo36HWXxqdpK+Hcvg= X-Google-Smtp-Source: AMsMyM5uS62PanmOIAiIHnEIU599Uav65Sf9P8LLSobWJacs98uLE0cxRXg859ghxAia58GzauaZ4g== X-Received: by 2002:a17:907:724a:b0:78d:b3bb:9ca7 with SMTP id ds10-20020a170907724a00b0078db3bb9ca7mr2301517ejc.86.1665845745075; Sat, 15 Oct 2022 07:55:45 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id f20-20020a17090631d400b0078a543e9301sm3129583ejf.200.2022.10.15.07.55.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Oct 2022 07:55:44 -0700 (PDT) From: Liliana Marie Prikler Date: Sat, 15 Oct 2022 16:45:33 +0200 Message-ID: <754c3ee44aed42ff2e441178d3d3328bfdde15dd.camel@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (aiger): New variable. --- gnu/packages/maths.scm | 54 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index ffd2a89d2f..1e9d7b8be8 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -55,6 +55,7 @@ ;;; Copyright © 2022 Philip McGrath ;;; Copyright © 2022 Marek Felšöci ;;; Copyright © 2022 vicvbcun +;;; Copyright © 2022 Liliana Marie Prikler ;;; ;;; This file is part of GNU Guix. ;;; @@ -7375,6 +7376,59 @@ (define-public kissat optimized algorithms and implementation.") (license license:expat))) +(define-public aiger + (package + (name "aiger") + (version "1.9.9") + (source (origin + (method url-fetch) + (uri (string-append "http://fmv.jku.at/aiger/aiger-" + version ".tar.gz")) + (sha256 + (base32 + "1ish0dw0nf9gyghxsdhpy1jjiy5wp54c993swp85xp7m6vdx6l0y")))) + (outputs (list "out" "static")) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ; no check target + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-source + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "aiger.c" + (("\"(gzip|gunzip)" all cmd) + (string-append + "\"" + (search-input-file inputs (string-append "bin/" cmd))))))) + (add-after 'unpack 'patch-build-files + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "makefile.in" + (("test -d .*") "true") + (("/usr/local") (assoc-ref outputs "out"))))) + (replace 'configure + (lambda* (#:key configure-flags #:allow-other-keys) + (apply invoke "./configure.sh" configure-flags))) + (add-after 'install 'install-static + (lambda* (#:key outputs #:allow-other-keys) + (apply invoke #$(ar-for-target) "rcs" "libaiger.a" + (find-files "." "\\.o$")) + (let* ((static (assoc-ref outputs "static")) + (lib (string-append static "/lib")) + (incl (string-append static "/include/aiger"))) + (mkdir-p lib) + (mkdir-p incl) + (install-file "libaiger.a" lib) + (for-each (lambda (f) (install-file f incl)) + (find-files "." "\\.h$")))))))) + (inputs (list gzip)) + (home-page "http://fmv.jku.at/aiger") + (synopsis "Utilities for And-Inverter Graphs") + (description "AIGER is a format, library and set of utilities for +@acronym{AIG, And-Inverter Graphs}s. The focus is on conversion utilities and a +generic reader and writer API.") + (license (list license:expat + license:bsd-3)))) ; blif2aig + (define-public libqalculate (package (name "libqalculate")