From patchwork Mon Jan 25 10:21:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "vasilii.smirnov--- via Guix-patches\" via" X-Patchwork-Id: 26632 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 97D7A27BC1B; Mon, 25 Jan 2021 15:26:00 +0000 (GMT) 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_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,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 BF2E927BC1A for ; Mon, 25 Jan 2021 15:25:59 +0000 (GMT) Received: from localhost ([::1]:45416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l43kc-00030c-VT for patchwork@mira.cbaines.net; Mon, 25 Jan 2021 10:25:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3z1S-0002GA-3i for guix-patches@gnu.org; Mon, 25 Jan 2021 05:23:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54656) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l3z1R-0002sm-SF for guix-patches@gnu.org; Mon, 25 Jan 2021 05:23:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l3z1R-0002Tp-OQ for guix-patches@gnu.org; Mon, 25 Jan 2021 05:23:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46095] [PATCH] gnu: Add mingw-w64-tools. Resent-From: =?utf-8?q?L=C3=A9o?= Le Bouter Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Jan 2021 10:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46095 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46095@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16115701279454 (code B ref -1); Mon, 25 Jan 2021 10:23:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Jan 2021 10:22:07 +0000 Received: from localhost ([127.0.0.1]:37968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3z0Z-0002SQ-Eq for submit@debbugs.gnu.org; Mon, 25 Jan 2021 05:22:07 -0500 Received: from lists.gnu.org ([209.51.188.17]:39560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3z0X-0002SH-EB for submit@debbugs.gnu.org; Mon, 25 Jan 2021 05:22:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3z0X-0002DY-6x for guix-patches@gnu.org; Mon, 25 Jan 2021 05:22:05 -0500 Received: from mail.zaclys.net ([178.33.93.72]:39281) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3z0U-0002Sj-MM for guix-patches@gnu.org; Mon, 25 Jan 2021 05:22:04 -0500 Received: from localhost.localdomain (lam21-1_migr-78-196-200-185.fbx.proxad.net [78.196.200.185] (may be forged)) (authenticated bits=0) by mail.zaclys.net (8.14.7/8.14.7) with ESMTP id 10PALjhX035732 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 25 Jan 2021 11:21:58 +0100 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.zaclys.net 10PALjhX035732 Authentication-Results: mail.zaclys.net; dmarc=fail (p=reject dis=none) header.from=zaclys.net Authentication-Results: mail.zaclys.net; spf=fail smtp.mailfrom=lle-bout@zaclys.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zaclys.net; s=default; t=1611570118; bh=IfhMGtPyu+vSmJ2VtrhrtmPLZxBFodykZ9tFK5sZA6M=; h=From:To:Cc:Subject:Date:From; b=UvONpun7SK5qbujrjX3xRq/8qGCPb9yJ5PCb3yks8yXgufjRSBczhlMobB+NnDR8W 2HYp5bs67JeTea4oLMys6VoWCgVWl4zq4vmJYHCLUygbf7N0D4EKt4cR1r1mDKRZXb y/CtW6o75upuXQHpXgbkuYmA9HpbIFevhGVH2Xv4= Date: Mon, 25 Jan 2021 11:21:35 +0100 Message-Id: <20210125102135.13874-1-lle-bout@zaclys.net> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Received-SPF: pass client-ip=178.33.93.72; envelope-from=lle-bout@zaclys.net; helo=mail.zaclys.net 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, 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-Mailman-Approved-At: Mon, 25 Jan 2021 10:25:41 -0500 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" Reply-to: =?utf-8?q?L=C3=A9o?= Le Bouter X-ACL-Warn: , =?utf-8?q?L=C3=A9o?= Le Bouter via Guix-patches X-Patchwork-Original-From: guix-patches--- via From: "vasilii.smirnov--- via Guix-patches\" via" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/mingw.scm (mingw-w64-tools): New variable. --- gnu/packages/mingw.scm | 75 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/gnu/packages/mingw.scm b/gnu/packages/mingw.scm index b37f6c69bd..884cb7e39f 100644 --- a/gnu/packages/mingw.scm +++ b/gnu/packages/mingw.scm @@ -133,3 +133,78 @@ several new APIs such as DirectX and DDK, and 64-bit support.") #:with-winpthreads? #t)) (define-public mingw-w64 mingw-w64-i686) + +(define-public mingw-w64-tools + (package + (name "mingw-w64-tools") + (version "7.0.0") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/mingw-w64/mingw-w64/" + "mingw-w64-release/mingw-w64-v" version ".tar.bz2")) + (sha256 + (base32 "0a5njsa2zw2ssdz10jkb10mhrf3cb8qp9avs89zqmw4n6pzxy85a")))) + (build-system gnu-build-system) + (arguments + `(#:modules (((guix build gnu-build-system) #:prefix gnu:) + ,@%gnu-build-system-modules) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'cd-gendef + (lambda _ (chdir "mingw-w64-tools/gendef") + #t)) + + (add-after 'install 'cd-genidl + (lambda _ (chdir "../genidl") + #t)) + (add-after 'cd-genidl 'configure-genidl + (assoc-ref gnu:%standard-phases 'configure)) + (add-after 'configure-genidl 'build-genidl + (assoc-ref gnu:%standard-phases 'build)) + (add-after 'build-genidl 'check-genidl + (assoc-ref gnu:%standard-phases 'check)) + (add-after 'check-genidl 'install-genidl + (assoc-ref gnu:%standard-phases 'install)) + + (add-after 'install-genidl 'cd-genlib + (lambda _ (chdir "../genlib") + #t)) + (add-after 'cd-genlib 'configure-genlib + (assoc-ref gnu:%standard-phases 'configure)) + (add-after 'configure-genlib 'build-genlib + (assoc-ref gnu:%standard-phases 'build)) + (add-after 'build-genlib 'check-genlib + (assoc-ref gnu:%standard-phases 'check)) + (add-after 'check-genlib 'install-genlib + (assoc-ref gnu:%standard-phases 'install)) + + (add-after 'install-genlib 'cd-genpeimg + (lambda _ (chdir "../genpeimg") + #t)) + (add-after 'cd-genpeimg 'configure-genpeimg + (assoc-ref gnu:%standard-phases 'configure)) + (add-after 'configure-genpeimg 'build-genpeimg + (assoc-ref gnu:%standard-phases 'build)) + (add-after 'build-genpeimg 'check-genpeimg + (assoc-ref gnu:%standard-phases 'check)) + (add-after 'check-genpeimg 'install-genpeimg + (assoc-ref gnu:%standard-phases 'install))))) + (home-page "https://mingw-w64.org") + (synopsis "Tools of Minimalist GNU for Windows") + (description + "This package provides tools of Minimalist GNU for Windows. + +Minimalist GNU for Windows (@dfn{MinGW}) is a complete software +development environment for creating native Microsoft Windows applications. + +It includes a set of Windows-specific header files and static import libraries +which enable the use of the Windows API. It does not rely on any third-party C +runtime dynamic-link libraries (@dfn{DLL}s). + +Mingw-w64 is an advancement of the original mingw.org project and provides +several new APIs such as DirectX and DDK, and 64-bit support.") + (license (list + license:gpl3+ + license:lgpl2.1+))))