mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 05:53:12 -04:00
net-misc/warp: add 1.0.0
Rename the executable to avoid a conflict with dev-haskell/wai-app-static::gentoo. Closes: https://bugs.gentoo.org/973088 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
DIST warp-0.9.2-crates.tar.xz 35351848 BLAKE2B 8ab8087adafce0eb7510ad19669a54a6c0d136c63efeaeaf1fcfd91a8e7d44ce30bff02737be07f7e0ba4a0f298cb18aa5e663fb652af0ecbe2a8098ae0556b2 SHA512 67a5449a068e25ec77b29b5f2c75311c9c749c5b5a7eb8e097b8ba9f5ba6f8914aa0136702c1beb49a69d1ae41152fbaa6d67992948ece1c16daa1936217fff3
|
||||
DIST warp-0.9.2.tar.bz2 651923 BLAKE2B 30395008e2ee2669eb0f8ff563b4159263ea1e06b05dd3df556218fe5e6d8bf8167009148a2d0b9d4dd76a22fe5263263703c8b45a2f032c6ed5c856306028a4 SHA512 ca512e77ecf25f252491be7ea9c661a00cb20c6943eaf75ef5c9d78585fd2085208b7eb6da30c6bf75fe2118b11a9cffdc90bd3711b4d375362ea244f060c130
|
||||
DIST warp-1.0.0-crates.tar.xz 30287092 BLAKE2B f50698a3cdc94eadc220afc5f392c4571b487ab4fd559e016dc290147f4b2f179c0dbc41ed0a269dfdd7cb7a04541a908148996914847263e1bc8bd58e6fe2dc SHA512 051e9826610de20327693034f7b29bebf343de00b052a8f1064b3cbb1d3970971e698544268a05da525c4bd857e0753ab261a8cb9879ed37d519ca25cbfa83e7
|
||||
DIST warp-1.0.0.tar.bz2 678985 BLAKE2B 99d67631a19eba52e6d74ea28e8e8b10625240c2bca04082cbd8b6579b7ea2456bb7c335d4fc03400c881a51a2786c150f0774e6887368ac7a4b2fff57dff5d7 SHA512 7a017dc510f5bada21a9178886901915a7baf65b0c1c13bfc955d263cd4d088303a7163900de60f15c6418212d7ee2e423d9785b237c5b29d4bd78726186cbc3
|
||||
|
||||
49
net-misc/warp/files/warp-1.0.0-rename-executable.patch
Normal file
49
net-misc/warp/files/warp-1.0.0-rename-executable.patch
Normal file
@@ -0,0 +1,49 @@
|
||||
Rename the executable to avoid a conflict with dev-haskell/wai-app-static::gentoo.
|
||||
|
||||
Debian Patch: https://salsa.debian.org/gnome-team/warp/-/raw/d8b6946d3f7e2929ae9580b892246e9ff8b27a16/debian/patches/rename-warp.diff
|
||||
--- a/Cargo.toml
|
||||
+++ b/Cargo.toml
|
||||
@@ -1,12 +1,12 @@
|
||||
[package]
|
||||
-name = "warp"
|
||||
+name = "warp-gtk"
|
||||
license = "GPL-3.0-only"
|
||||
version = "1.0.0"
|
||||
authors = ["Fina Wilke <finaw@gnome.org>"]
|
||||
homepage = "https://apps.gnome.org/Warp/"
|
||||
repository = "https://gitlab.gnome.org/World/warp/"
|
||||
edition = "2024"
|
||||
-default-run = "warp"
|
||||
+default-run = "warp-gtk"
|
||||
rust-version = "1.92"
|
||||
|
||||
[package.metadata.urls]
|
||||
--- a/data/app.drey.Warp.desktop.in.in
|
||||
+++ b/data/app.drey.Warp.desktop.in.in
|
||||
@@ -2,7 +2,7 @@
|
||||
Name=Warp
|
||||
Comment=Fast and secure file transfer
|
||||
Type=Application
|
||||
-Exec=warp %u
|
||||
+Exec=warp-gtk %u
|
||||
Terminal=false
|
||||
Categories=Utility
|
||||
Keywords=Gnome;GTK;Wormhole;Magic-Wormhole;
|
||||
--- a/data/app.drey.Warp.metainfo.xml.in.in
|
||||
+++ b/data/app.drey.Warp.metainfo.xml.in.in
|
||||
@@ -26,7 +26,7 @@
|
||||
<control>touch</control>
|
||||
</recommends>
|
||||
<provides>
|
||||
- <binary>warp</binary>
|
||||
+ <binary>warp-gtk</binary>
|
||||
</provides>
|
||||
|
||||
<branding>
|
||||
--- a/data/app.drey.Warp.service.in
|
||||
+++ b/data/app.drey.Warp.service.in
|
||||
@@ -1,3 +1,3 @@
|
||||
[D-BUS Service]
|
||||
Name=@app-id@
|
||||
-Exec=@bindir@/warp --gapplication-service
|
||||
+Exec=@bindir@/warp-gtk --gapplication-service
|
||||
89
net-misc/warp/warp-1.0.0.ebuild
Normal file
89
net-misc/warp/warp-1.0.0.ebuild
Normal file
@@ -0,0 +1,89 @@
|
||||
# Copyright 2023-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES="
|
||||
"
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
RUST_MIN_VER="1.92.0"
|
||||
inherit cargo flag-o-matic gnome2-utils meson python-any-r1 xdg
|
||||
|
||||
DESCRIPTION="Fast and secure file transfer"
|
||||
HOMEPAGE="
|
||||
https://apps.gnome.org/Warp/
|
||||
https://gitlab.gnome.org/World/warp
|
||||
"
|
||||
SRC_URI="
|
||||
https://gitlab.gnome.org/World/warp/-/archive/v${PV}/${PN}-v${PV}.tar.bz2 -> ${P}.tar.bz2
|
||||
https://github.com/pastalian/distfiles/releases/download/${P}/${P}-crates.tar.xz
|
||||
"
|
||||
S="${WORKDIR}/${PN}-v${PV}"
|
||||
ECARGO_HOME="${WORKDIR}/${P}-build/cargo-home"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
# Dependent crate licenses
|
||||
LICENSE+="
|
||||
Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD EUPL-1.2 GPL-3+ ISC
|
||||
MIT Unicode-3.0 Unlicense ZLIB
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="qrcode"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/glib-2.82:2
|
||||
>=gui-libs/gtk-4.20:4[wayland,X]
|
||||
>=gui-libs/libadwaita-1.8:1
|
||||
qrcode? (
|
||||
media-libs/graphene
|
||||
>=media-libs/gstreamer-1.20:1.0
|
||||
>=media-libs/gst-plugins-bad-1.20:1.0
|
||||
>=media-libs/gst-plugins-base-1.20:1.0[wayland]
|
||||
>=media-libs/gst-plugins-good-1.20:1.0
|
||||
>=media-plugins/gst-plugins-zbar-1.20:1.0
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-util/itstool
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-rename-executable.patch"
|
||||
)
|
||||
|
||||
QA_FLAGS_IGNORED="usr/bin/warp-gtk"
|
||||
|
||||
pkg_setup() {
|
||||
python-any-r1_pkg_setup
|
||||
rust_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
python_fix_shebang build-aux/meson-cargo-manifest.py
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
filter-lto
|
||||
|
||||
local emesonargs=(
|
||||
$(meson_feature qrcode qr-code-scanning)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_schemas_update
|
||||
xdg_pkg_postinst
|
||||
|
||||
elog "warp executable has been renamed to warp-gtk to avoid a conflict with dev-haskell/wai-app-static::gentoo."
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_schemas_update
|
||||
xdg_pkg_postrm
|
||||
}
|
||||
Reference in New Issue
Block a user