mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
dev-util/tinyxxd: properly setup xxd replacement
Signed-off-by: ingenarel <ingenarelitems@gmail.com>
This commit is contained in:
@@ -5,13 +5,16 @@
|
||||
<email>ingenarelitems@gmail.com</email>
|
||||
<name>ingenarel</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
tinyxxd is a standalone fork of xxd, a slight modernization of the C code, a slight performance increase and a drop-in
|
||||
replacement for xxd. It contains the same logic and supports the exact same flags. tinyxxd can be useful in connection
|
||||
with building and packaging software, since it's a smaller dependency than ViM, only requires a C11 compiler and is
|
||||
slightly faster.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">xyproto/tinyxxd</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
tinyxxd is a standalone fork of xxd, a slight modernization of the C code, a slight performance increase and a drop-in
|
||||
replacement for xxd. It contains the same logic and supports the exact same flags. tinyxxd can be useful in connection
|
||||
with building and packaging software, since it's a smaller dependency than ViM, only requires a C11 compiler and is
|
||||
slightly faster.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">xyproto/tinyxxd</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="xxd">use it as a replacement for xxd</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
||||
@@ -13,12 +13,17 @@ else
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
RDEPEND="!dev-util/xxd"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
|
||||
SLOT="0"
|
||||
|
||||
IUSE="xxd"
|
||||
|
||||
RDEPEND="xxd? ( !dev-util/xxd !app-editors/vim-core )"
|
||||
|
||||
src_install(){
|
||||
default
|
||||
dosym /usr/bin/tinyxxd /usr/bin/xxd
|
||||
if use xxd; then
|
||||
dosym -r /usr/bin/tinyxxd /usr/bin/xxd
|
||||
fi
|
||||
}
|
||||
@@ -13,12 +13,17 @@ else
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
RDEPEND="!dev-util/xxd"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
|
||||
SLOT="0"
|
||||
|
||||
IUSE="xxd"
|
||||
|
||||
RDEPEND="xxd? ( !dev-util/xxd !app-editors/vim-core )"
|
||||
|
||||
src_install(){
|
||||
default
|
||||
dosym /usr/bin/tinyxxd /usr/bin/xxd
|
||||
if use xxd; then
|
||||
dosym -r /usr/bin/tinyxxd /usr/bin/xxd
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user