public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "YiFei Zhu" <zhuyifei1999@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-fs/dwarfs-bin/
Date: Fri, 19 Jan 2024 06:43:11 +0000 (UTC)	[thread overview]
Message-ID: <1705646359.49547afd326f80bffbfbcc2844ab123e448e2ffa.zhuyifei1999@gentoo> (raw)

commit:     49547afd326f80bffbfbcc2844ab123e448e2ffa
Author:     YiFei Zhu <zhuyifei1999 <AT> gmail <DOT> com>
AuthorDate: Fri Jan 19 06:39:19 2024 +0000
Commit:     YiFei Zhu <zhuyifei1999 <AT> gmail <DOT> com>
CommitDate: Fri Jan 19 06:39:19 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=49547afd

sys-fs/dwarfs-bin: add 0.7.5

Signed-off-by: YiFei Zhu <zhuyifei1999 <AT> gmail.com>

 sys-fs/dwarfs-bin/Manifest                |  2 +
 sys-fs/dwarfs-bin/dwarfs-bin-0.7.5.ebuild | 67 +++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/sys-fs/dwarfs-bin/Manifest b/sys-fs/dwarfs-bin/Manifest
index a516c19398..231e5e26bf 100644
--- a/sys-fs/dwarfs-bin/Manifest
+++ b/sys-fs/dwarfs-bin/Manifest
@@ -1,2 +1,4 @@
 DIST dwarfs-bin-0.7.4-amd64.tar.xz 6489712 BLAKE2B b854e0cd7afa118dcbb8f46aead848b2293ee8cac6d6f74d85a789b70ccfdfff94d3d4751018ea0a1c44d1d07997ee32bbe07a5d88bd398515223c48c010f1cc SHA512 a420c10e6190034f584d9710506a874c1ea011a61aff25e8525a2576664bde51799e602884cbaa92ecd27e1450cbe2fce48b040631061723cc3e810d854e8c40
 DIST dwarfs-bin-0.7.4-arm64.tar.gz 5628380 BLAKE2B e9224f2881e34b9dc09a61098b63d26010655ba1287d069138fede6276fd075a7b4655a91c9e72b0fc57fc926fd6ff42bed367007ba7a6455d91d4692dcc192d SHA512 f2889a9c88872610873b0527342cd0fa4738dd50c5b0ee6ac388d2edefb88548371d193b1206b37d7aa4969b1018f3bdd579d54306266201eb75fe4369775444
+DIST dwarfs-bin-0.7.5-amd64.tar.xz 6435884 BLAKE2B 6945b6071f2df706cb60d3120cb447ab5ca56100172c62553d908ba46bf6e5ea5d10e7f957a94f5f85ccabfc7bfb68eaf3b85bd69854c55472b0fccfe7eb2ffe SHA512 a89bf78fd38528d64c2eb437603b73503c9697b7b81ac35f829258da91055d905c923aef6c18f5e75e8d17155ebf06b3fede54c634313a1c4f555aee8d8aada2
+DIST dwarfs-bin-0.7.5-arm64.tar.gz 5636216 BLAKE2B ef9955c5f719985f796dee464b19b7f5267b9b2685bf96d9e7234d467ce85d09356aa84585b0ea6ce9dfb03c5cd12890f907456990b0926f1e1755380f9081f7 SHA512 7e3cbc43d90deee0d799502e172d5e1c315733c3a4be800ae0bd8581432c873b4b22c2f952490b6ec31c34ec67d0ac8df365d30cb19f3b1a743e71687d5f765c

