From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0D2JO2h7hGBuMwAAgWs5BA (envelope-from ) for ; Sat, 24 Apr 2021 22:11:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EEUoN2h7hGA7XwAAB5/wlQ (envelope-from ) for ; Sat, 24 Apr 2021 20:11:20 +0000 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 3053127A34 for ; Sat, 24 Apr 2021 22:11:20 +0200 (CEST) Received: from localhost ([::1]:33108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1laOcZ-0003rU-Cj for larch@yhetil.org; Sat, 24 Apr 2021 16:11:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laOcJ-0003qE-DK for guix-patches@gnu.org; Sat, 24 Apr 2021 16:11:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58236) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1laOcI-00044v-E8 for guix-patches@gnu.org; Sat, 24 Apr 2021 16:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1laOcI-0006cq-6m for guix-patches@gnu.org; Sat, 24 Apr 2021 16:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48003] Add julia-gumbo with dependencies Resent-From: =?UTF-8?Q?Nicol=C3=B2?= Balzarotti Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 24 Apr 2021 20:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48003 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 48003@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161929502025421 (code B ref -1); Sat, 24 Apr 2021 20:11:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Apr 2021 20:10:20 +0000 Received: from localhost ([127.0.0.1]:41549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1laObc-0006bx-6b for submit@debbugs.gnu.org; Sat, 24 Apr 2021 16:10:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:33166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1laOba-0006bo-0h for submit@debbugs.gnu.org; Sat, 24 Apr 2021 16:10:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laObZ-00038R-Q8 for guix-patches@gnu.org; Sat, 24 Apr 2021 16:10:17 -0400 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]:33587) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1laObX-0003W5-CF for guix-patches@gnu.org; Sat, 24 Apr 2021 16:10:17 -0400 Received: by mail-ej1-x633.google.com with SMTP id g5so71877173ejx.0 for ; Sat, 24 Apr 2021 13:10:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=KHS2JHaeHWI5TjaUF/yi2I6SATjVjW2VTDnUH5FUq8A=; b=hMTocT9SUSJYD7LpY9/ogwHndy1ByIvS5ToUQ9diwiA+wdM+WpuRbFC5kCFBoRjAbq J5T9KLtwR/6mtIWLIA0Iy8AHEl1xwtCwj/M1T6pZVwJ+oHk4a4E51UIDb8SuAiVrSdKs PsTIMzKVsyZ63TmXffY8h2PK/jFJrKrS6d1ui4YcaEXCO8Cl35oNO/o54Tg7cXpNGfAj 4DTLvRMmMpR38QrulyetbuLwKgsFMoh+WwO17dYUoT/gF/fk3OxsBMmVZ5Mf/WnmrNF6 potUrB2pZafrwLmqJZRfHziXjuyyXwXEGUqWVvjwAsFtX5VRGxOIuzMcKmESe6PVi6KY Tkvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=KHS2JHaeHWI5TjaUF/yi2I6SATjVjW2VTDnUH5FUq8A=; b=ljegyDK3Pplh8NoC2nl+0gRTF3PdcCOgmvWHNzZcB4+9AyEg78Z4L8cmnoXYww5TtA iwGAsGep9r603FlB07e/eIyZHqCxvnCz7OgMm0ryXxFwvja5Yeo72tkyF4gSdgm2VNaC lHFWjd1qd2aZvocu2yfL+f5j1gYHcfY9oKw7JvEP28H3Ywba1iYKXkmC40m2TDIOH0F0 kjsEIUpOp2k0n+VAGzDdqGWqxgBr0IuQTw4WGNyiqR3Gj346Mx2TNeD8JFlrhnFnA8/u pJYHsH+VcjN65hHSBT3RE6Bec+TQmy27PEw2IkjCzIbbj3sAyuKpQq5SvKYPhN18sRle TZow== X-Gm-Message-State: AOAM533OX14X/2ArykNk2l8v/GNbNrCERrxeloQgwDkiR1HW6SZX9Urw QkIIgXuCFgsO43isbDgUgnqyuRrfuTQ= X-Google-Smtp-Source: ABdhPJzzdL8zjcKHCZBTtvnFS+Ke7hJQU03XSlPaxmrES/UEkv9NX6HAEZOR3p+mbE0bT6KU4+fs8Q== X-Received: by 2002:a17:906:170f:: with SMTP id c15mr10368486eje.358.1619295013209; Sat, 24 Apr 2021 13:10:13 -0700 (PDT) Received: from guixSD (host-79-17-142-89.retail.telecomitalia.it. [79.17.142.89]) by smtp.gmail.com with ESMTPSA id w13sm9925971edx.80.2021.04.24.13.10.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Apr 2021 13:10:12 -0700 (PDT) From: =?UTF-8?Q?Nicol=C3=B2?= Balzarotti Date: Sat, 24 Apr 2021 22:09:59 +0200 Message-ID: <87k0origvc.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::633; envelope-from=anothersms@gmail.com; helo=mail-ej1-x633.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619295080; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=KHS2JHaeHWI5TjaUF/yi2I6SATjVjW2VTDnUH5FUq8A=; b=XffdRQVSSPt9z38dsgiohtTY7iu0srBSNbUmMuCOhyptWmW5VjGVv2R1lGMt1Azpny/TzW 7HTwb+oLpIp33Oi9uXCBK0Tob3NsnBwF44MIbSR2ai3r9mwKWTUPVlpqWpiccuMTExlyo3 p08Vmd9yrLz0+whYUg0W3rzyVkKjaJ1OsXYkD3UnYIFlSMkRlodA6vC79pd2f04jA8zpZn NsiKFMAeouv/r9OtvCsrN60NC24LoP+yQPc4L8ASjSuzUL8KN4Moj7RjBIQ1WvlAzrz0/W sHvuzOPfoy+2nZy2jUxlGwChBn90eYiNCc8oNuD+NHN7Hgd1ES34F718LdlgIQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619295080; a=rsa-sha256; cv=none; b=k3iyyFBI5UfEMahM6cVBhuZ1/90Ehfs16sk1omaAHRvvr5675dy24BegDCmgaiNEgqRoDe A0jXJHVC0s+07vX8UAVQhtnR8j7YWqwfHeGjl0qY8oncWYuKhuxOz4oJoK7Z7ZIbBohCnr RYtnoaR+c2l8McRKDAB66knBQCzdotl/+gGow+R77kVMHl/kgdH++lgGaUvlUlwC37CVvC 7lYGW5wzQdzXR5mxII4efaCvyVX3oMB+8EH+dyC2hFswyv9kmQ7eZOAi0iHuDXgLXF7tUP KZeVBr+Tt9uvGE0doS9rDiuvKi8T36XuO57NylfjoEOPNE7vRP2xXLXHsYmq2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=hMTocT9S; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=hMTocT9S; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 3053127A34 X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: saO0oioQjU1B --=-=-= Content-Type: text/plain Hi! Three simple patches attached to have Gumbo.jl with its dependencies. Thanks! --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-julia-abstracttrees.patch >From ebd7c319ea086ccf43d65f0100f608ee87374dbf Mon Sep 17 00:00:00 2001 From: nixo Date: Sat, 24 Apr 2021 19:33:27 +0200 Subject: [PATCH 1/3] gnu: Add julia-abstracttrees. * gnu/packages/julia-xyz.scm (julia-abstracttrees): New variable. --- gnu/packages/julia-xyz.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm index 9812162ce1..21815387de 100644 --- a/gnu/packages/julia-xyz.scm +++ b/gnu/packages/julia-xyz.scm @@ -51,6 +51,29 @@ implement FFTs (such as @code{FFTW.jl} or @code{FastTransforms.jl}) extend the types/functions defined in AbstractFFTs.") (license license:expat))) +(define-public julia-abstracttrees + (package + (name "julia-abstracttrees") + (version "0.3.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/JuliaCollections/AbstractTrees.jl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "16is5n2qa69cci34vfazxsa7ik6q0hbnnqrbrhkq8frh142f1xs8")))) + (build-system julia-build-system) + (home-page "https://juliacollections.github.io/AbstractTrees.jl/stable/") + (synopsis "Abstract Julia interfaces for working with trees") + (description "This Julia package provides several utilities for working +with tree-like data structures. Most importantly, it defines the +@code{children} method that any package that contains such a data structure +may import and extend in order to take advantage of any generic tree algorithm +in this package.") + (license license:expat))) + (define-public julia-adapt (package (name "julia-adapt") -- 2.31.1 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-gnu-Add-julia-gumbo-jll.patch >From 6e225f07e1380d42053df8ca9a40ed6997b0dd3f Mon Sep 17 00:00:00 2001 From: nixo Date: Sat, 24 Apr 2021 21:52:54 +0200 Subject: [PATCH 2/3] gnu: Add julia-gumbo-jll. * gnu/packages/julia-xyz.scm (julia-gumbo-jll): New variable. --- gnu/packages/julia-xyz.scm | 42 +++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm index 21815387de..582072e320 100644 --- a/gnu/packages/julia-xyz.scm +++ b/gnu/packages/julia-xyz.scm @@ -24,7 +24,8 @@ #:use-module (guix build-system julia) #:use-module (gnu packages gcc) #:use-module (gnu packages maths) - #:use-module (gnu packages tls)) + #:use-module (gnu packages tls) + #:use-module (gnu packages web)) (define-public julia-abstractffts (package @@ -647,6 +648,45 @@ functions (or any callable object, really) using forward mode automatic differentiation (AD).") (license license:expat))) +(define-public julia-gumbo-jll + (package + (name "julia-gumbo-jll") + (version "0.10.1+1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/JuliaBinaryWrappers/Gumbo_jll.jl") + (commit (string-append "Gumbo-v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "00a182x5hfpjzyvrxdn8wh4h67q899p5dzqp19a5s22si4g41k76")))) + (build-system julia-build-system) + (arguments + '(#:tests? #f ; no runtests + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'override-binary-path + (lambda* (#:key inputs #:allow-other-keys) + (let ((gumbo (string-append (assoc-ref inputs "gumbo-parser")))) + (for-each + (lambda (wrapper) + (substitute* wrapper + (("(const libgumbo = )\"(.*)\"" all const libname) + (string-append const "\"" gumbo "/lib/" libname "\"\n")) + (("(global artifact_dir =).*" all m) + (string-append m " \"" gumbo "\"")))) + ;; There's a Julia file for each platform, override them all + (find-files "src/wrappers/" "\\.jl$")))))))) + (inputs + `(("gumbo-parser" ,gumbo-parser))) + (propagated-inputs + `(("julia-jllwrappers" ,julia-jllwrappers))) + (home-page "https://github.com/JuliaBinaryWrappers/Gumbo_jll.jl") + (synopsis "Gumbo HTML parsing library wrappers") + (description "This package provides a wrapper for Gumbo HTML parsing library.") + (license license:expat))) + (define-public julia-http (package (name "julia-http") -- 2.31.1 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0003-gnu-Add-julia-gumbo.patch >From 90d759ff8a8919763ded16800f5f82c61968976c Mon Sep 17 00:00:00 2001 From: nixo Date: Sat, 24 Apr 2021 21:58:26 +0200 Subject: [PATCH 3/3] gnu: Add julia-gumbo. * gnu/packages/julia-xyz.scm (julia-gumbo): New variable. --- gnu/packages/julia-xyz.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm index 582072e320..a8402f82dc 100644 --- a/gnu/packages/julia-xyz.scm +++ b/gnu/packages/julia-xyz.scm @@ -648,6 +648,29 @@ functions (or any callable object, really) using forward mode automatic differentiation (AD).") (license license:expat))) +(define-public julia-gumbo + (package + (name "julia-gumbo") + (version "0.8.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/JuliaWeb/Gumbo.jl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1g22dv3v7caakspv3pdahnqn937fzzsg9y87rj72hid9g8lxl1gm")))) + (build-system julia-build-system) + (propagated-inputs + `(("julia-abstracttrees" ,julia-abstracttrees) + ("julia-gumbo-jll" ,julia-gumbo-jll))) + (home-page "https://github.com/JuliaWeb/Gumbo.jl") + (synopsis "Julia wrapper around Google's gumbo C library for parsing HTML") + (description "@code{Gumbo.jl} is a Julia wrapper around Google's gumbo +library for parsing @code{HTML}.") + (license license:expat))) + (define-public julia-gumbo-jll (package (name "julia-gumbo-jll") -- 2.31.1 --=-=-=--