From patchwork Sat Sep 25 09:51:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liliana Marie Prikler X-Patchwork-Id: 33485 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 389C827BBE1; Fri, 1 Oct 2021 11:17:18 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8EE7A27BBE3 for ; Fri, 1 Oct 2021 11:17:17 +0100 (BST) Received: from localhost ([::1]:53194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWFbQ-0002Gw-KZ for patchwork@mira.cbaines.net; Fri, 01 Oct 2021 06:17:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWFbC-0002Fd-01 for guix-patches@gnu.org; Fri, 01 Oct 2021 06:17:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43199) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWFbB-0001Je-Nm for guix-patches@gnu.org; Fri, 01 Oct 2021 06:17:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWFbB-0000cF-J9 for guix-patches@gnu.org; Fri, 01 Oct 2021 06:17:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50933] [PATCH 1/3] gnu: Add libpotassco. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 01 Oct 2021 10:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50933 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50933@debbugs.gnu.org Received: via spool by 50933-submit@debbugs.gnu.org id=B50933.16330834132325 (code B ref 50933); Fri, 01 Oct 2021 10:17:01 +0000 Received: (at 50933) by debbugs.gnu.org; 1 Oct 2021 10:16:53 +0000 Received: from localhost ([127.0.0.1]:54741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWFb3-0000bR-2y for submit@debbugs.gnu.org; Fri, 01 Oct 2021 06:16:53 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:37807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWFb0-0000bA-KJ for 50933@debbugs.gnu.org; Fri, 01 Oct 2021 06:16:52 -0400 Received: by mail-wr1-f67.google.com with SMTP id a18so2580415wru.4 for <50933@debbugs.gnu.org>; Fri, 01 Oct 2021 03:16:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:in-reply-to:references:from:date:subject:to :content-transfer-encoding:mime-version; bh=ILPBPviU92LfC/G0qfbkkr28rQ2jIHcrIseR2qJEc84=; b=m5E5q7R5a4t5DNXryOH24OXbiJnANgUHVZLLBhx1n+gZhJW3h/yqXGU5r0lYDnQeWn EUd5QilJibguO2hwmsOVKLlYDywEuQOGGpwqwiafYa1wR+PlrxR6YB1mAzlqGTn2EGh/ doZ7TDhqY17O56KXexWdLQdiJVAF3a9nIGHPuXVyTLu+xE1eRwkmvAY26Xl+YBlS4P5B cL2ofc6ftn7ynQe8WJPwjR6qFEks4pxAMl6SsmXp4UQ/FNQQPxNU4wMft0C2oEODnFYw 8NMrbL9/IJwHi7QwIHM1GQoz/exQ2fsGC9XNqLUdjrh9ShDRBp75JPGdvQFy9S9K52BD SbKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:in-reply-to:references:from:date :subject:to:content-transfer-encoding:mime-version; bh=ILPBPviU92LfC/G0qfbkkr28rQ2jIHcrIseR2qJEc84=; b=vT705YoOTfMvtEdlSO34Mjy7ak6SegBfL5XtmHVlYOiiTnC9uQvNA84xCSVSA+sa/T gJgDu+BbQ1Q5d1m8VWk4FyWwUhs/Utbt5iPJc+DROLyyJFGjeXe3zw4ZinmlBsGRSKUJ Yb3/3Yx8CpVlz71g9IKTBKzfojNgikMHjeelDMzaRmuNArWBKzruA5DuD2U7cIQxYJ0o A3dPE8UrUIIYj7jxhTMjRriMV+LKEUBomsWdiRh0rEoeyz/SsTAX3lUanJnHtmGhV81X Y9Zq+FZX3L6Vw4alf8BSK0FPAwvImLyeuFt20nTEqikniB91KxEcmWu1wXneEwCRTt/W J1Vw== X-Gm-Message-State: AOAM5337OhxHXfwnRvoGqha3mgll0fUet2ByCRfvuAkNg15mpfGPWyrg 1JjSWiU1mzSDtX1aaVlDG/0qvBeje0A= X-Google-Smtp-Source: ABdhPJyHCxj01CbjJOWei9+FxCEwziYK/kVUpJtW0UrQkyKxKjuMOb3RQfFueYbucVauoJnApwgSkQ== X-Received: by 2002:a5d:4cc6:: with SMTP id c6mr11280336wrt.108.1633083404551; Fri, 01 Oct 2021 03:16:44 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id k18sm5348358wrh.68.2021.10.01.03.16.43 for <50933@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Oct 2021 03:16:44 -0700 (PDT) Message-Id: <6f6894593962c94927eedc074cca29e682a23cb2.1633081882.git.liliana.prikler@gmail.com> In-Reply-To: References: From: Liliana Marie Prikler Date: Sat, 25 Sep 2021 11:51:15 +0200 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 (libpotassco): New variable. --- gnu/packages/maths.scm | 49 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 164924b6af..dbb149db53 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -2194,6 +2194,55 @@ Computational Engineering and Sciences} at The University of Texas at Austin. includes a complete LAPACK implementation.") (license license:bsd-3))) +(define-public libpotassco + ;; No public release, update together with clasp + (let ((revision "1") + (commit "2f9fb7ca2c202f1b47643aa414054f2f4f9c1821")) + (package + (name "libpotassco") + (version (git-version "0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/potassco/libpotassco") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1c32f9gqclf7qx07lpx8wd720vfhkjqhzc6nyy8mjmgwpmb3iyyn")))) + (arguments + `(#:configure-flags '("-DLIB_POTASSCO_BUILD_TESTS=on" + "-DLIB_POTASSCO_INSTALL_LIB=on" + "-DBUILD_SHARED_LIBS=on") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-cmake + (lambda _ + (substitute* "CMakeLists.txt" + ;; clasp expects lowercase potassco and include directory is + ;; lowercase as well, so let's use that + (("\"cmake/Potassco\"") "\"cmake/potassco\"") + (("PotasscoConfig\\.cmake") "potassco-config.cmake") + (("PotasscoConfigVersion\\.cmake") + "potassco-config-version.cmake")) + (rename-file "cmake/PotasscoConfig.cmake.in" + "cmake/potassco-config.cmake.in")))))) + (build-system cmake-build-system) + (home-page "https://potassco.org/") + (synopsis "Utility library for Potassco's projects") + (description "@code{libpotassco} is a utility library providing functions +and datatypes for +@itemize +@item parsing, writing, and converting logic programs in aspif and smodels +format, +@item passing information between a grounder and a solver, +@item and defining and parsing command-line options and for creating +command-line applications. +@end itemize +Furthermore, it comes with the tool @command{lpconvert} that converts either +between aspif and smodels format or to a human-readable text format.") + (license license:expat)))) + (define-public ceres (package (name "ceres-solver")