commit:     a2d1f0c672088831531c92508f8e4bf6a3e6480c
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue May 21 14:28:11 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue May 21 14:28:11 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=a2d1f0c6

travis: attempt to install blake2

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 .travis.yml              |  1 +
 travis/install-blake2.sh | 27 +++++++++++++++++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index fb4c521..5e788a8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,4 +24,5 @@ addons:
 
 before_install:
   - ./travis/install-iniparser.sh
+  - ./travis/install-blake2.sh
 script: ./travis/main.sh

diff --git a/travis/install-blake2.sh b/travis/install-blake2.sh
new file mode 100755
index 0000000..1ee6f1e
--- /dev/null
+++ b/travis/install-blake2.sh
@@ -0,0 +1,27 @@
+#!/bin/bash -e
+
+. "${0%/*}"/lib.sh
+
+main() {
+       local pv="0.98.1"
+       local S="libb2-${pv}"
+       travis_fold start dep-blake2
+       rm -rf libb2*
+       v mkdir -p ../sysroot
+       v wget 
https://github.com/BLAKE2/libb2/releases/download/v${pv}/libb2-${pv}.tar.gz
+       v tar xf libb2-${pv}.tar.gz
+       (
+               cd "${S}"
+               ./configure \
+                       --enable-static \
+                       --disable-shared \
+                       --prefix=/ \
+                       --libdir=/ \
+                       --includedir=/
+               m
+               m DESTDIR=../../sysroot install
+       )
+       v rm -rf libb2*
+       travis_fold end dep-blake2
+}
+main "$@"

Reply via email to