You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by al...@apache.org on 2021/05/04 23:37:40 UTC

[datasketches-postgresql] 01/01: added boost

This is an automated email from the ASF dual-hosted git repository.

alsay pushed a commit to branch boost
in repository https://gitbox.apache.org/repos/asf/datasketches-postgresql.git

commit 7e383c501f33ef0a5784af20e7f3424f4ced2de2
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Tue May 4 16:37:07 2021 -0700

    added boost
---
 README.md  |  9 ++++++++-
 package.sh | 19 ++++++++++++++++---
 2 files changed, 24 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index d605541..7118f95 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,8 @@ For PostgreSQL installation instructions see [PostgreSQL documentation](https://
 
 This code requires C++11. It was tested with GCC 4.8.5 (standard in RedHat at the time of this writing), GCC 8.2.0, GCC 9.2.0, Apple LLVM version 10.0.1 (clang-1001.0.46.4) and version 11.0.0 (clang-1100.0.33.8).
 
-This code depends on [datasketches-cpp version 2.1.0-incubating](https://github.com/apache/incubator-datasketches-cpp/releases/tag/2.1.0-incubating)
+This code depends on [datasketches-cpp](https://github.com/apache/datasketches-cpp/)
+and [Boost](https://www.boost.org/)
 
 There are two slightly different ways to build this extension: from a PGXN distribution or from two separate packages: datasketches-postgresql and datasketches-cpp (either from GitHub or from [Apache archive](http://archive.apache.org/dist/datasketches/))
 
@@ -59,6 +60,12 @@ There are two slightly different ways to build this extension: from a PGXN distr
       - datasketches-postgresql
           - datasketches-cpp -> ../datasketches-cpp
 
+### Boost
+
+   - [Download Boost](https://www.boost.org/users/download/)
+   - Unzip and rename or make a link with no version in the name like so:
+      - boost -> boost_1_76_0
+
 ### Building and installing
 
    - make
diff --git a/package.sh b/package.sh
index 8b4d1a3..0ab531a 100755
--- a/package.sh
+++ b/package.sh
@@ -32,7 +32,12 @@ if [ -z $2 ]; then
 fi
 
 # version of datasketches-cpp core library to include
-CORETAG=2.1.0-incubating
+CORETAG=3.0.0
+
+# boost version to include
+BOOSTVER=1.76.0
+BOOSTNAME=boost_${BOOSTVER//./_}
+BOOSTURL=https://boostorg.jfrog.io/artifactory/main/release/$BOOSTVER/source/$BOOSTNAME.zip
 
 DST=datasketches-$VER
 
@@ -46,13 +51,21 @@ git archive --format zip --prefix=$DST/ --output $PGARCH $TAG
 cd ../datasketches-cpp
 git archive --format zip --output ../datasketches-postgresql/$COREARCH $CORETAG
 cd ../datasketches-postgresql
+wget $BOOSTURL
 
 unzip $PGARCH
 COREDIR=$DST/datasketches-cpp
 mkdir $COREDIR
 unzip $COREARCH -d $COREDIR
 
+# extra readme files confuse pgxn.org
+rm $COREDIR/README.md
+rm $COREDIR/*/README.md
+
+unzip $BOOSTNAME.zip
+mv boost_${BOOSTVER//./_}/boost $DST
+
 zip -r $DST.zip $DST
 
-rm $PGARCH $COREARCH
-rm -r $DST
+rm $PGARCH $COREARCH $BOOSTNAME.zip
+rm -r $DST $BOOSTNAME

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org