From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5309E15838C for ; Fri, 19 Jan 2024 10:31:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72116E2A0E; Fri, 19 Jan 2024 10:31:51 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 58168E2A0E for ; Fri, 19 Jan 2024 10:31:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9EB903433EA for ; Fri, 19 Jan 2024 10:31:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4594D14D2 for ; Fri, 19 Jan 2024 10:31:47 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1705646359.49547afd326f80bffbfbcc2844ab123e448e2ffa.arthurzam@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-fs/dwarfs-bin/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-fs/dwarfs-bin/Manifest sys-fs/dwarfs-bin/dwarfs-bin-0.7.5.ebuild X-VCS-Directories: sys-fs/dwarfs-bin/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 49547afd326f80bffbfbcc2844ab123e448e2ffa X-VCS-Branch: master Date: Fri, 19 Jan 2024 10:31:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7b472a4c-6f52-4d27-8372-01e7d691a73f X-Archives-Hash: 77f7dfed916124ef9cd23e3b36039957 commit: 49547afd326f80bffbfbcc2844ab123e448e2ffa Author: YiFei Zhu gmail com> AuthorDate: Fri Jan 19 06:39:19 2024 +0000 Commit: Arthur Zamarin gentoo org> 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 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" +}