From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id UArrGbYBp2Ul+AAAqHPOHw:P1 (envelope-from ) for ; Tue, 16 Jan 2024 23:22:46 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id UArrGbYBp2Ul+AAAqHPOHw (envelope-from ) for ; Tue, 16 Jan 2024 23:22:46 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=pMj58egP; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705443766; h=from:from:sender:sender:reply-to: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=jd/S1FrUMFGqaOXDK2iy32JWYihY8LSHD6rs3sax1SU=; b=FPaMmQaELWdeB03tFCTB+JK0xf21jtLJgIju2AG5uFjWCa/fq9Ryc4vLyHshZr3pUMzdWI Wwzj3B9VJZSxOZL9kwoNF8/3eGWaAg1ktLSnQ41L01VBNIQkdc+4EaMRz842JGMGd3VKDm L12Fu1bYgtr+fQBXA5E/bmVlNRJGg+lm+SuAMtj5/I8vKq9RTenFDsjzg6EkbvVYnv4ola fQn8SrOCzkHN6F5Oh55UXOZef1fb5YUT5BnRqVzPNo8JPwyLxV7mWK2rUE7+6ky5EpaHFf UTiqdJrsEx1iL4kh3PbP3IGCmwNYWZhkFt01Hsh5HDu5j8kDmUyqeGS43Ul9AQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=pMj58egP; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705443766; a=rsa-sha256; cv=none; b=SzHy+l0CZpnFrHGzaayoZ4/WHaPn+L1solBkIcSTZZMXVpqjpeJQ9WsXjf/FJ5Sg8wBwqB fBZyYbk5UTCdme1LBnXAsdVrms+AYGmuaM1IWlwmG8OuwasWl00I8IQQ13pw8oC+S2l9zz mlQ7imcLKLBoDd+WRK6z/1Oadt5CzVE81V+docg6fMSk2ZpDTvIyWDrNbDkaZxHpoJKad8 6XGi+yz5FYGLBuS7+98oEV8/8tGBYUq3yLpEIAHTQIPRPoyd3AbTzln1nEZ0IboHqffKFo amVhy7PIh9ieJZfvbw1QcgNEeGVmerTXvtQdIRBQRFz2lySSZt7CfU+9z+MdVQ== 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 4818C1D5ED for ; Tue, 16 Jan 2024 23:22:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPrp2-0002wT-Oi; Tue, 16 Jan 2024 17:22:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPror-0002tp-A3 for guix-patches@gnu.org; Tue, 16 Jan 2024 17:22:06 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rPron-0005b1-6r for guix-patches@gnu.org; Tue, 16 Jan 2024 17:22:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rPron-0003qI-PG for guix-patches@gnu.org; Tue, 16 Jan 2024 17:22:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67963] [PATCH v2 17/37] gnu: Add perl-package-variant. Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Jan 2024 22:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67963 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67963@debbugs.gnu.org Cc: Felix Lechner Received: via spool by 67963-submit@debbugs.gnu.org id=B67963.170544366914644 (code B ref 67963); Tue, 16 Jan 2024 22:22:01 +0000 Received: (at 67963) by debbugs.gnu.org; 16 Jan 2024 22:21:09 +0000 Received: from localhost ([127.0.0.1]:50033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPrnw-0003nt-QK for submit@debbugs.gnu.org; Tue, 16 Jan 2024 17:21:09 -0500 Received: from sail-ipv4.us-core.com ([208.82.101.137]:33594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPrhC-0000nA-Gu for 67963@debbugs.gnu.org; Tue, 16 Jan 2024 17:14:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=e5rI4XAuLamsXml FL/aV5K7N9cpimhPWgXpRbWvXn5M=; h=references:in-reply-to:date:subject: cc:to:from; d=lease-up.com; b=pMj58egPf58n1UvAAAPIc9GKTBiOkqXh4CfJthRl GeIfMc79fhYl0YOM9QEzdtlf4/iLTtu+PFuuRXKzR9W19N1s5/dSms+UxMoHjl892kbFU/ aAa6lAMaDabEhN/YaNVBmhXr67gHstE3Ngxg+KDIgjVBFEhnfkxXUEHZRk1ak= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 5190516a (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Tue, 16 Jan 2024 22:14:04 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 35a9623f; Tue, 16 Jan 2024 22:14:04 +0000 (UTC) Date: Tue, 16 Jan 2024 14:12:55 -0800 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Reply-to: Felix Lechner X-ACL-Warn: , Felix Lechner via Guix-patches From: Felix Lechner via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.69 X-Spam-Score: -6.69 X-Migadu-Queue-Id: 4818C1D5ED X-Migadu-Scanner: mx12.migadu.com X-TUID: lVddTErtMwsc * gnu/packages/perl.scm (perl-package-variant): New variable. Change-Id: Ia9a35b63a3e57e854455467730f31164504bb1f3 --- gnu/packages/perl.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index dec4fca2bc..b510baccaa 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -8753,6 +8753,38 @@ (define-public perl-package-stash-xs compiler.") (license (package-license perl)))) +(define-public perl-package-variant + (package + (name "perl-package-variant") + (version "1.003002") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/M/MS/MSTROUT/Package-Variant-" version + ".tar.gz")) + (sha256 + (base32 "1p1n2ny5fb15bcbykyn523w6sv968gqs7nhjfm36dpac5yfq9vdj")))) + (build-system perl-build-system) + (native-inputs (list perl-test-fatal)) + (propagated-inputs (list perl-import-into + perl-module-runtime + perl-strictures-2)) + (home-page "https://metacpan.org/release/Package-Variant") + (synopsis "Parameterizable packages") + (description "This module allows you to build a variable package that +contains a package template and can use it to build variant packages at +runtime. + +Your variable package will export a subroutine which will build a variant +package, combining its arguments with the template, and return the name +of the new variant package. + +The implementation does not care about what kind of packages it builds, +be they simple function exporters, classes, singletons or something +entirely different.") + (license license:perl-license))) + (define-public perl-padwalker (package (name "perl-padwalker") -- 2.41.0