forked from hasufell/hasufell-repository
lsd: exlibify to add shell completions
This commit is contained in:
parent
5d05c0ce15
commit
3874fdea53
@ -3,24 +3,7 @@
|
|||||||
|
|
||||||
require cargo [ channel=stable ]
|
require cargo [ channel=stable ]
|
||||||
require github [ user=Peltoche tag="${PV}" ]
|
require github [ user=Peltoche tag="${PV}" ]
|
||||||
|
require lsd
|
||||||
|
|
||||||
SUMMARY="The next gen ls command"
|
|
||||||
HOMEPAGE="https://crates.io/crates/lsd ${HOMEPAGE}"
|
|
||||||
|
|
||||||
LICENCES="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64 ~x86"
|
PLATFORMS="~amd64 ~x86"
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
"
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
local test_socket="unix:${TEMP}/test_socket_type.*/socket.tmp"
|
|
||||||
esandbox allow_net --bind "${test_socket}"
|
|
||||||
cargo_src_test
|
|
||||||
esandbox disallow_net "${test_socket}"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -3,17 +3,7 @@
|
|||||||
|
|
||||||
require github [ user=Peltoche tag="${PV}" ]
|
require github [ user=Peltoche tag="${PV}" ]
|
||||||
require cargo [ channel=stable ]
|
require cargo [ channel=stable ]
|
||||||
|
require lsd
|
||||||
|
|
||||||
SUMMARY="The next gen ls command"
|
|
||||||
HOMEPAGE="https://crates.io/crates/lsd ${HOMEPAGE}"
|
|
||||||
|
|
||||||
LICENCES="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64 ~x86"
|
PLATFORMS="~amd64 ~x86"
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
"
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
|
38
packages/sys-apps/lsd/lsd.exlib
Normal file
38
packages/sys-apps/lsd/lsd.exlib
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# Copyright 2019 Julian Ospald <hasufell@posteo.de>
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
require bash-completion zsh-completion
|
||||||
|
|
||||||
|
SUMMARY="The next gen ls command"
|
||||||
|
HOMEPAGE="https://crates.io/crates/lsd ${HOMEPAGE}"
|
||||||
|
|
||||||
|
LICENCES="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
MYOPTIONS=""
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
"
|
||||||
|
|
||||||
|
BUGS_TO="hasufell@posteo.de"
|
||||||
|
|
||||||
|
BASH_COMPLETIONS=( "${WORK}/completions/${PN}.bash" )
|
||||||
|
ZSH_COMPLETIONS=( "${WORK}/completions/_${PN}" )
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
SHELL_COMPLETIONS_DIR="${WORK}/completions" \
|
||||||
|
cargo_src_compile
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cargo_src_install
|
||||||
|
bash-completion_src_install
|
||||||
|
zsh-completion_src_install
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
local test_socket="unix:${TEMP}/test_socket_type.*/socket.tmp"
|
||||||
|
esandbox allow_net --bind "${test_socket}"
|
||||||
|
cargo_src_test
|
||||||
|
esandbox disallow_net "${test_socket}"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user