From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVzv3-0003CZ-28 for guix-patches@gnu.org; Fri, 14 Jul 2017 08:42:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVzuz-0007Wn-UR for guix-patches@gnu.org; Fri, 14 Jul 2017 08:42:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:35196) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVzuz-0007WZ-Qa for guix-patches@gnu.org; Fri, 14 Jul 2017 08:42:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dVzuz-0000zO-Kq for guix-patches@gnu.org; Fri, 14 Jul 2017 08:42:01 -0400 Subject: [bug#27691] [PATCH 1/2] gnu: Add premake4. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVzuZ-000338-KJ for guix-patches@gnu.org; Fri, 14 Jul 2017 08:41:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVzuW-0007Cw-HH for guix-patches@gnu.org; Fri, 14 Jul 2017 08:41:35 -0400 Received: from mail-lf0-x229.google.com ([2a00:1450:4010:c07::229]:36496) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVzuW-0007C0-8y for guix-patches@gnu.org; Fri, 14 Jul 2017 08:41:32 -0400 Received: by mail-lf0-x229.google.com with SMTP id h22so52944226lfk.3 for ; Fri, 14 Jul 2017 05:41:30 -0700 (PDT) From: Oleg Pykhalov Date: Fri, 14 Jul 2017 15:41:07 +0300 Message-Id: <20170714124108.24997-1-go.wigust@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 27691@debbugs.gnu.org * gnu/packages/build-tools.scm (premake4): New variable. --- gnu/packages/build-tools.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm index 66f46433f..995d77698 100644 --- a/gnu/packages/build-tools.scm +++ b/gnu/packages/build-tools.scm @@ -23,6 +23,7 @@ #:use-module (guix packages) #:use-module (guix download) #:use-module (gnu packages) + #:use-module (gnu packages compression) #:use-module (gnu packages python) #:use-module (gnu packages ninja) #:use-module (guix build-system gnu) @@ -90,3 +91,36 @@ Autoconf/Automake/make combo. Build specifications, also known as @dfn{Meson files}, are written in a custom domain-specific language (DSL) that resembles Python.") (license license:asl2.0))) + +(define-public premake4 + (package + (name "premake4") + (version "4.3") + (source (origin + (method url-fetch) + (uri (string-append "http://downloads.sourceforge.net/project/premake/Premake/" + version "/premake-" version "-src.zip")) + (sha256 + (base32 + "1017rd0wsjfyq2jvpjjhpszaa7kmig6q1nimw76qx3cjz2868lrn")))) + (build-system gnu-build-system) + (native-inputs + `(("unzip" ,unzip))) ; for unpacking the source + (arguments + `(#:make-flags '("CC=gcc") + #:tests? #f ; No test suite + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'enter-source + (lambda _ (chdir "build/gmake.unix") #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (install-file "../../bin/release/premake4" + (string-append (assoc-ref outputs "out") "/bin")) + #t))))) + (synopsis "A makefile generation tool") + (description "@code{premake4} is a command line utility which reads a +scripted definition of a software project.") + (home-page "https://premake.github.io") + (license license:bsd-3))) -- 2.13.2