diff --git a/sys-fs/dwarfs-bin/dwarfs-bin-0.7.5.ebuild b/sys-fs/dwarfs-bin/dwarfs-bin-0.7.5.ebuild
new file mode 100644
index 0000000000..6c4657c9a9
--- /dev/null
+++ b/sys-fs/dwarfs-bin/dwarfs-bin-0.7.5.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Static version of a fast very high compression read-only FUSE file system"
+HOMEPAGE="https://github.com/mhx/dwarfs"
+SRC_URI="
+	amd64? ( https://github.com/mhx/dwarfs/releases/download/v${PV}/dwarfs-${PV}-Linux-x86_64.tar.xz -> ${P}-amd64.tar.xz )
+	arm64? ( https://github.com/mhx/dwarfs/releases/download/v${PV}/dwarfs-${PV}-Linux-aarch64.tar.xz -> ${P}-arm64.tar.gz )
+"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm64"
+
+RDEPEND="
+	${PYTHON_DEPS}
+	sys-fs/fuse:3
+"
+DEPEND="
+	${RDEPEND}
+"
+QA_PREBUILT="
+	opt/dwarfs-bin/bin/*
+	opt/dwarfs-bin/sbin/*
+"
+
+src_unpack() {
+	if use amd64; then
+		S="${WORKDIR}/dwarfs-${PV}-Linux-x86_64"
+	elif use arm64; then
+		S="${WORKDIR}/dwarfs-${PV}-Linux-aarch64"
+	fi
+
+	default
+}
+
+src_prepare() {
+	default
+	einfo "Removing legacy fuse2-related stuff..."
+	rm sbin/dwarfs2 sbin/mount.dwarfs2 || die
+	einfo "Done."
+}
+
+src_install(){
+	mkdir -p "${ED}/opt/${PN}" || die
+	mv "${S}"/* "${ED}/opt/${PN}" || die
+
+	for file in "${ED}/opt/${PN}/bin"/*; do
+		dosym "../${PN}/bin/$(basename "${file}")" "/opt/bin/$(basename "${file}")"
+	done
+	for file in "${ED}/opt/${PN}/sbin"/*; do
+		dosym "../${PN}/sbin/$(basename "${file}")" "/opt/bin/$(basename "${file}")"
+	done
+
+	newenvd - "90${P}" <<-_EOF_
+		MANPATH="${EPREFIX}/opt/${PN}/share/man"
+	_EOF_
+}
+
+pkg_postinst(){
+	elog "You may find more information in the"
+	elog "${HOMEPAGE}"
+	elog "About creating: ${HOMEPAGE}/blob/main/doc/mkdwarfs.md"
+	elog "About mounting: ${HOMEPAGE}/blob/main/doc/dwarfs.md"
+}


             reply	other threads:[~2024-01-19  6:43 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-19  6:43 YiFei Zhu [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-12-27 17:42 [gentoo-commits] repo/proj/guru:dev commit in: sys-fs/dwarfs-bin/ Denis Reva
2024-12-05  7:53 Denis Reva
2024-09-22  9:41 Denis Reva
2024-06-03 12:42 Denis Reva
2024-05-16 15:06 Denis Reva
2024-02-24  9:07 Denis Reva
2024-02-17  9:02 Denis Reva
2024-02-12  7:27 Denis Reva
2024-02-08 19:13 YiFei Zhu
2024-01-23 11:08 YiFei Zhu
2024-01-10  7:15 YiFei Zhu
2024-01-10  7:06 YiFei Zhu
2024-01-08  8:50 YiFei Zhu
2024-01-07 11:07 Denis Reva
2023-08-16 13:08 Denis Reva
2023-07-25 17:05 Denis Reva
2023-07-10  5:28 Denis Reva
2023-05-27 16:35 Rahul Sandhu
2023-02-28 14:51 Denis Reva
2023-02-28 13:12 Denis Reva
2023-02-28 13:12 Denis Reva
2023-02-28 13:12 Denis Reva
2022-06-22  5:40 Denis Reva
2022-06-22  5:40 Denis Reva
2022-06-14  6:35 Denis Reva
2022-03-24  6:29 Denis Reva
2022-03-19 11:50 Denis Reva

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=1705646359.49547afd326f80bffbfbcc2844ab123e448e2ffa.zhuyifei1999@gentoo \
    --to=zhuyifei1999@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