wok-next view boost/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents cfe02a64e56a
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="boost"
4 VERSION="1.68.0"
5 CATEGORY="meta"
6 SHORT_DESC="Boost C++ libraries"
7 MAINTAINER="chadi.elahmad@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="https://www.boost.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/boost.html"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="https://dl.bintray.com/boostorg/release/$VERSION/source/${PACKAGE}_${VERSION//./_}.tar.bz2"
14 # https://www.boost.org/users/download/
15 TARBALL_SHA256="7f6130bc3cf65f56a618888ce9d5ea704fa10b462be126ad053e80e553d6d8b7"
17 BUILD_DEPENDS="icu-dev zlib-dev bzip2-dev python-dev"
18 b="boost"
19 SPLIT="$b-atomic $b-chrono $b-container $b-context $b-contract $b-coroutine \
20 $b-date-time $b-fiber $b-filesystem $b-graph $b-iostreams $b-locale $b-log \
21 $b-math $b-math-tr1 $b-prg-exec-monitor $b-program-options $b-python $b-random \
22 $b-regex $b-serialization $b-signals $b-stacktrace $b-system $b-thread \
23 $b-timer $b-type-erasure $b-unit-test-framework $b-wave $b-wserialization \
24 $b-dev"
26 # About splitting: there's complex relationships between header files.
27 # Previously, for example, the /usr/include/boost/chrono/* files were packed
28 # into libboost-chrono-dev package. And so on for many /usr/include/boost/*/
29 #
30 # But, for example:
31 # 1. /usr/include/boost/chrono/config.hpp (former boost-chrono-dev package)
32 # includes <boost/config.hpp> (boost-dev package)
33 # 2. /usr/include/boost/compute/detail/duration.hpp (former boost-dev package)
34 # includes <boost/chrono/duration.hpp> (boost-chrono package)
35 #
36 # And many other circular dependencies between boost-dev and boost-*-dev
37 # packages.
38 #
39 # Solution: make single solid big boost-dev package with all development
40 # files.
41 #
42 # How to change dependencies of packages that depends on boost?
43 # Substitute boost-?-dev by the pair: boost-? and boost-dev.
46 compile_rules() {
47 ./bootstrap.sh --prefix=$install/usr &&
48 ./b2 stage threading=multi link=shared &&
49 ./b2 install threading=multi link=shared || return 1
51 cook_pick_docs doc/html/*
53 find $install -name '*.hpp' -exec chmod 644 '{}' \;
54 }
56 genpkg_rules() {
57 DEPENDS=" "
58 case $PACKAGE in
59 boost) DEPENDS="$b-date-time $b-iostreams $b-regex $b-serialization $b-system $b-thread";;
60 *-chrono) DEPENDS="$b-system";;
61 *-contract) DEPENDS="$b-system";;
62 *-coroutine) DEPENDS="$b-chrono $b-context $b-system $b-thread";;
63 *-fiber) DEPENDS="$b-context $b-filesystem $b-system";;
64 *-filesystem) DEPENDS="$b-system";;
65 *-graph) DEPENDS="$b-regex icu libicu";;
66 *-iostreams) DEPENDS="bzlib zlib";;
67 *-locale) DEPENDS="$b-chrono $b-system $b-thread icu libicu";;
68 *-log) DEPENDS="$b-atomic $b-chrono $b-date-time $b-filesystem $b-regex $b-system $b-thread icu libicu";;
69 *-prg-exec-monitor) DEPENDS="$b-system $b-timer";;
70 *-random) DEPENDS="$b-system";;
71 *-regex) DEPENDS="icu libicu";;
72 *-thread) DEPENDS="$b-system";;
73 *-timer) DEPENDS="$b-chrono $b-system";;
74 *-type-erasure) DEPENDS="$b-chrono $b-system $b-thread";;
75 *-unit-test-framework) DEPENDS="$b-system $b-timer";;
76 *-wave) DEPENDS="$b-chrono $b-date-time $b-filesystem $b-system $b-thread";;
77 *-wserialization) DEPENDS="$b-serialization";;
78 esac
80 case $PACKAGE in
81 boost)
82 CAT="meta|meta-package to install base modules"
83 ;;
84 boost-dev)
85 copy @dev @rm
86 ;;
87 *)
88 p=${PACKAGE#*-}
89 copy libboost_${p//-/_}*.so*
90 CAT="libdevel|${PACKAGE#*-}"
91 ;;
92 esac
94 case $PACKAGE in
95 *-math) rm -f $fs/usr/lib/*math_tr1*.so*;;
96 esac
97 }