From patchwork Sun Sep 5 04:23:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andy Tai X-Patchwork-Id: 32631 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 58CB027BBE3; Sun, 5 Sep 2021 05:25:14 +0100 (BST) 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_H2,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 BF20027BBE1 for ; Sun, 5 Sep 2021 05:25:13 +0100 (BST) Received: from localhost ([::1]:46146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMjiS-0000g8-Qu for patchwork@mira.cbaines.net; Sun, 05 Sep 2021 00:25:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41344) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMjiI-0000fi-PM for guix-patches@gnu.org; Sun, 05 Sep 2021 00:25:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37404) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mMjiI-0006S8-Hz for guix-patches@gnu.org; Sun, 05 Sep 2021 00:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mMjiI-0005f7-Dz for guix-patches@gnu.org; Sun, 05 Sep 2021 00:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50229] [PATCH] gnu: Add genie Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 05 Sep 2021 04:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50229 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Sarah Morgensen , 50229@debbugs.gnu.org Received: via spool by 50229-submit@debbugs.gnu.org id=B50229.163081588321738 (code B ref 50229); Sun, 05 Sep 2021 04:25:02 +0000 Received: (at 50229) by debbugs.gnu.org; 5 Sep 2021 04:24:43 +0000 Received: from localhost ([127.0.0.1]:48950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMjhv-0005eU-ID for submit@debbugs.gnu.org; Sun, 05 Sep 2021 00:24:42 -0400 Received: from mail-io1-f43.google.com ([209.85.166.43]:45663) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMjht-0005eH-Uo for 50229@debbugs.gnu.org; Sun, 05 Sep 2021 00:24:38 -0400 Received: by mail-io1-f43.google.com with SMTP id e186so4174803iof.12 for <50229@debbugs.gnu.org>; Sat, 04 Sep 2021 21:24:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atai-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ueFm5TRvadASVwwhESunzf33p/CJajFcVmils73TB6g=; b=ocAx0QWZrQvEEXHlNV9PpFIALHXRHd5p9A+g1BdA8+oiyYo9NGaqtBTZip5GOjlrX6 6WhpubGfTEw2ha7apBNiSF9voe+EghQgZFmxa/pPmX5dUjIUT6FncPVX32of3T26QW5I rJxW84lLunZl3izpMR2NiXvBzfWX8eHkCjTwfKxdK3ykM+RGCuNqDGL2vgidFVlCUKFB S+hQxsGM9DdXnCglvSaoslC8yoiKfhtPvK5MD2kJUgsLk3CDzKh1THF+uBQgvCqhVpDC NnViBloEGXPTsyTdOdTtWidXpe6R8qlbbqwDfsmdkjT0sd0pRJOALAd0NOigGAFph78C XuBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ueFm5TRvadASVwwhESunzf33p/CJajFcVmils73TB6g=; b=q4/NHiPZl0P+IKXAhi+oodxvkT2r4G7Ho4Mx3YavDYw/6AlR2/304KFHJJw00uJbAz Q48/Qk3HMDeSznmElr7wIeSMLL3htA1WXgDf3d/kWJpVIBFXrP9wf+60gs+9k4TxQ7GZ uWk+Xj3naaiV4xSq7RS9p1hUG8Rmh+tLm8ksQ89+j7QVYVxBUBw9vsroXrhvX9xGUbff N6o2y0Ii1WTKA9wAr142C6013nckHAxOHYFbzEDfXFIBYsvPNvAxMe8rdfNAq7LWpH7i Gyiiko160QGtuQNnrQ3jSwRTrHQgzLP6/2qO8wQ69/YuX4tSyG+Hn/APjys5W7aH7HBq q7og== X-Gm-Message-State: AOAM530ENj5aYzDTv1aeeqHiSuEmfkAarRrW7AzjMDl+vROJqSk0JsnQ JICUXHkl786recGjTrrNZ2TPLbzkH8X3BYxHaa8= X-Google-Smtp-Source: ABdhPJxEY434S8CKHtqqgOtDW4vgorOfSMz2EuhMFvOANS0NI13HP1Zr21P5ygwRnFunS1cSBpykWCYNIrV+ZNjr2a0= X-Received: by 2002:a02:c7c6:: with SMTP id s6mr5611800jao.34.1630815871945; Sat, 04 Sep 2021 21:24:31 -0700 (PDT) MIME-Version: 1.0 References: <86k0k21aax.fsf@mgsn.dev> In-Reply-To: <86k0k21aax.fsf@mgsn.dev> From: Andy Tai Date: Sat, 4 Sep 2021 21:23:55 -0700 Message-ID: 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 On Mon, Aug 30, 2021 at 9:56 PM Sarah Morgensen wrote: > It looks like genie bundles lua 5.3.0, can this be removed since we have > a lua 5.3 package? comments added explaining why Lua is not a native input at this time. > > Does CC need to be set to support cross-compilation like in premake4? (I > haven't tested either way.) added as in premake4 > There's a 'tests' folder in the source, so is this true? :) > The test folder was from premake4 and as is does not work for genie. Added comment about this. > > Looking at the project description, perhaps "project files" or "project > build scripts" would be more clear? As well as specifying the different > systems (Makefile, ...) it supports. > description updated per suggestion > > +making applying the same settings for multiple projects easy..") > extra period ^ > removed > > + (license license:bsd-3)))) > > According to LICENSE, the majority of the project is under BSD-3, but > inspect.lua and profiler.lua are expat. > license list updated and commented as above. > -- > Sarah From 2a01769e8c2642597599007f0871f29615136b56 Mon Sep 17 00:00:00 2001 From: Andy Tai Date: Sat, 4 Sep 2021 21:16:21 -0700 Subject: [PATCH] gnu: Add genie To: guix-patches@gnu.org * gnu/packages/build-tools.scm (genie): New variable --- gnu/packages/build-tools.scm | 48 ++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm index d2fb9e05df..6b3a5d15bb 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 © 2021 Andy Tai ;;; ;;; This file is part of GNU Guix. ;;; @@ -584,3 +585,50 @@ Build has features such as: @item Extensible language/compiler framework. @end itemize") (license license:gpl2+))) + +(define-public genie + (let ((commit "5fecb127855ee069df345f20d17fea78220fee93") + (revision "0")) + (package + (name "genie") + (version + (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/bkaradzic/genie") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1fl00w4v2wigl2fypvnpzmny2x4f0adb7ncsn4a6w7gwxfxvl51j")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags (list (string-append "CC=" ,(cc-for-target))) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((outdir (assoc-ref outputs "out"))) + (install-file "bin/linux/genie" (string-append outdir "/bin"))) + #t))) + ;; no tests; note included tests directory references premake4 + ;; and does not seem to be maintained to work with genie + #:tests? #f)) + (native-inputs + ;; note genie includes in tree a copy of Lua 5.3.0 + ;; however the build setup does not support using an out of tree, + ;; system installed copy of Lua so we do not make lua a native input + ;; at this time; in the future would be good to support that + `()) + (home-page "https://github.com/bkaradzic/GENie") + (synopsis "project file generator tool") + (description "GENie (pronounced as Jenny) is project file generator tool. +It automagically generates project files from Lua script, +making applying the same settings for multiple projects easy. +Supports cmake, make, ninja, Visual Studio and xcode") + ;; most sources are bsd-3; inspect.lua and profiler.lua are expat + (license (list license:bsd-3 license:expat))))) -- 2.33.0