2017-03-16 22:53:02 +00:00
|
|
|
# Copyright 2017 Julian Ospald <hasufell@posteo.de>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
WORK=${WORKBASE}/${PN}-community-${PV}-src
|
|
|
|
|
|
|
|
require cmake [ api=2 ]
|
|
|
|
|
|
|
|
SUMMARY="MySQL Workbench"
|
|
|
|
HOMEPAGE="https://www.mysql.com/products/workbench/"
|
2018-09-16 16:50:06 +00:00
|
|
|
DOWNLOADS="https://dev.mysql.com/get/Downloads/MySQLGUITools/${PN}-community-${PV}-src.tar.gz"
|
2017-03-16 22:53:02 +00:00
|
|
|
|
|
|
|
LICENCES="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
PLATFORMS="~amd64 ~x86"
|
|
|
|
MYOPTIONS=""
|
|
|
|
|
|
|
|
# not 100% sure about tinyxml and net-tools
|
|
|
|
DEPENDENCIES="
|
|
|
|
build:
|
|
|
|
dev-lang/swig
|
|
|
|
virtual/jre
|
|
|
|
virtual/pkg-config
|
|
|
|
build+run:
|
|
|
|
app-arch/libzip
|
|
|
|
dev-cpp/cairomm:1.0
|
|
|
|
dev-cpp/ctemplate
|
|
|
|
dev-cpp/libsigc++:2
|
|
|
|
dev-db/libiodbc
|
2018-09-16 16:50:06 +00:00
|
|
|
dev-db/mysql-connector-c++[>=${PV}]
|
2017-03-16 22:53:02 +00:00
|
|
|
dev-db/vsqlite++
|
2018-09-16 16:50:06 +00:00
|
|
|
dev-java/antlr:4
|
2017-03-16 22:53:02 +00:00
|
|
|
dev-lang/python:2.7[sqlite]
|
2018-09-16 16:50:06 +00:00
|
|
|
dev-libs/antlr4-cpp
|
2017-03-16 22:53:02 +00:00
|
|
|
dev-libs/boost
|
|
|
|
dev-libs/glib:2
|
2018-09-16 16:50:06 +00:00
|
|
|
dev-libs/libsecret:1
|
2017-03-16 22:53:02 +00:00
|
|
|
dev-libs/libxml2:2.0
|
|
|
|
dev-libs/pcre
|
|
|
|
dev-libs/tinyxml
|
|
|
|
dev-python/paramiko[python_abis:2.7]
|
|
|
|
dev-python/pycairo[python_abis:2.7]
|
|
|
|
gnome-bindings/atkmm:1.6
|
|
|
|
gnome-bindings/glibmm:2.4
|
|
|
|
gnome-bindings/gtkmm:3
|
|
|
|
gnome-bindings/pangomm:1.4
|
|
|
|
gnome-desktop/libgnome-keyring
|
|
|
|
gnome-platform/libglade:2
|
2018-09-16 16:50:06 +00:00
|
|
|
net-libs/libssh
|
2017-03-16 22:53:02 +00:00
|
|
|
sci-libs/gdal
|
|
|
|
virtual/mysql
|
|
|
|
x11-dri/mesa
|
|
|
|
x11-libs/cairo
|
|
|
|
x11-libs/gdk-pixbuf:2.0
|
|
|
|
x11-libs/gtk+:3
|
|
|
|
x11-libs/libX11
|
|
|
|
x11-libs/pango
|
|
|
|
run:
|
|
|
|
sys-apps/net-tools
|
|
|
|
"
|
|
|
|
|
|
|
|
BUGS_TO="hasufell@posteo.de"
|
|
|
|
|
|
|
|
src_prepare() {
|
2017-03-17 09:32:08 +00:00
|
|
|
# fix gdal includes
|
|
|
|
edo sed -i \
|
|
|
|
-e 's|#include <gdal/|#include <|' \
|
|
|
|
"${CMAKE_SOURCE}"/backend/wbpublic/grt/*.h \
|
|
|
|
"${CMAKE_SOURCE}"/backend/wbpublic/grtui/*.h \
|
|
|
|
"${CMAKE_SOURCE}"/backend/wbpublic/objimpl/db.query/*.cpp
|
|
|
|
|
2017-03-16 22:53:02 +00:00
|
|
|
# fix python detection
|
|
|
|
edo sed -i \
|
|
|
|
-e '/find_package(PythonLibs 2.6)/d' \
|
2018-02-05 14:04:09 +00:00
|
|
|
-e '/pkg_check_modules/s#python#python-2.7#' \
|
2017-03-16 22:53:02 +00:00
|
|
|
"${CMAKE_SOURCE}"/CMakeLists.txt
|
|
|
|
|
2018-02-01 22:50:22 +00:00
|
|
|
# rm -Werror, fails due to -Wdeprecated
|
|
|
|
edo sed -i \
|
|
|
|
-e 's/\-Werror//' \
|
|
|
|
"${CMAKE_SOURCE}"/CMakeLists.txt
|
|
|
|
|
2018-09-16 16:50:06 +00:00
|
|
|
# fix mysql-connector-c++ detection
|
|
|
|
edo sed -i \
|
|
|
|
-e '/MySQLCppConn_INCLUDE_DIR NAMES/s#/usr/include#/usr/include/jdbc#' \
|
|
|
|
"${CMAKE_SOURCE}"/build/cmake/Modules/FindMySQLCppConn.cmake
|
|
|
|
|
|
|
|
# fix antl4 jar detection
|
|
|
|
edo sed -i \
|
|
|
|
-e '/ANTLR_JAR_FILENAME/s/antlr-4.7.1-complete.jar/antlr-complete.jar/' \
|
|
|
|
"${CMAKE_SOURCE}"/CMakeLists.txt
|
|
|
|
|
2017-03-16 22:53:02 +00:00
|
|
|
cmake_src_prepare
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
CMAKE_SRC_CONFIGURE_PARAMS=(
|
|
|
|
-DIODBC_CONFIG_PATH="/usr/$(exhost --target)/bin/iodbc-config"
|
|
|
|
-DLIB_INSTALL_DIR="/usr/$(exhost --target)/lib"
|
|
|
|
-DSHARE_INSTALL_PREFIX=/usr/share
|
2018-09-16 16:50:06 +00:00
|
|
|
-DANTLR_JAR_PATH="/usr/share/antlr-4"
|
|
|
|
-DANTLR_JAR_FILENAME="antlr-complete.jar"
|
2017-03-16 22:53:02 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
cmake_src_configure
|
|
|
|
}
|
|
|
|
|