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: Wed, 10 Jan 2024 07:06:10 +0000 (UTC)	[thread overview]
Message-ID: <1704870134.188bd73acc1da7ee73ee8d4f677347f301449d21.zhuyifei1999@gentoo> (raw)

commit:     188bd73acc1da7ee73ee8d4f677347f301449d21
Author:     YiFei Zhu <zhuyifei1999 <AT> gmail <DOT> com>
AuthorDate: Wed Jan 10 07:02:14 2024 +0000
Commit:     YiFei Zhu <zhuyifei1999 <AT> gmail <DOT> com>
CommitDate: Wed Jan 10 07:02:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=188bd73a

sys-fs/dwarfs-bin: Install into /opt instead of /usr

We don't install binary packages into /usr

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

 ...bin-0.7.4.ebuild => dwarfs-bin-0.7.4-r1.ebuild} | 26 ++++++++++++++--------
 1 file changed, 17 insertions(+), 9 deletions(-)

diff --git a/sys-fs/dwarfs-bin/dwarfs-bin-0.7.4.ebuild b/sys-fs/dwarfs-bin/dwarfs-bin-0.7.4-r1.ebuild
similarity index 69%
rename from sys-fs/dwarfs-bin/dwarfs-bin-0.7.4.ebuild
rename to sys-fs/dwarfs-bin/dwarfs-bin-0.7.4-r1.ebuild
index 51a3a351ed..704323a0b3 100644
--- a/sys-fs/dwarfs-bin/dwarfs-bin-0.7.4.ebuild
+++ b/sys-fs/dwarfs-bin/dwarfs-bin-0.7.4-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 DESCRIPTION="Static version of a fast very high compression read-only FUSE file system"
 HOMEPAGE="https://github.com/mhx/dwarfs"
@@ -17,14 +17,13 @@ KEYWORDS="-* ~amd64 ~arm64"
 RDEPEND="
 	${PYTHON_DEPS}
 	sys-fs/fuse:3
-	!sys-fs/dwarfs
 "
 DEPEND="
 	${RDEPEND}
 "
 QA_PREBUILT="
-	sbin/dwarfs
-	bin/*
+	opt/dwarfs-bin/bin/*
+	opt/dwarfs-bin/sbin/*
 "
 
 src_unpack() {
@@ -41,14 +40,23 @@ src_prepare() {
 	default
 	einfo "Removing legacy fuse2-related stuff..."
 	rm sbin/dwarfs2 sbin/mount.dwarfs2 || die
-	einfo "Done. Correcting man paths..."
-	mkdir -p usr/ || die
-	mv share/ usr/ || die
 	einfo "Done."
 }
 
 src_install(){
-	mv "${S}"/* "${D}"/ || die
+	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/sbin/$(basename "${file}")"
+	done
+
+	newenvd - "90${P}" <<-_EOF_
+		MANPATH="${EPREFIX}/opt/${PN}/share/man"
+	_EOF_
 }
 
 pkg_postinst(){


             reply	other threads:[~2024-01-10  7:06 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-10  7:06 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-19  6:43 YiFei Zhu
2024-01-10  7:15 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=1704870134.188bd73acc1da7ee73ee8d4f677347f301449d21.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