/[gentoo-x86]/dev-db/mysql-workbench/mysql-workbench-6.3.4.ebuild
Gentoo

Contents of /dev-db/mysql-workbench/mysql-workbench-6.3.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jul 12 10:07:55 2015 UTC (2 years, 7 months ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Add minimum version to boost dependency based on bug 520722.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-workbench/mysql-workbench-6.3.4.ebuild,v 1.2 2015/07/12 09:53:38 graaff Exp $
4
5 EAPI=5
6 GCONF_DEBUG="no"
7
8 PYTHON_COMPAT=( python2_7 )
9 PYTHON_REQ_USE="sqlite"
10
11 CMAKE_MIN_VERSION="2.8.11.1"
12
13 inherit gnome2 eutils flag-o-matic python-single-r1 cmake-utils
14
15 MY_P="${PN}-community-${PV}-src"
16
17 DESCRIPTION="MySQL Workbench"
18 HOMEPAGE="http://dev.mysql.com/workbench/"
19 SRC_URI="mirror://mysql/Downloads/MySQLGUITools/${MY_P}.tar.gz https://github.com/antlr/website-antlr3/blob/gh-pages/download/antlr-3.4-complete.jar?raw=true -> antlr-3.4-complete.jar"
20
21 LICENSE="GPL-2"
22 SLOT="0"
23 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
24 IUSE="debug doc gnome-keyring"
25
26 # glibc: deprecated mutex functions, removed in 2.36.0
27 CDEPEND="${PYTHON_DEPS}
28 dev-libs/glib:2
29 dev-cpp/atkmm
30 dev-cpp/pangomm
31 >=dev-cpp/glibmm-2.14:2
32 >=dev-cpp/gtkmm-2.14:2.4
33 dev-libs/atk
34 x11-libs/pango
35 >=x11-libs/gtk+-2.20:2
36 gnome-base/libglade:2.0
37 >=x11-libs/cairo-1.5.12[glib,svg]
38 dev-libs/libsigc++:2
39 >=dev-libs/boost-1.55.0
40 >=dev-cpp/ctemplate-0.95
41 >=dev-libs/libxml2-2.6.2:2
42 dev-libs/libzip
43 >=virtual/mysql-5.1
44 dev-libs/libpcre
45 >=sci-libs/gdal-1.11.1-r1[-mdb]
46 virtual/opengl
47 >=dev-lang/lua-5.1[deprecated]
48 || ( sys-libs/e2fsprogs-libs dev-libs/ossp-uuid )
49 dev-libs/tinyxml[stl]
50 dev-db/mysql-connector-c++
51 dev-db/vsqlite++
52 || ( dev-db/libiodbc dev-db/unixODBC )
53 gnome-keyring? ( gnome-base/libgnome-keyring )
54 dev-python/pexpect
55 >=dev-python/paramiko-1.7.4
56 "
57
58 # lua perhaps no longer needed? Was used via libgrt only
59
60 RDEPEND="${CDEPEND}
61 app-admin/sudo
62 >=sys-apps/net-tools-1.60_p20120127084908"
63
64 DEPEND="${CDEPEND}
65 dev-lang/swig
66 virtual/jre
67 virtual/pkgconfig"
68
69 S="${WORKDIR}"/"${MY_P}"
70
71 src_unpack() {
72 unpack ${PN}-community-${PV}-src.tar.gz
73 }
74
75 src_prepare() {
76 ## Patch CMakeLists.txt
77 epatch "${FILESDIR}/${PN}-6.2.3-CMakeLists.patch" \
78 "${FILESDIR}/${PN}-6.2.5-wbcopytables.patch" \
79 "${FILESDIR}/${PN}-6.3.3-mysql_options4.patch"
80
81 sed -i -e '/target_link_libraries/ s/sqlparser.grt/sqlparser.grt sqlparser/' \
82 modules/db.mysql.sqlparser/CMakeLists.txt
83
84 ## remove hardcoded CXXFLAGS
85 sed -i -e 's/-O0 -g3//' ext/scintilla/gtk/CMakeLists.txt || die
86
87 ## package is very fragile...
88 strip-flags
89
90 cmake-utils_src_prepare
91 }
92
93 src_configure() {
94 local mycmakeargs=(
95 $(cmake-utils_use_use gnome-keyring GNOME_KEYRING)
96 -DLIB_INSTALL_DIR="/usr/$(get_libdir)"
97 -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
98 -DPYTHON_LIBRARY="$(python_get_library_path)"
99 )
100 ANTLR_JAR_PATH="${DISTDIR}/antlr-3.4-complete.jar" cmake-utils_src_configure
101 }
102
103 src_compile() {
104 # Work around parallel build issues, bug 507838
105 cmake-utils_src_compile -j1
106 }

  ViewVC Help
Powered by ViewVC 1.1.20