From ca2d83a61c374fc5ac98a2d2dd86400eff21a1b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Thu, 28 Jul 2016 00:29:54 +0200 Subject: [PATCH] bash_completion: recipe for 2.3; which breaks haikuporter The tarball triggers an issue with tarfile which doesn't handle unicode in filenames: 'ascii' codec can't decode byte 0xc3 in position 44: ordinal not in range(128) --- .../bash_completion-2.3.recipe | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 app-shells/bash_completion/bash_completion-2.3.recipe diff --git a/app-shells/bash_completion/bash_completion-2.3.recipe b/app-shells/bash_completion/bash_completion-2.3.recipe new file mode 100644 index 000000000..508bf3dd0 --- /dev/null +++ b/app-shells/bash_completion/bash_completion-2.3.recipe @@ -0,0 +1,65 @@ +SUMMARY="Tab-completion for the Bash shell" +DESCRIPTION="Since v2.04, bash has allowed you to intelligently program \ +and extend its standard completion behavior to achieve complex command \ +lines with just a few keystrokes. Imagine typing ssh [Tab] and being \ +able to complete on hosts from your ~/.ssh/known_hosts files. Or typing \ +man 3 str [Tab] and getting a list of all string handling functions in \ +the UNIX manual. mount system: [Tab] would complete on all exported \ +file-systems from the host called system, while make [Tab] would complete \ +on all targets in Makefile. This project was conceived to produce \ +programmable completion routines for the most common Linux/UNIX commands, \ +reducing the amount of typing sysadmins and programmers need to do on \ +a daily basis." +HOMEPAGE="https://github.com/scop/bash-completion" +COPYRIGHT="2006-2014 Debian Project" +LICENSE="GNU GPL v2" +REVISION="2" +SOURCE_URI="https://github.com/scop/bash-completion/releases/download/2.3/bash-completion-2.3.tar.xz" +CHECKSUM_SHA256="b2e081af317f3da4fff3a332bfdbebeb5514ebc6c2d2a9cf781180acab15e8e9" +SOURCE_DIR="bash-completion-$portVersion" +PATCHES="bash_completion-haiku.patch" + +ARCHITECTURES="!any" + +PROVIDES=" + bash_completion = $portVersion + " +REQUIRES=" + cmd:bash + " +BUILD_REQUIRES=" + cmd:bash + " +BUILD_PREREQUIRES=" + haiku + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:awk + cmd:bash + cmd:make + " + +GLOBAL_WRITABLE_FILES=" + settings/profile.d/bash_completion.sh auto-merge + " +USER_SETTINGS_FILES=" + settings/profile.d/bash_completion.sh + " + +BUILD() +{ + autoreconf -i + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install +} + +#TEST() +#{ +# make check +#}