Switch to new package format
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
name: boost
|
name: boost
|
||||||
description: Collection of high-quality and peer-reviewed libraries that aims to make C++ development highly productive
|
description: Collection of high-quality and peer-reviewed libraries that aims to make C++ development highly productive
|
||||||
version: 1.91.0_1
|
version: 1.91.0_1
|
||||||
revision: 2
|
revision: 3
|
||||||
url: https://www.boost.org/
|
url: https://www.boost.org/
|
||||||
license: BSL-1.0
|
license: BSL-1.0
|
||||||
maintainers:
|
maintainers:
|
||||||
@@ -10,7 +10,7 @@ architecture: any
|
|||||||
type: source
|
type: source
|
||||||
depends:
|
depends:
|
||||||
- bzip2
|
- bzip2
|
||||||
- icu
|
- icu=78.*
|
||||||
- zlib
|
- zlib
|
||||||
- zstd
|
- zstd
|
||||||
make_depends:
|
make_depends:
|
||||||
+4
-11
@@ -1,19 +1,12 @@
|
|||||||
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
# This is the recipe.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
./bootstrap.sh --prefix="$BPM_OUTPUT"/usr --with-python=python3
|
./bootstrap.sh --prefix="$BPM_OUTPUT"/usr --with-toolset=gcc --with-icu --with-python=python3
|
||||||
./b2 stage -j$(nproc) threading=multi link=shared
|
./b2 stage -j$(nproc) variant=release threading=multi link=shared toolset=gcc cflags="$CPPFLAGS $CFLAGS" cxxflags="$CPPFLAGS $CXXFLAGS" linkflags="$LDFLAGS"
|
||||||
}
|
|
||||||
|
|
||||||
# The check function is executed in the source directory
|
|
||||||
# This function is used to run tests to verify the package has been compiled correctly
|
|
||||||
check() {
|
|
||||||
cd tools/build/test
|
|
||||||
python3 test_all.py
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
@@ -22,5 +15,5 @@ package() {
|
|||||||
./b2 install --prefix="$BPM_OUTPUT"/usr threading=multi link=shared
|
./b2 install --prefix="$BPM_OUTPUT"/usr threading=multi link=shared
|
||||||
|
|
||||||
# Install package license
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE_1_0.txt "$BPM_OUTPUT"/usr/share/licenses/boost/LICENSE_1_0.txt
|
install -Dm644 "$BPM_SOURCE"/LICENSE_1_0.txt "$BPM_OUTPUT"/usr/share/licenses/boost/LICENSE
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user