Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] ninja: update to 1.12.1.
@ 2024-09-10 15:34 Duncaen
  2024-09-10 15:40 ` [PR PATCH] [Updated] " Duncaen
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Duncaen @ 2024-09-10 15:34 UTC (permalink / raw)
  To: ml

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

There is a new pull request by Duncaen against master on the void-packages repository

https://github.com/Duncaen/void-packages ninja-1.12.1
https://github.com/void-linux/void-packages/pull/52171

ninja: update to 1.12.1.
None

A patch file from https://github.com/void-linux/void-packages/pull/52171.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ninja-1.12.1-52171.patch --]
[-- Type: text/x-diff, Size: 2557 bytes --]

From 33c76481bfd124e766575443188a8ab7e83382bc Mon Sep 17 00:00:00 2001
From: Duncaen <duncaen@voidlinux.org>
Date: Tue, 10 Sep 2024 17:29:26 +0200
Subject: [PATCH] ninja: update to 1.12.1.

---
 srcpkgs/ninja/template | 44 ++++++++++++++++++------------------------
 1 file changed, 19 insertions(+), 25 deletions(-)

diff --git a/srcpkgs/ninja/template b/srcpkgs/ninja/template
index 6c13f40c7807b1..94794b335431be 100644
--- a/srcpkgs/ninja/template
+++ b/srcpkgs/ninja/template
@@ -1,14 +1,19 @@
 # Template file for 'ninja'
 pkgname=ninja
-version=1.11.1
-revision=4
-hostmakedepends="python3 asciidoc"
+version=1.12.1
+revision=1
+build_style=cmake
+make_cmd=make
+hostmakedepends="asciidoc"
+checkdepends="gtest-devel"
 short_desc="Small build system with a focus on speed"
 maintainer="Duncaen <duncaen@voidlinux.org>"
 license="Apache-2.0"
 homepage="https://ninja-build.org/"
 distfiles="https://github.com/ninja-build/ninja/archive/v${version}.tar.gz"
-checksum=31747ae633213f1eda3842686f83c2aa1412e0f5691d1c14dbbcc67fe7400cea
+checksum=821bdff48a3f683bc4bb3b6f0b5fe7b2d647cf65d52aeb63328c91a6c6df285a
+
+export CMAKE_GENERATOR="Unix Makefiles"
 
 if [ "$XBPS_WORDSIZE" = 32 ]; then
 	BUILD_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
@@ -20,33 +25,22 @@ if [ "$XBPS_TARGET_WORDSIZE" = 32 ]; then
 	CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
 fi
 
-do_configure() {
-	# Skip rebuild with bootstrapped ninja until build phase:
-	vsed -e "s|subprocess.check_call(rebuild_args)|pass|" -i configure.py
-	python3 configure.py --bootstrap
-}
+if [ "$XBPS_CHECK_PKGS" ]; then
+	configure_args+=" -DBUILD_TESTING=ON"
+else
+	configure_args+=" -DBUILD_TESTING=OFF"
+fi
 
-do_build() {
-	if [ "$CROSS_BUILD" ]; then
-		HOST_CXXFLAGS="${BUILD_CFLAGS}"
-	else
-		HOST_CXXFLAGS="${CXXFLAGS}"
-	fi
-	CXXFLAGS="$HOST_CXXFLAGS" python3 configure.py
-	asciidoc doc/manual.asciidoc
-}
 
-do_check() {
-	./ninja ninja_test &&
-	./ninja_test --gtest_filter=-SubprocessTest.SetWithLots
+post_build() {
+	asciidoc doc/manual.asciidoc
 }
 
-do_install() {
-	vbin ninja
+post_install() {
 	vdoc doc/manual.html
 	vdoc doc/manual.asciidoc
-	vinstall misc/bash-completion 644 usr/share/bash-completion/completions ninja
-	vinstall misc/zsh-completion 644 usr/share/zsh/site-functions _ninja
+	vcompletion misc/bash-completion bash ninja
+	vcompletion misc/zsh-completion zsh ninja
 	vinstall misc/ninja-mode.el 644 usr/share/emacs/site-lisp
 	vinstall misc/ninja.vim 644 usr/share/vim/vimfiles/syntax
 	vinstall misc/ninja_syntax.py 644 "${py3_sitelib}"

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PR PATCH] ninja: update to 1.12.1.
@ 2024-06-12  3:14 Suyun114
  0 siblings, 0 replies; 5+ messages in thread
From: Suyun114 @ 2024-06-12  3:14 UTC (permalink / raw)
  To: ml

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

There is a new pull request by Suyun114 against master on the void-packages repository

https://github.com/Suyun114/void-packages ninja
https://github.com/void-linux/void-packages/pull/50795

ninja: update to 1.12.1.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc


A patch file from https://github.com/void-linux/void-packages/pull/50795.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ninja-50795.patch --]
[-- Type: text/x-diff, Size: 1066 bytes --]

From aee8962a8d95916313a9e2bacb1adabe2a2fc4df Mon Sep 17 00:00:00 2001
From: Suyun <Suyun114>
Date: Wed, 12 Jun 2024 11:12:22 +0800
Subject: [PATCH] ninja: update to 1.12.1.

---
 srcpkgs/ninja/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/ninja/template b/srcpkgs/ninja/template
index 6c13f40c7807b1..2a9b5326f36852 100644
--- a/srcpkgs/ninja/template
+++ b/srcpkgs/ninja/template
@@ -1,14 +1,14 @@
 # Template file for 'ninja'
 pkgname=ninja
-version=1.11.1
-revision=4
+version=1.12.1
+revision=1
 hostmakedepends="python3 asciidoc"
 short_desc="Small build system with a focus on speed"
 maintainer="Duncaen <duncaen@voidlinux.org>"
 license="Apache-2.0"
 homepage="https://ninja-build.org/"
 distfiles="https://github.com/ninja-build/ninja/archive/v${version}.tar.gz"
-checksum=31747ae633213f1eda3842686f83c2aa1412e0f5691d1c14dbbcc67fe7400cea
+checksum=821bdff48a3f683bc4bb3b6f0b5fe7b2d647cf65d52aeb63328c91a6c6df285a
 
 if [ "$XBPS_WORDSIZE" = 32 ]; then
 	BUILD_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-09-25 16:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-10 15:34 [PR PATCH] ninja: update to 1.12.1 Duncaen
2024-09-10 15:40 ` [PR PATCH] [Updated] " Duncaen
2024-09-11 11:44 ` leahneukirchen
2024-09-25 16:13 ` [PR PATCH] [Merged]: " Duncaen
  -- strict thread matches above, loose matches on Subject: below --
2024-06-12  3:14 [PR PATCH] " Suyun114

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).