* [Buildroot] [PATCH] package/bash-completion: new package
@ 2018-01-11 11:17 Romain Naour
2018-01-11 11:34 ` Baruch Siach
0 siblings, 1 reply; 3+ messages in thread
From: Romain Naour @ 2018-01-11 11:17 UTC (permalink / raw)
To: buildroot
From: Jeremy Rosen <jeremy.rosen@smile.fr>
Signed-off-by: Jeremy Rosen <jeremy.rosen@smile.fr>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
---
package/Config.in | 1 +
package/bash-completion/Config.in | 7 +++++++
package/bash-completion/bash-completion.hash | 3 +++
package/bash-completion/bash-completion.mk | 17 +++++++++++++++++
4 files changed, 28 insertions(+)
create mode 100644 package/bash-completion/Config.in
create mode 100644 package/bash-completion/bash-completion.hash
create mode 100644 package/bash-completion/bash-completion.mk
diff --git a/package/Config.in b/package/Config.in
index 01f4095..d41d855 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1892,6 +1892,7 @@ comment "Shells"
source "package/zsh/Config.in"
comment "Utilities"
source "package/at/Config.in"
+ source "package/bash-completion/Config.in"
source "package/ccrypt/Config.in"
source "package/crudini/Config.in"
source "package/dialog/Config.in"
diff --git a/package/bash-completion/Config.in b/package/bash-completion/Config.in
new file mode 100644
index 0000000..597c928
--- /dev/null
+++ b/package/bash-completion/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_BASH_COMPLETION
+ bool "bash completion"
+ depends on BR2_PACKAGE_BASH
+ help
+ Add bash completion infrastructure.
+
+ https://github.com/scop/bash-completion
diff --git a/package/bash-completion/bash-completion.hash b/package/bash-completion/bash-completion.hash
new file mode 100644
index 0000000..facbeb0
--- /dev/null
+++ b/package/bash-completion/bash-completion.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 41ba892d3f427d4a686de32673f35401bc947a7801f684127120cdb13641441e bash-completion-2.7.tar.xz
+sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
diff --git a/package/bash-completion/bash-completion.mk b/package/bash-completion/bash-completion.mk
new file mode 100644
index 0000000..39177cf
--- /dev/null
+++ b/package/bash-completion/bash-completion.mk
@@ -0,0 +1,17 @@
+################################################################################
+#
+# bash-completion
+#
+################################################################################
+
+BASH_COMPLETION_VERSION = 2.7
+BASH_COMPLETION_SITE = https://github.com/scop/bash-completion/releases/download/$(BASH_COMPLETION_VERSION)
+BASH_COMPLETION_SOURCE = bash-completion-$(BASH_COMPLETION_VERSION).tar.xz
+BASH_COMPLETION_LICENSE = GPL-2.0+
+BASH_COMPLETION_LICENSE_FILES = COPYING
+
+define BASH_COMPLETION_INSTALL_TARGET_CMDS
+ echo ". /usr/share/bash-completion/bash_completion" > $(TARGET_DIR)/etc/bash_completion
+endef
+
+$(eval $(autotools-package))
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/bash-completion: new package
2018-01-11 11:17 [Buildroot] [PATCH] package/bash-completion: new package Romain Naour
@ 2018-01-11 11:34 ` Baruch Siach
2018-01-11 12:45 ` Romain Naour
0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2018-01-11 11:34 UTC (permalink / raw)
To: buildroot
Hi Romain,
On Thu, Jan 11, 2018 at 12:17:26PM +0100, Romain Naour wrote:
> From: Jeremy Rosen <jeremy.rosen@smile.fr>
>
> Signed-off-by: Jeremy Rosen <jeremy.rosen@smile.fr>
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> ---
[...]
> +################################################################################
> +#
> +# bash-completion
> +#
> +################################################################################
> +
> +BASH_COMPLETION_VERSION = 2.7
> +BASH_COMPLETION_SITE = https://github.com/scop/bash-completion/releases/download/$(BASH_COMPLETION_VERSION)
> +BASH_COMPLETION_SOURCE = bash-completion-$(BASH_COMPLETION_VERSION).tar.xz
> +BASH_COMPLETION_LICENSE = GPL-2.0+
> +BASH_COMPLETION_LICENSE_FILES = COPYING
> +
> +define BASH_COMPLETION_INSTALL_TARGET_CMDS
> + echo ". /usr/share/bash-completion/bash_completion" > $(TARGET_DIR)/etc/bash_completion
> +endef
How do you install the completion scripts?
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 3+ messages in thread* [Buildroot] [PATCH] package/bash-completion: new package
2018-01-11 11:34 ` Baruch Siach
@ 2018-01-11 12:45 ` Romain Naour
0 siblings, 0 replies; 3+ messages in thread
From: Romain Naour @ 2018-01-11 12:45 UTC (permalink / raw)
To: buildroot
Hi Baruch,
Le 11/01/2018 ? 12:34, Baruch Siach a ?crit?:
> Hi Romain,
>
> On Thu, Jan 11, 2018 at 12:17:26PM +0100, Romain Naour wrote:
>> From: Jeremy Rosen <jeremy.rosen@smile.fr>
>>
>> Signed-off-by: Jeremy Rosen <jeremy.rosen@smile.fr>
>> Signed-off-by: Romain Naour <romain.naour@smile.fr>
>> ---
>
> [...]
>
>> +################################################################################
>> +#
>> +# bash-completion
>> +#
>> +################################################################################
>> +
>> +BASH_COMPLETION_VERSION = 2.7
>> +BASH_COMPLETION_SITE = https://github.com/scop/bash-completion/releases/download/$(BASH_COMPLETION_VERSION)
>> +BASH_COMPLETION_SOURCE = bash-completion-$(BASH_COMPLETION_VERSION).tar.xz
>> +BASH_COMPLETION_LICENSE = GPL-2.0+
>> +BASH_COMPLETION_LICENSE_FILES = COPYING
>> +
>> +define BASH_COMPLETION_INSTALL_TARGET_CMDS
>> + echo ". /usr/share/bash-completion/bash_completion" > $(TARGET_DIR)/etc/bash_completion
>> +endef
>
> How do you install the completion scripts?
You're right, I wanted to use BASH_COMPLETION_INSTALL_TARGET_HOOKS here and let
the autotools infra install the completion scripts...
I'll resend a v2.
Also, I added BASH_COMPLETION_INSTALL_STAGING = YES since bash-completion
provide a .pc file.
Thanks for your review.
Best regards,
Romain
>
> baruch
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-01-11 12:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-11 11:17 [Buildroot] [PATCH] package/bash-completion: new package Romain Naour
2018-01-11 11:34 ` Baruch Siach
2018-01-11 12:45 ` Romain Naour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox