diff options
author | YiFei Zhu <zhuyifei1999@gmail.com> | 2024-01-18 22:39:19 -0800 |
---|---|---|
committer | YiFei Zhu <zhuyifei1999@gmail.com> | 2024-01-18 22:39:19 -0800 |
commit | 49547afd326f80bffbfbcc2844ab123e448e2ffa (patch) | |
tree | e220c9b45879be71840bb35fecdab978d9922319 /sys-fs | |
parent | sys-fs/dwarfs: add 0.7.5 (diff) | |
download | guru-49547afd326f80bffbfbcc2844ab123e448e2ffa.tar.gz guru-49547afd326f80bffbfbcc2844ab123e448e2ffa.tar.bz2 guru-49547afd326f80bffbfbcc2844ab123e448e2ffa.zip |
sys-fs/dwarfs-bin: add 0.7.5
Signed-off-by: YiFei Zhu <zhuyifei1999@gmail.com>
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/dwarfs-bin/Manifest | 2 | ||||
-rw-r--r-- | sys-fs/dwarfs-bin/dwarfs-bin-0.7.5.ebuild | 67 |
2 files changed, 69 insertions, 0 deletions
diff --git a/sys-fs/dwarfs-bin/Manifest b/sys-fs/dwarfs-bin/Manifest index a516c1939..231e5e26b 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 000000000..6c4657c9a --- /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" +} |