From 5d05c0ce1524cbf9bd1f66e365d85a0761ba3720 Mon Sep 17 00:00:00 2001 From: Alexander Kapshuna Date: Thu, 25 Jul 2019 00:09:41 +0300 Subject: [PATCH 1/2] lsd: version bump to 0.15.1 --- .../sys-apps/lsd/{lsd-0.12.0.exheres-0 => lsd-0.15.1.exheres-0} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename packages/sys-apps/lsd/{lsd-0.12.0.exheres-0 => lsd-0.15.1.exheres-0} (100%) diff --git a/packages/sys-apps/lsd/lsd-0.12.0.exheres-0 b/packages/sys-apps/lsd/lsd-0.15.1.exheres-0 similarity index 100% rename from packages/sys-apps/lsd/lsd-0.12.0.exheres-0 rename to packages/sys-apps/lsd/lsd-0.15.1.exheres-0 From 3874fdea536804dbf30f65b49fa1e30d94f437d8 Mon Sep 17 00:00:00 2001 From: Alexander Kapshuna Date: Thu, 25 Jul 2019 00:16:29 +0300 Subject: [PATCH 2/2] lsd: exlibify to add shell completions --- packages/sys-apps/lsd/lsd-0.15.1.exheres-0 | 19 +---------- packages/sys-apps/lsd/lsd-scm.exheres-0 | 12 +------ packages/sys-apps/lsd/lsd.exlib | 38 ++++++++++++++++++++++ 3 files changed, 40 insertions(+), 29 deletions(-) create mode 100644 packages/sys-apps/lsd/lsd.exlib diff --git a/packages/sys-apps/lsd/lsd-0.15.1.exheres-0 b/packages/sys-apps/lsd/lsd-0.15.1.exheres-0 index 28dd8d5..a57e582 100644 --- a/packages/sys-apps/lsd/lsd-0.15.1.exheres-0 +++ b/packages/sys-apps/lsd/lsd-0.15.1.exheres-0 @@ -3,24 +3,7 @@ require cargo [ channel=stable ] 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" -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}" -} diff --git a/packages/sys-apps/lsd/lsd-scm.exheres-0 b/packages/sys-apps/lsd/lsd-scm.exheres-0 index d3aadb8..f49000d 100644 --- a/packages/sys-apps/lsd/lsd-scm.exheres-0 +++ b/packages/sys-apps/lsd/lsd-scm.exheres-0 @@ -3,17 +3,7 @@ require github [ user=Peltoche tag="${PV}" ] 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" -MYOPTIONS="" - -DEPENDENCIES=" -" - -BUGS_TO="hasufell@posteo.de" diff --git a/packages/sys-apps/lsd/lsd.exlib b/packages/sys-apps/lsd/lsd.exlib new file mode 100644 index 0000000..c9fc625 --- /dev/null +++ b/packages/sys-apps/lsd/lsd.exlib @@ -0,0 +1,38 @@ +# Copyright 2019 Julian Ospald +# 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}" +} +