Skip to content

Commit

Permalink
[boost159] Adds package
Browse files Browse the repository at this point in the history
Signed-off-by: Romain Sertelon <romain@sertelon.fr>
  • Loading branch information
rsertelon committed May 2, 2018
1 parent f0277df commit e949a25
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .bldr.toml
Expand Up @@ -61,6 +61,8 @@ plan_path = "bison"
plan_path = "bison2"
[boost]
plan_path = "boost"
[boost159]
plan_path = "boost159"
[bundler]
plan_path = "bundler"
[busybox]
Expand Down
8 changes: 7 additions & 1 deletion boost/README.md
Expand Up @@ -12,4 +12,10 @@ Binary package

## Usage

*TODO: Add instructions for usage*
This is a library usually used at build time, thus you should use it like so in your plans:

```
pkg_build_deps=(
core/boost
)
```
23 changes: 23 additions & 0 deletions boost159/README.md
@@ -0,0 +1,23 @@
# boost159

Boost provides free peer-reviewed portable C++ source libraries.

> Note: this package is required by `core/mysql` and `core/mysql-client` packages, you should use `core/boost` in your packages instead.
## Maintainers

* The Habitat Maintainers: <humans@habitat.sh>

## Type of Package

Binary package

## Usage

This is a library usually used at build time, thus you should use it like so in your plans:

```
pkg_build_deps=(
core/boost159
)
```
47 changes: 47 additions & 0 deletions boost159/plan.sh
@@ -0,0 +1,47 @@
pkg_name=boost159
pkg_origin=core
pkg_description='Boost provides free peer-reviewed portable C++ source libraries.'
pkg_upstream_url='http://www.boost.org/'
pkg_version=1.59.0
pkg_maintainer='The Habitat Maintainers <humans@habitat.sh>'
pkg_license=('Boost Software License')
pkg_dirname="boost_${pkg_version//./_}"
pkg_source="http://downloads.sourceforge.net/project/boost/boost/${pkg_version}/${pkg_dirname}.tar.gz"
pkg_shasum="47f11c8844e579d02691a607fbd32540104a9ac7a2534a8ddaef50daf502baac"

pkg_deps=(
core/glibc
core/gcc-libs
)

pkg_build_deps=(
core/glibc
core/gcc-libs
core/coreutils
core/diffutils
core/patch
core/make
core/gcc
core/python2
core/libxml2
core/libxslt
core/openssl
core/which
core/zlib
)

pkg_lib_dirs=(lib)
pkg_include_dirs=(include)

do_build() {
./bootstrap.sh --prefix="$pkg_prefix"
}

do_install() {
export NO_BZIP2=1
export ZLIB_LIBPATH
ZLIB_LIBPATH="$(pkg_path_for core/zlib)/lib"
export ZLIB_INCLUDE
ZLIB_INCLUDE="$(pkg_path_for core/zlib)/include"
./b2 install --prefix="$pkg_prefix" -q --debug-configuration -j"$(nproc)"
}

0 comments on commit e949a25

Please sign in to comment.