Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] nautilus-python: fix cross-build
@ 2020-12-25  4:03 ndowens
  2020-12-26  0:05 ` [PR REVIEW] " sgn
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ndowens @ 2020-12-25  4:03 UTC (permalink / raw)
  To: ml

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

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

https://github.com/ndowens/void-packages nautilus-python
https://github.com/void-linux/void-packages/pull/27416

nautilus-python: fix cross-build


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

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

From fe607a6dcc5edc4b5e31cde2b5d1ef3b961d2df5 Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens@artixlinux.org>
Date: Thu, 24 Dec 2020 22:04:09 -0600
Subject: [PATCH] nautilus-python: fix cross-build

---
 srcpkgs/nautilus-python/template | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/nautilus-python/template b/srcpkgs/nautilus-python/template
index d4d7d72122b..072aeedb20f 100644
--- a/srcpkgs/nautilus-python/template
+++ b/srcpkgs/nautilus-python/template
@@ -3,8 +3,11 @@ pkgname=nautilus-python
 version=1.2.3
 revision=3
 build_style=gnu-configure
-configure_args="--enable-gtk-doc PYTHON=python3"
-hostmakedepends="automake libtool pkg-config which"
+configure_args="--enable-gtk-doc PYTHON=python3
+ am_cv_python_pythondir=${XBPS_CROSS_BASE}/${py3_lib}/site-packages
+ am_cv_python_pyexecdir=${XBPS_CROSS_BASE}/${py3_lib}/site-packages
+ PYTHON_INCLUDES=-I${XBPS_CROSS_BASE}/${py3_inc}"
+hostmakedepends="automake libtool pkg-config which python3"
 makedepends="python3-devel python3-gobject-devel gtk-doc nautilus-devel"
 depends="nautilus python3-gobject"
 short_desc="Python bindings for the Nautilus extension framework"
@@ -13,6 +16,13 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Projects/NautilusPython"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=073ce0297282259937ab473d189b97a04f42b97197c9292fc3bde9d135282098
-nocross="could not find Python headers"
 
 CFLAGS="-fcommon"
+
+pre_build() {
+	# Needs itself to build HTML_DATA
+	# which fails to be found if cross-built
+	if [ "$CROSS_BUILD" ]; then
+		vsed -i '/DATA/s;$(HTML_DATA);;' docs/Makefile
+	fi
+}

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

end of thread, other threads:[~2020-12-27  4:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-25  4:03 [PR PATCH] nautilus-python: fix cross-build ndowens
2020-12-26  0:05 ` [PR REVIEW] " sgn
2020-12-26  0:06 ` sgn
2020-12-26  0:15 ` [PR PATCH] [Updated] " ndowens
2020-12-26  4:48 ` [PR REVIEW] " sgn
2020-12-26  9:38 ` mnabid
2020-12-27  4:28 ` [PR PATCH] [Closed]: " sgn

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).