Skip to content

Commit

Permalink
travis: update hyperscan to 4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
starius committed Jun 1, 2016
1 parent 180aa54 commit 56bb150
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
14 changes: 5 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,18 @@ before_install:
- perl -pi -e 's@/usr/lib/valgrind@/tmp/lib/valgrind@g;' /tmp/lib/valgrind/*-lin /tmp/bin/valgrind.bin

# hyperscan and its dependencies
- wget -O 'hyperscan-4.1.0.tar.gz' 'https://github.com/01org/hyperscan/archive/v4.1.0.tar.gz'
- echo 'b8de3f59c2bd1a8765a5aca5dfdd062766cef67218aedf63df2c92766524b3c1 hyperscan-4.1.0.tar.gz' | sha256sum -c -
- tar -xf 'hyperscan-4.1.0.tar.gz'
- wget -O 'hyperscan-4.2.0.tar.gz' 'https://github.com/01org/hyperscan/archive/v4.2.0.tar.gz'
- echo 'd06d8f31a62e5d2903a8ccf07696e02cadf4de2024dc3b558d410d913c81dbef hyperscan-4.2.0.tar.gz' | sha256sum -c -
- tar -xf 'hyperscan-4.2.0.tar.gz'
# boost
- wget 'http://downloads.sourceforge.net/project/boost/boost/1.60.0/boost_1_60_0.tar.bz2'
- echo '686affff989ac2488f79a97b9479efb9f2abae035b5ed4d8226de6857933fd3b boost_1_60_0.tar.bz2' | sha256sum -c -
- tar -xf boost_1_60_0.tar.bz2
- ln -s ../../boost_1_60_0/boost hyperscan-4.1.0/include/
# apply patches to hyperscan
- cd hyperscan-4.1.0
- patch -p1 -u < ../src/hyperscan-fix-linking.patch
- cd ..
- ln -s ../../boost_1_60_0/boost hyperscan-4.2.0/include/
# build hyperscan
- mkdir hyperscan-build
- cd hyperscan-build
- cmake ../hyperscan-4.1.0 -DCMAKE_INSTALL_PREFIX=$(pwd)/../hyperscan-install/ -DBUILD_SHARED_LIBS=ON
- cmake ../hyperscan-4.2.0 -DCMAKE_INSTALL_PREFIX=$(pwd)/../hyperscan-install/ -DBUILD_SHARED_LIBS=ON
- make -j 2
- make install
- cd ..
Expand Down
13 changes: 0 additions & 13 deletions src/hyperscan-fix-linking.patch

This file was deleted.

0 comments on commit 56bb150

Please sign in to comment.