diff --git a/srcpkgs/gxi/patches/0001-feat-gettext-build-against-system-gettext.patch b/srcpkgs/gxi/patches/0001-feat-gettext-build-against-system-gettext.patch new file mode 100644 index 0000000000..7519c4a1c9 --- /dev/null +++ b/srcpkgs/gxi/patches/0001-feat-gettext-build-against-system-gettext.patch @@ -0,0 +1,25 @@ +From e14a88e5a254c6cd55fe3b83dd1fe6aba6abdfb7 Mon Sep 17 00:00:00 2001 +From: Rasmus Thomsen +Date: Thu, 31 Jan 2019 14:36:01 +0100 +Subject: [PATCH] feat(gettext): build against system gettext + +--- + Cargo.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Cargo.toml b/Cargo.toml +index 96e9d18..df2e068 100644 +--- Cargo.toml ++++ Cargo.toml +@@ -35,7 +35,7 @@ xi-rpc = { version="0.2.0", path="vendor/xi-editor/rust/rpc" } + dirs = "1" + toml = "0.4" + tempfile = "3" +-gettext-rs = "0.4" ++gettext-rs = { version="0.4", features=["gettext-system"] } + crossbeam-deque = "0.7" + + [profile.release] +-- +2.20.1 + diff --git a/srcpkgs/gxi/template b/srcpkgs/gxi/template index 09f58600b0..e68846841d 100644 --- a/srcpkgs/gxi/template +++ b/srcpkgs/gxi/template @@ -1,17 +1,21 @@ # Template file for 'gxi' pkgname=gxi -version=0.4.5 +version=0.4.6 revision=1 build_style=meson -hostmakedepends="cargo pkg-config rust" -makedepends="gtk+3-devel rust-std" +build_helper=rust +hostmakedepends="cargo pkg-config rust gettext" +makedepends="gtk+3-devel rust-std gettext-devel" short_desc="GTK frontend for the xi text editor, written in Rust" maintainer="Rasmus Thomsen " license="MIT" homepage="https://github.com/Cogitri/gxi" distfiles="https://github.com/Cogitri/gxi/releases/download/v${version}/gxi-${version}.tar.xz" -checksum=fea30514fc9666d09c5985b505f8d59376d9f7bd571e033424206e1abc41f728 -nocross="Meson x Cargo" +checksum=3e5420a284d685490887d96aba2a2eab9d41a6baa1e6b800d077e2ecf246422f + +if [ "$CROSS_BUILD" ]; then + configure_args+="-Drust-target=${RUST_TARGET}" +fi post_install() { vlicense LICENSE