pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gn-git: add git package for Generate Ninja
Module Name: pkgsrc-wip
Committed By: Tobias Nygren <tnn%NetBSD.org@localhost>
Pushed By: tnn
Date: Mon May 5 17:00:05 2025 +0200
Changeset: 7b96b2ea414dce86b16e2736a28065a42ec0cefa
Modified Files:
Makefile
Added Files:
gn-git/DESCR
gn-git/Makefile
gn-git/PLIST
gn-git/distinfo
gn-git/patches/patch-src_gn_args.cc
Log Message:
gn-git: add git package for Generate Ninja
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7b96b2ea414dce86b16e2736a28065a42ec0cefa
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
gn-git/DESCR | 2 ++
gn-git/Makefile | 32 ++++++++++++++++++++++++++++++++
gn-git/PLIST | 2 ++
gn-git/distinfo | 3 +++
gn-git/patches/patch-src_gn_args.cc | 17 +++++++++++++++++
6 files changed, 57 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 0316dc3c79..fbbc850d9a 100644
--- a/Makefile
+++ b/Makefile
@@ -1296,6 +1296,7 @@ SUBDIR+= gmp-ecm
SUBDIR+= gmpc-lyricsplugin
SUBDIR+= gmrender-resurrect-git
SUBDIR+= gmrun
+SUBDIR+= gn-git
SUBDIR+= gnat-glade
SUBDIR+= gnatcoll-bindings
SUBDIR+= gnatcoll-core
diff --git a/gn-git/DESCR b/gn-git/DESCR
new file mode 100644
index 0000000000..a745a2e05e
--- /dev/null
+++ b/gn-git/DESCR
@@ -0,0 +1,2 @@
+Generate Ninja is a meta-build system from Google that is currently
+in use by Chromium and some Chromium-related projects like Fuchsia and Skia.
diff --git a/gn-git/Makefile b/gn-git/Makefile
new file mode 100644
index 0000000000..747169a50d
--- /dev/null
+++ b/gn-git/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD$
+
+DISTNAME= gn-0.0.0
+CATEGORIES= devel
+GIT_REPO= https://gn.googlesource.com/gn
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://gn.googlesource.com/gn/
+COMMENT= Meta-build system that generates build files for Ninja
+LICENSE= modified-bsd
+
+TOOL_DEPENDS+= ninja-build-[0-9]*:../../devel/ninja-build
+
+USE_LANGUAGES= c c++
+INSTALLATION_DIRS+= bin
+
+do-configure:
+ cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${PYTHON} build/gen.py
+
+do-build:
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/ninja -j ${_MAKE_JOBS_N} -C out
+
+do-test:
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./out/gn_unittests
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/out/gn ${DESTDIR}${PREFIX}/bin
+
+
+.include "../../lang/python/tool.mk"
+.include "../../wip/mk/git-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/gn-git/PLIST b/gn-git/PLIST
new file mode 100644
index 0000000000..1014c5c89b
--- /dev/null
+++ b/gn-git/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/gn
diff --git a/gn-git/distinfo b/gn-git/distinfo
new file mode 100644
index 0000000000..21b838a441
--- /dev/null
+++ b/gn-git/distinfo
@@ -0,0 +1,3 @@
+$NetBSD$
+
+SHA1 (patch-src_gn_args.cc) = 3e9a3881449f4763729c7d86aa2630c79dddea28
diff --git a/gn-git/patches/patch-src_gn_args.cc b/gn-git/patches/patch-src_gn_args.cc
new file mode 100644
index 0000000000..27089ee41f
--- /dev/null
+++ b/gn-git/patches/patch-src_gn_args.cc
@@ -0,0 +1,17 @@
+$NetBSD$
+
+- Handle NetBSD/evbarm correctly.
+
+--- src/gn/args.cc.orig 2025-05-05 14:41:37.597099905 +0000
++++ src/gn/args.cc
+@@ -360,6 +360,10 @@ void Args::SetSystemVarsLocked(Scope* de
+ arch = kX86;
+ else if (os_arch == "x86_64")
+ arch = kX64;
++ else if (os_arch == "evbarm" && sizeof(long) == 8)
++ arch = kArm64;
++ else if (os_arch == "evbarm" && sizeof(long) == 4)
++ arch = kArm;
+ else if (os_arch == "aarch64" || os_arch == "arm64")
+ arch = kArm64;
+ else if (os_arch.substr(0, 3) == "arm")
Home |
Main Index |
Thread Index |
Old Index