From patchwork Sat Mar 19 16:47:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?6Lev6L6J?= X-Patchwork-Id: 37950 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 10CF927BBE9; Sat, 19 Mar 2022 16:48:29 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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 32CC427BBEA for ; Sat, 19 Mar 2022 16:48:28 +0000 (GMT) Received: from localhost ([::1]:39868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVcFf-0003JZ-BW for patchwork@mira.cbaines.net; Sat, 19 Mar 2022 12:48:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47170) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVcFS-0003JO-Lc for guix-patches@gnu.org; Sat, 19 Mar 2022 12:48:14 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38384) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVcFG-000586-N4 for guix-patches@gnu.org; Sat, 19 Mar 2022 12:48:14 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nVcFG-000609-Jf for guix-patches@gnu.org; Sat, 19 Mar 2022 12:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54467] gnu: add plan9port Resent-From: =?utf-8?b?6Lev6L6J?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 19 Mar 2022 16:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54467 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 54467@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164770844222862 (code B ref -1); Sat, 19 Mar 2022 16:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Mar 2022 16:47:22 +0000 Received: from localhost ([127.0.0.1]:60514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVcEc-0005wg-7r for submit@debbugs.gnu.org; Sat, 19 Mar 2022 12:47:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:45536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVcEa-0005wX-9p for submit@debbugs.gnu.org; Sat, 19 Mar 2022 12:47:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVcEZ-0003ET-QJ for guix-patches@gnu.org; Sat, 19 Mar 2022 12:47:19 -0400 Received: from [2607:f8b0:4864:20::1041] (port=53947 helo=mail-pj1-x1041.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVcEX-000509-VF for guix-patches@gnu.org; Sat, 19 Mar 2022 12:47:19 -0400 Received: by mail-pj1-x1041.google.com with SMTP id bx5so9785468pjb.3 for ; Sat, 19 Mar 2022 09:47:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=ebxxOG+l5FIsfFYoYvRbGtSIAO6vRGx9qbp2t3LscDA=; b=YolgXEFQt6P5vAJjV/+FuESXBbNP3gL7fA10/Hea56hhUabLMgMzXVoBo02/E7QOA8 i1APsF4rqHu/0axnk23P1VRI2X3G+MkixkFZEF7JRuow3spjVOUSeYDDvEnQyfc+VVlZ XOMWgYjSzA/ufgmP8qyn7YXqOjc3pcWzdveSu/4Exj6fzykgFrcPUd7SpnOdLoGJkmqv nEGl/TKAqc77gXgZA0Wx4QRRFMg98ngTC4uUJypTju5Wr+18lLymOhe29He5AizuZJVI EXo+KnjJBl3dFUSJK0Lu99btnj2slqgJ6A/uHJYfj7ZmE+ITN54SE0Z6GUJzzUBD4Hzj BGSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ebxxOG+l5FIsfFYoYvRbGtSIAO6vRGx9qbp2t3LscDA=; b=wNJezB5+1JAo4s6Vy9j0yFGOn4O+YBA8oxnITR5JSE1XUNk18uT4h/8U3+S+Gl47H3 uIIFSauGH091XFOFTjnc/IEBLXahKXKfUqER/J9C3YVZUQI+CGzdNufFe/vLVXGR/mRZ iKZgzsXDxZ20+nUddlwrsQ8kZAGk1RlfPxFJW0YUXsvqeOPyQ4XiPug/OCFIVf/YrT48 BWf3PPtpeAI1xeY7Bxonmn3EyrBrtxtUVwjQo1cRbvaRQxZ1usH+gPZk/98p++TbtFyL RPHuP5v9RTCCnGI8t9TXKOWZZY6e9963XpUj3tpClUkQuY3VdXAnP9GDwB2QeQK+y95s mbSg== X-Gm-Message-State: AOAM531aEGXss4ZeVzkhl9bi85Tp3lkSotrYdgiHh5F53Dleub2u2e+1 JcHeZ46xMgTOX90EZwP2TZ9TvP5h72cZitGCVcnGB1MDpbw= X-Google-Smtp-Source: ABdhPJy6pe0HWkNUnJLZD5CGs2z67ZqJ712KA76JHc7pHc1yDK4n3Q2yKtUcUX8j/vvVSj8XapgqtXjuT7KQXrW9uFA= X-Received: by 2002:a17:90b:4b0d:b0:1bc:4cdb:ebe3 with SMTP id lx13-20020a17090b4b0d00b001bc4cdbebe3mr17391697pjb.176.1647708435998; Sat, 19 Mar 2022 09:47:15 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6a10:4a14:0:0:0:0 with HTTP; Sat, 19 Mar 2022 09:47:15 -0700 (PDT) From: =?utf-8?b?6Lev6L6J?= Date: Sat, 19 Mar 2022 16:47:15 +0000 Message-ID: X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1041 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1041; envelope-from=luhux76@gmail.com; helo=mail-pj1-x1041.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From 6674eeadec48b44ab137ae7b874a254557c232dd Mon Sep 17 00:00:00 2001 From: Lu Hui Date: Sun, 20 Mar 2022 00:20:01 +0800 Subject: [PATCH 2/2] gnu: Add plan9port * gnu/packages/plan9.scm (plan9port) : New variable. --- gnu/packages/plan9.scm | 59 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/plan9.scm b/gnu/packages/plan9.scm index 73694c4ed3..5c4380e782 100644 --- a/gnu/packages/plan9.scm +++ b/gnu/packages/plan9.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2021 宋文武 +;;; Copyright © 2022 Lu Hui ;;; ;;; This file is part of GNU Guix. ;;; @@ -18,10 +19,16 @@ (define-module (gnu packages plan9) #:use-module (guix build-system gnu) + #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix packages) #:use-module (guix utils) #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages) + #:use-module (gnu packages base) + #:use-module (gnu packages bash) + #:use-module (gnu packages fontutils) + #:use-module (gnu packages perl) #:use-module (gnu packages xorg)) (define-public drawterm @@ -63,3 +70,55 @@ (define-public drawterm Plan 9 systems. It behaves like a Plan 9 kernel and will attempt to reconstruct a Plan 9 terminal-like experience from a non-Plan 9 system.") (license license:expat)))) + +(define-public plan9port + (let ((revision "0") (commit "bab7b73b85f865d20a5c4f2d78ac9e81b3d39109")) + (package + (name "plan9port") + (version (git-version "20220124" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/9fans/plan9port") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "17h6xdij3h00j87lc94q887sq45540lcp9h3kbxwxisd020h1i3v")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags (list (string-append "CC=" + ,(cc-for-target))) + #:tests? + #f ;no tests + #:phases + (modify-phases %standard-phases + (delete 'configure) ;configure in install phase + (delete 'build) ;build in install phase + (replace 'install + ;configure & build & install + (lambda* (#:key outputs native-inputs inputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) (libxt (assoc-ref inputs + "libxt")) + (system ,(%current-system)) + (builder (assoc-ref inputs "builder.sh"))) + (copy-file builder "./builder.sh") + (setenv "out" out) + (setenv "libxt" libxt) + (setenv "system" system) + (invoke "bash" "builder.sh"))))))) + (inputs `(("builder.sh" ,(search-auxiliary-file "plan9port/builder.sh")) + ("fontconfig" ,fontconfig) + ("freetype" ,freetype) + ("libx11" ,libx11) + ("libxt" ,libxt) + ("libxext" ,libxext) + ("xorgproto" ,xorgproto))) + (native-inputs `(("perl" ,perl) ("which" ,which) + ("bash" ,bash))) + (synopsis "Plan 9 from User Space") + (home-page "https://9fans.github.io/plan9port/") + (description + "Plan 9 from User Space (aka plan9port) is a port of many Plan 9 programs + from their native Plan 9 environment to Unix-like operating systems.") + (license license:expat)))) -- 2.34.0