Skip to content

Commit

Permalink
revert(ci): Install proj sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentinchampenois committed Jul 5, 2024
1 parent 636da0c commit 138b1d4
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .github/install_proj.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
sudo apt-get update && sudo apt-get install -y cmake sqlite libtiff-dev curl libcurl4-openssl-dev libssl-dev libproj-dev proj-bin

# curl https://download.osgeo.org/proj/"${PROJ_VERSION}".tar.gz -o "${PROJ_VERSION}".tar.gz
sudo apt-get update && sudo apt install cmake sqlite libtiff-dev curl libcurl4-openssl-dev libssl-dev -y

if [ ! -d "$PROJ_VERSION" ]; then
curl -L https://download.osgeo.org/proj/"${PROJ_VERSION}".tar.gz -o "${PROJ_VERSION}".tar.gz
curl https://download.osgeo.org/proj/"${PROJ_VERSION}".tar.gz -o "${PROJ_VERSION}".tar.gz
tar -xzf "${PROJ_VERSION}".tar.gz
fi

Expand All @@ -17,17 +15,3 @@ cd build || exit
cmake ..
sudo cmake --build . -j "$(nproc)" --target install
sudo ldconfig

export PROJ_DIR=/usr/local
export PROJ_LIB=/usr/local/lib
export PROJ_INCLUDE=/usr/local/include

proj

echo "PROJ_DIR: $PROJ_DIR"
echo "PROJ_LIB: $PROJ_LIB"
echo "PROJ_INCLUDE: $PROJ_INCLUDE"

gem install rgeo-proj4 -- --with-proj-dir=$PROJ_DIR --with-proj-include=$PROJ_INCLUDE --with-proj-lib=$PROJ_LIB
bundle config build.rgeo-proj4 --with-proj-dir=$PROJ_DIR --with-proj-include=$PROJ_INCLUDE --with-proj-lib=$PROJ_LIB
bundle install

0 comments on commit 138b1d4

Please sign in to comment.