development/mysql-workbench-gpl: Updated for version 6.0.4.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2013-10-31 22:15:57 -05:00 committed by Robby Workman
parent 0a6237aabb
commit 1301d0e5eb
2 changed files with 28 additions and 21 deletions

View file

@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mysql-workbench-gpl
VERSION=${VERSION:-5.2.47}
VERSION=${VERSION:-6.0.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -74,36 +74,43 @@ find . \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./autogen.sh
libtoolize --force
autoreconf -vif
# Patch from Ponce
patch -p1 < $CWD/config_and_ifconfig_paths.patch
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux \
--disable-debug \
--enable-shared=yes \
--enable-static=no \
mkdir wb-build
cd wb-build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release ..
make
# we will remove it later after installation
# without these document, it will fail to build
touch $TMP/$PRGNAM-$SRCVERSION/LICENSE.mysql
make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
cd ..
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS COPYING README COPYING.LGPL ChangeLog INSTALL \
AUTHORS COPYING* ChangeLog README INSTALL \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# remove unnecessary empty document
rm -f $TMP/$PRGNAM-$SRCVERSION/LICENSE.mysql
# Fix missing shared library libwbbase
(
cd $PKG/usr/lib${LIBDIRSUFFIX}
rm -f libwbbase.so
ln -s mysql-workbench/libwbbase.so .
)
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

View file

@ -1,10 +1,10 @@
PRGNAM="mysql-workbench-gpl"
VERSION="5.2.47"
VERSION="6.0.4"
HOMEPAGE="http://www.mysql.com/downloads/workbench/"
DOWNLOAD="http://www.mirrorservice.org/sites/ftp.mysql.com/Downloads/MySQLGUITools/mysql-workbench-gpl-5.2.47-src.tar.gz"
MD5SUM="e7cfb1249dddf628a6586bc309679ef3"
DOWNLOAD="http://www.mirrorservice.org/sites/ftp.mysql.com/Downloads/MySQLGUITools/mysql-workbench-gpl-6.0.4-src.tar.gz"
MD5SUM="c2c09a570dbb9a92c8115cc20585ef51"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="gtkmm ctemplate paramiko pexpect lua wxPython"
REQUIRES="tinyxml mysql-connector-c++ vsqlite++ gtkmm ctemplate paramiko pexpect lua wxPython"
MAINTAINER="Willy Sudiarto Raharjo"
EMAIL="willysr@slackware-id.org"