From patchwork Sat Oct 1 22:15:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "J. Sims" X-Patchwork-Id: 6164 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 295EC27BBEE; Sat, 1 Oct 2022 23:17:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham 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 8A0A627BBEB for ; Sat, 1 Oct 2022 23:17:18 +0100 (BST) Received: from localhost ([::1]:38414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeknN-0008O5-9n for patchwork@mira.cbaines.net; Sat, 01 Oct 2022 18:17:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oekn9-0008NW-7H for guix-patches@gnu.org; Sat, 01 Oct 2022 18:17:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46751) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oekn8-0002WR-8h for guix-patches@gnu.org; Sat, 01 Oct 2022 18:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oekn7-0003zl-Pv for guix-patches@gnu.org; Sat, 01 Oct 2022 18:17:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58236] [PATCH] gnu: genie: Add genie. Resent-From: "J. Sims" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 01 Oct 2022 22:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58236 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58236@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.166466257515301 (code B ref -1); Sat, 01 Oct 2022 22:17:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 Oct 2022 22:16:15 +0000 Received: from localhost ([127.0.0.1]:45829 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oekmM-0003yi-Qs for submit@debbugs.gnu.org; Sat, 01 Oct 2022 18:16:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:44342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oekmL-0003yY-Ff for submit@debbugs.gnu.org; Sat, 01 Oct 2022 18:16:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57344) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oekmK-0008FR-S6 for guix-patches@gnu.org; Sat, 01 Oct 2022 18:16:13 -0400 Received: from mail-40130.protonmail.ch ([185.70.40.130]:40253) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oekmG-0002TU-Gn for guix-patches@gnu.org; Sat, 01 Oct 2022 18:16:12 -0400 Date: Sat, 01 Oct 2022 22:15:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1664662554; x=1664921754; bh=+g9rZDMMhgF/MehSpbgu+yOGmJ/ifYyaMR5XuXcqbnw=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID; b=CcPZsPZwWQ6Qj4y950fh2KO/VzU+6hfvm3iMWeM9mXbJ9x846wuV6xm/vwKAt2n5/ 8P82D+0lMug4qevO68faRHdYC6Fmku+GP7uCtnDJZy8XrYnEf9Wg/eR8UuOQHh2rB+ 0Hg8Cq/ACP7ikWDa73gx7vPIoqy/bYjaDO2Uz2RJPzn0Fwo4R7uO0jKhFa3vF7PtHL JJzzvJjOYxcmZrJWNhA30WNXkU3DFRoJtDatyXe5atxrz1ivJpexhfhmxpcX/XGyy0 hUpUVFnQKjiM/E0g/ISIPHD6OOPlHBxgkxZIY/vgDZ9qkcSyhOAw4vSRn4nR+U44N3 fex34c9BqYPBg== Message-ID: <4U8NHZEnxqwJYZmqbBYDduYPojljirob5Ax9z0XH0A1W-PPzFbyPbLlp1ncKs-H3CsRFZ52plHVTtoqpvrKaciBg1WkYdheAON-fY93Ui8U=@protonmail.com> Feedback-ID: 12133992:user:proton MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.40.130; envelope-from=jtsims@protonmail.com; helo=mail-40130.protonmail.ch 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, SPF_HELO_PASS=-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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: "J. Sims" X-ACL-Warn: , "J. Sims via Guix-patches" X-Patchwork-Original-From: "J. Sims via Guix-patches" via From: "J. Sims" X-getmail-retrieved-from-mailbox: Patches Hello, This is a patch to add the GENie project generator to Guix. It's a fork of Premake 4.4 that some other projects, notably the Scopes programming language, use. I'm submitting it independently instead of as part of a patch series with Scopes because I've already packaged it then accidentally deleted that package twice before. Scopes has some rough edges around packaging in a Guix-friendly way and I don't suspect I will have its package ready very soon. All of this together means I'd like to avoid repeating my previous mistakes and go ahead and get it into Guix. Thanks, Juli --------------------------BEGIN-PATCH------------------------------ * gnu/packages/build-tools.scm (genie): Add genie. --- gnu/packages/build-tools.scm | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) base-commit: 461b1e490935e720999e78dc29656ae3c9ea2ea3 diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm index 84a62d0fd6..55bec5f817 100644 --- a/gnu/packages/build-tools.scm +++ b/gnu/packages/build-tools.scm @@ -14,6 +14,7 @@ ;;; Copyright © 2020 Efraim Flashner ;;; Copyright © 2021 qblade ;;; Copyright © 2021 Maxim Cournoyer +;;; Copyright © 2022 Juliana Sims ;;; ;;; This file is part of GNU Guix. ;;; @@ -763,3 +764,46 @@ (define-public build @item Extensible language/compiler framework. @end itemize") (license license:gpl2+))) + +(define-public genie + (let ((commit "b139103697bbb62db895e4cc7bfe202bcff4ff25") + (ver "1167")) + (package + (name "genie") + (version ver) + (home-page "https://github.com/bkaradzic/genie") + (source + (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "16plshzkyjjzpfcxnwjskrs7i4gg0qn92h2k0rbfl4a79fgmwvwv")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (install-file "bin/linux/genie" + (string-append out "/bin")))))) + #:parallel-build? #t + #:tests? #f)) ;; tests have not been updated since Premake fork + (synopsis "Project generator tool") + (description "GENie (pronounced as Jenny) is project generator tool. It +automagically generates project from Lua script, making applying the same +settings for multiple projects easy. + +Supported project generators: +@itemize +@item GNU Makefile +@item JSON Compilation Database +@item Ninja (experimental) +@item Visual Studio 2010, 2012, 2013, 2015, 2017, 2019 +@item XCode +@end itemize") + (license license:bsd-3))))