pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gnome-builder: fix build on NetBSD
Module Name: pkgsrc-wip
Committed By: Dan CÃirnat <cirnatdan%NetBSD.org@localhost>
Pushed By: cirnatdan
Date: Tue Mar 23 21:24:47 2021 +0100
Changeset: 5b10d3d94d4cb9f65c889508b0e933799adc844e
Modified Files:
gnome-builder/Makefile
gnome-builder/distinfo
Added Files:
gnome-builder/patches/patch-src_libide_core_ide-global.c
Log Message:
gnome-builder: fix build on NetBSD
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5b10d3d94d4cb9f65c889508b0e933799adc844e
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
gnome-builder/Makefile | 10 ++++++++++
gnome-builder/distinfo | 1 +
gnome-builder/patches/patch-src_libide_core_ide-global.c | 14 ++++++++++++++
3 files changed, 25 insertions(+)
diffs:
diff --git a/gnome-builder/Makefile b/gnome-builder/Makefile
index 4f69f06c23..f722fa5799 100644
--- a/gnome-builder/Makefile
+++ b/gnome-builder/Makefile
@@ -23,6 +23,16 @@ MESON_ARGS+= -Dplugin_update_manager=false
CFLAGS+= -Wno-error=shadow
+SUBST_CLASSES+= python
+SUBST_STAGE.python= pre-configure
+SUBST_FILES.python= src/plugins/gradle/gradle_plugin.py
+SUBST_FILES.python+= src/plugins/maven/maven_plugin.py
+SUBST_FILES.python+= build-aux/meson/post_install.py
+SUBST_SED.python= -e 's,/usr/bin/env python3,/usr/bin/python,g'
+
+REPLACE_PYTHON+= ${SUBST_FILES.python}
+
+.include "../../lang/python/application.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../lang/clang/buildlink3.mk"
.include "../../textproc/gspell/buildlink3.mk"
diff --git a/gnome-builder/distinfo b/gnome-builder/distinfo
index 6e2d82f033..a590398526 100644
--- a/gnome-builder/distinfo
+++ b/gnome-builder/distinfo
@@ -4,3 +4,4 @@ SHA1 (gnome-builder-3.36.0.tar.xz) = c84fe37737d4a7aec0e2cb94729ceb6f9120dd82
RMD160 (gnome-builder-3.36.0.tar.xz) = c51a91d50a5885ae54156f622cf055a80fd8e1b7
SHA512 (gnome-builder-3.36.0.tar.xz) = ccd6ca916ed6ad10b69e5573482e2ea48cf4227d858605825ab56989840ebbf5a6dfafc915a1f8df3a1061b37c80adfbd03fc9d616c67e08a5032069b11aa4a6
Size (gnome-builder-3.36.0.tar.xz) = 12015980 bytes
+SHA1 (patch-src_libide_core_ide-global.c) = ac233d658989fcce83e506c3d2cd8f262786d813
diff --git a/gnome-builder/patches/patch-src_libide_core_ide-global.c b/gnome-builder/patches/patch-src_libide_core_ide-global.c
new file mode 100644
index 0000000000..71ba635c1b
--- /dev/null
+++ b/gnome-builder/patches/patch-src_libide_core_ide-global.c
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- src/libide/core/ide-global.c.orig 2020-03-07 00:15:02.333880400 +0000
++++ src/libide/core/ide-global.c
+@@ -26,7 +26,9 @@
+ #include <glib/gi18n.h>
+ #include <string.h>
+ #include <sys/types.h>
++#ifndef __NetBSD__
+ #include <sys/user.h>
++#endif
+ #include <sys/utsname.h>
+ #include <unistd.h>
+
Home |
Main Index |
Thread Index |
Old Index