From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-backup/kopia-ui-bin/
Date: Sun, 12 Nov 2023 00:50:23 +0000 (UTC) [thread overview]
Message-ID: <1699694411.9d0497f8b8e576896281e239ad07b0b0235d65b6.davidroman@gentoo> (raw)
commit: 9d0497f8b8e576896281e239ad07b0b0235d65b6
Author: YiFei Zhu <zhuyifei1999 <AT> gmail <DOT> com>
AuthorDate: Sat Nov 11 09:01:49 2023 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sat Nov 11 09:20:11 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9d0497f8
app-backup/kopia-ui-bin: new package, add 0.15.0
Signed-off-by: YiFei Zhu <zhuyifei1999 <AT> gmail.com>
app-backup/kopia-ui-bin/Manifest | 3 +
app-backup/kopia-ui-bin/kopia-ui-bin-0.15.0.ebuild | 75 ++++++++++++++++++++++
app-backup/kopia-ui-bin/metadata.xml | 14 ++++
3 files changed, 92 insertions(+)
diff --git a/app-backup/kopia-ui-bin/Manifest b/app-backup/kopia-ui-bin/Manifest
new file mode 100644
index 0000000000..e148497f4e
--- /dev/null
+++ b/app-backup/kopia-ui-bin/Manifest
@@ -0,0 +1,3 @@
+DIST kopia-ui-bin-0.15.0-amd64.deb 79272722 BLAKE2B db34642a0746b838cc923b980efb76c004b5387b3d97b7e041e36be5943adf34fbc5a0af35d950c4a43c6d6434b725483630c39ad1771c3df7d3c8026e4b4b5d SHA512 89a59600c5456c5eee03ba7dc485e2ce2618d9060072781d2691238a86853317f4a09dc69d4758509ed0ce99aa21716f80c89d4e14d51f1ff8e100a75c513324
+DIST kopia-ui-bin-0.15.0-arm.deb 72002696 BLAKE2B 654e7bf55b0869d080173551bdc829d3a400ce13579ab1f3082ba50965defdb0849164e7af496566708e156259dbb7c0d2e0def1076a00884a8656c15178628b SHA512 79b58d0369bc53ba9590957bd9953d19facb5bcdd8ee0ec1bb55d8067d7b71cbc92a11c9d05f99b2d4649734ec2d58b60976b954a0d1d134b0a28c6f9f9da081
+DIST kopia-ui-bin-0.15.0-arm64.deb 72002696 BLAKE2B 654e7bf55b0869d080173551bdc829d3a400ce13579ab1f3082ba50965defdb0849164e7af496566708e156259dbb7c0d2e0def1076a00884a8656c15178628b SHA512 79b58d0369bc53ba9590957bd9953d19facb5bcdd8ee0ec1bb55d8067d7b71cbc92a11c9d05f99b2d4649734ec2d58b60976b954a0d1d134b0a28c6f9f9da081
diff --git a/app-backup/kopia-ui-bin/kopia-ui-bin-0.15.0.ebuild b/app-backup/kopia-ui-bin/kopia-ui-bin-0.15.0.ebuild
new file mode 100644
index 0000000000..bc1611d3fd
--- /dev/null
+++ b/app-backup/kopia-ui-bin/kopia-ui-bin-0.15.0.ebuild
@@ -0,0 +1,75 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit unpacker xdg
+
+DESCRIPTION="Kopia - Fast And Secure Open-Source Backup (Electron UI)"
+HOMEPAGE="https://github.com/kopia/kopia"
+
+SRC_URI="
+ amd64? ( https://github.com/kopia/kopia/releases/download/v${PV}/kopia-ui_${PV}_amd64.deb -> ${P}-amd64.deb )
+ arm? ( https://github.com/kopia/kopia/releases/download/v${PV}/kopia-ui_${PV}_armv7l.deb -> ${P}-arm.deb )
+ arm64? ( https://github.com/kopia/kopia/releases/download/v${PV}/kopia-ui_${PV}_arm64.deb -> ${P}-arm64.deb )
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~arm64"
+IUSE="+system-kopia"
+
+# binary package; no tests available
+RESTRICT="test"
+
+RDEPEND="
+ system-kopia? ( ~app-backup/kopia-${PV} )
+ app-accessibility/at-spi2-core
+ dev-libs/expat
+ dev-libs/glib
+ dev-libs/nspr
+ dev-libs/nss
+ media-libs/alsa-lib
+ media-libs/mesa
+ net-print/cups
+ sys-apps/dbus
+ x11-libs/cairo
+ x11-libs/gtk+:3
+ x11-libs/libdrm
+ x11-libs/libX11
+ x11-libs/libxcb
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libxkbcommon
+ x11-libs/libXrandr
+ x11-libs/pango
+"
+
+QA_PREBUILT="opt/KopiaUI"
+S="${WORKDIR}"
+
+src_install() {
+ mv "${S}"/* "${ED}" || die
+ mkdir -p "${ED}/usr/bin/" || die
+ ln -sf "${EPREFIX}/opt/KopiaUI/kopia-ui" "${ED}/usr/bin/kopia-ui" || die
+
+ if use system-kopia; then
+ rm -f "${ED}/opt/KopiaUI/resources/server/kopia" || die
+ ln -sf "${EPREFIX}/usr/bin/kopia" "${ED}/opt/KopiaUI/resources/server/kopia" || die
+ fi
+
+ # It installs /usr/share/doc/kopia-ui/changelog.bz2. This fails QA for two
+ # reasons:
+ # 1. Gentoo expects /usr/share/doc/${P}. I can perform an mv to fix this.
+ # 2. /usr/share/doc is subject to automatic compression, so portage
+ # expects files installed to not be compressed. I could perform a
+ # decompression on the cangelog but IMO changelog isn't important
+ # enough to add this workaround.
+ rm -rf "${ED}/usr/share/doc/kopia-ui" || die
+}
+
+pkg_postinst(){
+ xdg_desktop_database_update
+}
diff --git a/app-backup/kopia-ui-bin/metadata.xml b/app-backup/kopia-ui-bin/metadata.xml
new file mode 100644
index 0000000000..682a0187c3
--- /dev/null
+++ b/app-backup/kopia-ui-bin/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zhuyifei1999@gmail.com</email>
+ <name>YiFei Zhu</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">kopia/kopia</remote-id>
+ </upstream>
+ <use>
+ <flag name="system-kopia">Use the system-wide <pkg>app-backup/kopia</pkg> instead of bundled.</flag>
+ </use>
+</pkgmetadata>
next reply other threads:[~2023-11-12 0:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-12 0:50 David Roman [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-11-16 10:05 [gentoo-commits] repo/proj/guru:master commit in: app-backup/kopia-ui-bin/ David Roman
2025-09-04 23:14 Haelwenn Monnier
2025-09-04 23:14 Haelwenn Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1699694411.9d0497f8b8e576896281e239ad07b0b0235d65b6.davidroman@gentoo \
--to=davidroman96@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox