From patchwork Tue Oct 4 19:37:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "J. Sims" X-Patchwork-Id: 43141 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 127E527BBE9; Tue, 4 Oct 2022 20:38:15 +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=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 5744427BBEA for ; Tue, 4 Oct 2022 20:38:14 +0100 (BST) Received: from localhost ([::1]:42440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofnk5-0002Zi-Ek for patchwork@mira.cbaines.net; Tue, 04 Oct 2022 15:38:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofnju-0002Yq-Bw for guix-patches@gnu.org; Tue, 04 Oct 2022 15:38:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56179) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofnju-0006GI-3e for guix-patches@gnu.org; Tue, 04 Oct 2022 15:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ofnjt-0001hQ-Ug for guix-patches@gnu.org; Tue, 04 Oct 2022 15:38: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: Tue, 04 Oct 2022 19:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58236 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler Cc: 58236@debbugs.gnu.org Received: via spool by 58236-submit@debbugs.gnu.org id=B58236.16649122446475 (code B ref 58236); Tue, 04 Oct 2022 19:38:01 +0000 Received: (at 58236) by debbugs.gnu.org; 4 Oct 2022 19:37:24 +0000 Received: from localhost ([127.0.0.1]:55254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofnjH-0001gL-Fd for submit@debbugs.gnu.org; Tue, 04 Oct 2022 15:37:24 -0400 Received: from mail-40138.protonmail.ch ([185.70.40.138]:52297) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofnjF-0001fw-7t for 58236@debbugs.gnu.org; Tue, 04 Oct 2022 15:37:22 -0400 Date: Tue, 04 Oct 2022 19:37:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1664912234; x=1665171434; bh=YU2G+zYrAXFk8yIVk6bKogB0yiA+tYwGLPuDZpVIYYw=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=PacsswOPoTnAPLYEYv61UxyhtHw4BPZSeLsK8n4KUGZIw1KFbswx6BByy1DYq6Ihb vi8/Qj30Cpg2PCSyqib1Eu52WXTFIDo8zvYbiSqBI7swnfrTS0q8JfxaoAvA/oYDqT mdRQSQaNKuvUlC0z1B1eP4BTsZGqD4l9JcrquiGCBhRrze46mHRN1CaLNk1DnoHrN8 taAFRDJRCQ4fOq78Xpd3misXTMCL3aiqRzeSyERcAb8c0BQxgfoQgHBwLgAEpvtIcj bioPpnCmqKLQFaP2VgoZu1H/Cl+O74YRuAS0ZlfcfYiOqq+GX6XOEIPFF2i6HG4RhI TFSM/Ahho4NEA== Message-ID: In-Reply-To: <3b2b96fccc4cc1df3dc34963f2c7ce8eff04f857.camel@ist.tugraz.at> References: <4U8NHZEnxqwJYZmqbBYDduYPojljirob5Ax9z0XH0A1W-PPzFbyPbLlp1ncKs-H3CsRFZ52plHVTtoqpvrKaciBg1WkYdheAON-fY93Ui8U=@protonmail.com> <3b2b96fccc4cc1df3dc34963f2c7ce8eff04f857.camel@ist.tugraz.at> Feedback-ID: 12133992:user:proton MIME-Version: 1.0 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 On Monday, October 3rd, 2022 at 01:45, Liliana Marie Prikler wrote: > Am Samstag, dem 01.10.2022 um 22:15 +0000 schrieb J. Sims: > > > 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. > > --- > > Usually, adding comments after this line is preferred. > > > gnu/packages/build-tools.scm | 44 > > ++++++++++++++++++++++++++++++++++++ > > 1 file changed, 44 insertions(+) > > > > 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 efraim@flashner.co.il > > ;;; Copyright © 2021 qblade qblade@protonmail.com > > ;;; Copyright © 2021 Maxim Cournoyer maxim.cournoyer@gmail.com > > +;;; Copyright © 2022 Juliana Sims jtsims@protonmail.com > > ;;; > > ;;; 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) > > Use git-version. > > > + (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 > > Prefer lists of G-Expressions. > > > + (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 > > I don't think this one's needed. If however it is necessary, look > towards webkit for how to hack in -j2. > > > + #:tests? #f)) ;; tests have not been updated since Premake > > fork > > That sounds bad. Do they all fail or are some of them salvagable? > > > + (synopsis "Project generator tool") > > + (description "GENie (pronounced as Jenny) is project generator > > tool. It > > I think we can do without pronunciation guides. > > > +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") > > Make sure your description consists of complete sentences. > > > + (license license:bsd-3)))) > > > > base-commit: 461b1e490935e720999e78dc29656ae3c9ea2ea3 > > > Cheers Thanks for the feedback (and the kick in the pants I needed to finally get my hands dirty with gexps)! I've incorporated all of your comments. I'd like to note, though, that the tests are apparently entirely manual. I asked the developer how tests should be run and the response was essentially, "compile the project and use it." For what it's worth, I have indeed compiled and used this project in the past, so it should work fine. -Juli From fffb22d1a7c7551fd3d7d843663bac0e61bf72fa Mon Sep 17 00:00:00 2001 From: jts Date: Sat, 1 Oct 2022 16:30:06 -0500 Subject: [PATCH] gnu: genie: Add genie. * gnu/packages/build-tools.scm (genie): Add genie. --- gnu/packages/build-tools.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm index 84a62d0fd6..28418c236a 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,38 @@ (define-public build @item Extensible language/compiler framework. @end itemize") (license license:gpl2+))) + +(define-public genie + (let ((commit "b139103697bbb62db895e4cc7bfe202bcff4ff25") + (version "1167") + (revision "0")) + (package + (name "genie") + (version (git-version version revision commit)) + (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 + (list #:phases #~(modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda _ + (install-file "bin/linux/genie" + (string-append #$output "/bin"))))) + #:tests? #f)) ;only manual tests + (synopsis "Project generator tool") + (description + "GENie is project generator tool. It generates projects from +Lua scripts, making applying the same settings for multiple projects easy. It +supports generating projects using GNU Makefiles; JSON Compilation Database; +Visual Studio 2010, 2012, 2013, 2015, 2017, and 2019; XCode; and experimentally +supports Ninja.") + (license license:bsd-3)))) base-commit: a96ebe47b0686b5dd7ebe5fc133073abce559f4d -- 2.37.3