public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCHv2] ninja: Update to 1.9.0
Date: Fri, 21 Jun 2019 13:29:50 +0200	[thread overview]
Message-ID: <20190621112950.18542-1-stefan.schantl@ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1501 bytes --]

* Also add macro file for pakfire.

Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
 ninja/ninja.macro | 21 +++++++++++++++++++++
 ninja/ninja.nm    |  8 +++++++-
 2 files changed, 28 insertions(+), 1 deletion(-)
 create mode 100644 ninja/ninja.macro

diff --git a/ninja/ninja.macro b/ninja/ninja.macro
new file mode 100644
index 000000000..8d2d0c75c
--- /dev/null
+++ b/ninja/ninja.macro
@@ -0,0 +1,21 @@
+#
+# ninja-build macros
+#
+
+
+__ninja = %{bindir}/ninja
+__ninja_common_opts = -v %{PARALLELISMFLAGS}
+
+ninja_build = \
+	%{__ninja} \
+	%{__ninja_common_opts}
+
+ninja_install = \
+	DESTDIR=%{BUILDROOT} \
+	%{__ninja} install \
+	%{__ninja_common_opts}
+
+ninja_test = \
+	%{__ninja} test \
+	%{__ninja_common_opts}
+
diff --git a/ninja/ninja.nm b/ninja/ninja.nm
index e0793d8a0..ef54e5d99 100644
--- a/ninja/ninja.nm
+++ b/ninja/ninja.nm
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = ninja
-version    = 1.8.2
+version    = 1.9.0
 release    = 1
 
 groups     = Applications/System
@@ -55,6 +55,12 @@ build
 
 		# Install ninja syntax highlighting for vim.
 		install -Dpm0644 misc/ninja.vim %{BUILDROOT}%{datadir}/vim/vimfiles/syntax/ninja.vim
+
+		# Install pakfire macro.
+		mkdir -p %{BUILDROOT}/usr/lib/pakfire/macros
+		install -v -m 644 %{DIR_SOURCE}/%{name}.macro \
+			%{BUILDROOT}/usr/lib/pakfire/macros
+
 	end
 end
 
-- 
2.20.1


                 reply	other threads:[~2019-06-21 11:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190621112950.18542-1-stefan.schantl@ipfire.org \
    --to=stefan.schantl@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox