diff options
author | Sam James <sam@gentoo.org> | 2024-06-02 01:28:53 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-06-02 01:28:53 +0100 |
commit | 5d7c36cf37f85f10bb440da0eab736bb97e6f269 (patch) | |
tree | f275b27127386c3537f5a37156cd165c93c8e940 /sys-fs | |
parent | sys-fs/mergerfs-tools: style tweaks, avoid `which` (diff) | |
download | gentoo-5d7c36cf37f85f10bb440da0eab736bb97e6f269.tar.gz gentoo-5d7c36cf37f85f10bb440da0eab736bb97e6f269.tar.bz2 gentoo-5d7c36cf37f85f10bb440da0eab736bb97e6f269.zip |
sys-fs/mergerfs: simplify & fix version setting
* Use heredoc rather than two consecutive echos to the same file, simpler
w/o escaping too
* Fix path to update-version script, it moved directories
* Style tweaks
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/mergerfs/mergerfs-2.40.2.ebuild | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys-fs/mergerfs/mergerfs-2.40.2.ebuild b/sys-fs/mergerfs/mergerfs-2.40.2.ebuild index 6946ee8428b0..12c52da625d1 100644 --- a/sys-fs/mergerfs/mergerfs-2.40.2.ebuild +++ b/sys-fs/mergerfs/mergerfs-2.40.2.ebuild @@ -18,21 +18,21 @@ IUSE="+xattr" DEPEND=" xattr? ( sys-apps/attr ) " - RDEPEND="${DEPEND}" - BDEPEND="sys-devel/gettext" src_prepare() { default - # Hand made build system at it's finest. - echo -e "#!/bin/sh\ntrue" >tools/update-version || die - echo "#pragma once" >src/version.hpp || die - echo "static const char MERGERFS_VERSION[] = \"${PV}\";" >>src/version.hpp || die + # Hand made build system at its finest. + echo -e "#!/bin/sh\ntrue" > buildtools/update-version || die + cat <<-EOF > src/version.hpp || die + #pragma once + static const char MERGERFS_VERSION[] = "${PV}"; + EOF if ! use xattr; then - sed 's%USE_XATTR = 1%USE_XATTR = 0%g' -i Makefile || die + sed -i -e 's%USE_XATTR = 1%USE_XATTR = 0%g' Makefile || die fi } |