Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 61 lines (43 sloc) 1.69 KB
#! /bin/bash
# ------------------------------------------------------------------- Debug
# COOKIE=$(mcookie|cut -c-8); grep -v V_GREP_ME $0 > /dev/shm/runme-$COOKIE.sh ; sleep 0.3; exec bash /dev/shm/runme-$COOKIE.sh
# TESTING=1
set -xe
# ---------------------------------------------------------------- Preamble
PKG=tulip
TULIP_VERSION=5.6.3
BUILD=0
# orig https://sourceforge.net/projects/auber/files/tulip/tulip-${TULIP_VERSION}/tulip-${TULIP_VERSION}_src.tar.gz
BEEHIVE=https://beehive.molgen.mpg.de/3587478852227ce2787dad594b4d1587/tulip-5.6.3_src.tar.gz
PYTHONINUSE=/pkg/python-3.10.8-0
PREFIX=/pkg/$PKG-$TULIP_VERSION-$BUILD
if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$TULIP_VERSION-$BUILD; fi
mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:$PYTHONINUSE/bin:\$PATH
LD_LIBRARY_PATH=$PREFIX/lib:$PYTHONINUSE/lib\${LD_LIBRARY_PATH:+:}\$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
EOF
source $PREFIX/profile
mkdir -p $PREFIX/build
NPROC=$(( $(nproc) * 4 / 5 + 1 ))
# ------------------------------------------------------------------- Build
cd $PREFIX/build
test -e tulip-${TULIP_VERSION}_src.tar.gz || wget -nv $BEEHIVE
test -n "$PURGE" && rm -rf tulip-${TULIP_VERSION}
test -d tulip-${TULIP_VERSION} || tar -xf tulip-${TULIP_VERSION}_src.tar.gz
mkdir -p tulip-${TULIP_VERSION}/build
cd tulip-${TULIP_VERSION}/build
cmake \
-DCMAKE_PREFIX_PATH=/usr/local/qt5/lib/cmake \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DTULIP_USE_QT5=ON \
-DPYTHON_EXECUTABLE=$PYTHONINUSE/bin/python3 \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_COLOR_MAKEFILE=OFF \
-DCMAKE_VERBOSE_MAKEFILE=ON \
..
make -j $NPROC
make install
exit
# -------------------------------------------------------- This is the end.