development/mysql-workbench: Force building over python-2.7.

(In case python-3.x is also installed)

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2014-01-06 16:56:11 +01:00 committed by Erik Hanson
parent a758e7fbd8
commit 5c0c01fbed
2 changed files with 10 additions and 4 deletions

View file

@ -12,3 +12,6 @@ environment for:
You need to allow MySQL to accept incoming connections from outside: You need to allow MySQL to accept incoming connections from outside:
Remove or comment this line: SKIP="--skip-networking" and then do: Remove or comment this line: SKIP="--skip-networking" and then do:
/etc/rc.d/rc.mysqld restart /etc/rc.d/rc.mysqld restart
Note: MySQL Workbench will be built against Python 2.7 even when Python 3.x
is installed on your system

View file

@ -3,7 +3,7 @@
# Slackware build script for mysql-workbench # Slackware build script for mysql-workbench
# Originally written by André Geraldo Vieira <andre.geraldo@gmail.com> # Originally written by André Geraldo Vieira <andre.geraldo@gmail.com>
# Copyright 2013 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # Copyright 2013-2014 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -25,7 +25,7 @@
PRGNAM=mysql-workbench PRGNAM=mysql-workbench
VERSION=${VERSION:-6.0.8} VERSION=${VERSION:-6.0.8}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
SRCVERSION=$VERSION-src SRCVERSION=$VERSION-src
@ -67,8 +67,8 @@ tar xvf $CWD/$PRGNAM-community-$SRCVERSION.tar.gz
cd $PRGNAM-community-$SRCVERSION cd $PRGNAM-community-$SRCVERSION
chown -R root:root . chown -R root:root .
find -L . \ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-exec chmod 755 {} \; -o \ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
@ -82,7 +82,10 @@ cmake \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_INSTALL_DIR=/usr/lib$LIBDIRSUFFIX \ -DLIB_INSTALL_DIR=/usr/lib$LIBDIRSUFFIX \
-DPYTHON_INCLUDE_DIR:PATH=/usr/include/python2.7 \
-DPYTHON_LIBRARY:FILEPATH=/usr/lib$LIBDIRSUFFIX/libpython2.7.so \
-DCMAKE_BUILD_TYPE=Release .. -DCMAKE_BUILD_TYPE=Release ..
make make
# we will remove it later after installation # we will remove it later after installation