From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2J/uByDKSmMotgAAbAwnHQ (envelope-from ) for ; Sat, 15 Oct 2022 16:56:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UI7EByDKSmN41wAAauVa8A (envelope-from ) for ; Sat, 15 Oct 2022 16:56:32 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id ACD55CB64 for ; Sat, 15 Oct 2022 16:56:31 +0200 (CEST) Received: from localhost ([::1]:50468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojiaU-0001iV-TX for larch@yhetil.org; 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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665845791; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=kuvSxt1n3+tIFGjf6oi1gG/JPRN5V09UHwnJSZLiyNA=; b=p3ZvPIKczBMrtun7p2I+32oK1EF8+8jduz0x/Mv5Pj65vQ5WUE8CMxmNfa80ffE5AlT2+c 3JSm+g8GZhqZLt9OM4ozJ2JYE3ibX6+JasIBfMuV1TH31+v5g3duDMwfsmkBp7eXqCnjId P0t72/cwz6g+/5OgM7ARuYP3bIIa81wubYP+GmNc58Zad0cMT8BW0MJZUnkrX+YHeKAyRq uP6LsA39bQwVjV8tBhccnb7JlaxzUS7JTBX29It8T/lTkI7/71oDPPSy8M2YPy+jsAOWbe 1Fdz55bx1xMlFRA1ZldHLi7xwvP9QYx0hFxUxfvz2+8r+9CEoNzcarqAiUp6Lg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665845791; a=rsa-sha256; cv=none; b=sTCwzd79gVpLAf7XLH9ap7aU5UB27mmKAldZD2Ea23EvzxA9nHQ7z116CRSnGS0AtrNG/j BdsYut2bV21i1n4tUygm0EOj51PDFNBvWlvlf7bpnZYtiWzhEFKLcRBos+HoysC0jHCFfz TRXtOfMd4uWX8apGDdr6dP5cbUqYwuhMU1eTilfYUpOOQq9/BLg8Ra8gAc4M4y8H382elt ADyZ6UxbtUVp+RZeEOfesjqMBrbGdQ8jlr6OvQb7aLQmuvSzVCh0GWhT7Ts1iWrnal8qrM 59Dxyc1kJpNj7ZAZu4usbI9PveKPyaLHNavZmhfJh9koKIW+n2JzL7Jx1Bg7RQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=p2ENY2hm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 8.10 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=p2ENY2hm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: ACD55CB64 X-Spam-Score: 8.10 X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com X-TUID: 7lZ1uh4cDsN+ * 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") -- 2.38.0