Require libjansson >=2.5.

This commit is contained in:
Håvard Pettersson 2014-09-18 18:16:15 +02:00
parent 8916958c57
commit d176f8fdc1
2 changed files with 29 additions and 22 deletions

View File

@ -3,37 +3,44 @@ language: c
install: install:
- _libsodium_version=0.7.0 - _libsodium_version=0.7.0
- _weechat_version=v1.0 - _weechat_version=v1.0
- _libjansson_version=v2.5
# install libjansson # install libjansson
- sudo apt-get install libjansson-dev - git clone git://github.com/akheron/jansson
- pushd jansson
# install libsodium (needed for libtoxcore) - git checkout tags/${_libjansson_version}
- git clone git://github.com/jedisct1/libsodium.git > /dev/null - ./configure --prefix=/usr
- pushd libsodium - make -j3
- git checkout tags/${_libsodium_version} > /dev/null - sudo make install
- ./autogen.sh > /dev/null
- ./configure --prefix=/usr > /dev/null
- make -j3 > /dev/null
- sudo make install > /dev/null
- popd - popd
# install toxcore # install libsodium (needed for libtoxcore)
- git clone git://github.com/irungentoo/toxcore > /dev/null - git clone git://github.com/jedisct1/libsodium.git
- pushd libsodium
- git checkout tags/${_libsodium_version}
- ./autogen.sh
- ./configure --prefix=/usr
- make -j3
- sudo make install
- popd
# install libtoxcore
- git clone git://github.com/irungentoo/toxcore
- pushd toxcore - pushd toxcore
- autoreconf -i > /dev/null - autoreconf -i
- ./configure --prefix=/usr --disable-testing --disable-ntox > /dev/null - ./configure --prefix=/usr --disable-testing --disable-ntox
- make -j3 > /dev/null - make -j3
- sudo make install > /dev/null - sudo make install
- popd - popd
# install weechat # install weechat
- git clone git://github.com/weechat/weechat > /dev/null - git clone git://github.com/weechat/weechat
- pushd weechat - pushd weechat
- git checkout tags/${_weechat_version} > /dev/null - git checkout tags/${_weechat_version}
- mkdir build && cd build - mkdir build && cd build
- cmake .. -DPREFIX=/usr > /dev/null - cmake .. -DPREFIX=/usr
- make -j3 > /dev/null - make -j3
- sudo make install > /dev/null - sudo make install
- popd - popd
script: script:

View File

@ -6,7 +6,7 @@ Current build status: [![Build Status](https://travis-ci.org/haavardp/tox-weecha
Installation Installation
------------ ------------
Tox-WeeChat requires [WeeChat][1], [libjansson][3], and the latest [libtoxcore][4]. It also requires CMake to be built. Installation is fairly simple: Tox-WeeChat requires [WeeChat][1] >=1.0, [libjansson][3] >=2.5, and the latest-ish [libtoxcore][4]. It also requires CMake to be built. Installation is fairly simple:
$ git clone https://github.com/haavardp/tox-weechat.git $ git clone https://github.com/haavardp/tox-weechat.git
$ cd tox-weechat $ cd tox-weechat