| 1 |
# Copyright 1999-2013 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-5.2.44-r1.ebuild,v 1.1 2012/11/26 20:41:43 graaff Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
GCONF_DEBUG="no"
|
| 7 |
PYTHON_DEPEND=2
|
| 8 |
|
| 9 |
PYTHON_USE_WITH=sqlite
|
| 10 |
PYTHON_USE_WITH_OPT=doc
|
| 11 |
|
| 12 |
inherit gnome2 eutils flag-o-matic python autotools
|
| 13 |
|
| 14 |
MY_P="${PN}-gpl-${PV}-src"
|
| 15 |
|
| 16 |
DESCRIPTION="MySQL Workbench"
|
| 17 |
HOMEPAGE="http://dev.mysql.com/workbench/"
|
| 18 |
SRC_URI="mirror://mysql/Downloads/MySQLGUITools/${MY_P}.tar.gz"
|
| 19 |
|
| 20 |
LICENSE="GPL-2"
|
| 21 |
SLOT="0"
|
| 22 |
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
|
| 23 |
IUSE="debug doc gnome-keyring nls static-libs"
|
| 24 |
|
| 25 |
# Build system bundles an unreleased copy of dev-libs/antlr-c 3.4 so we
|
| 26 |
# can't depend on our own packaged version right now.
|
| 27 |
|
| 28 |
CDEPEND="dev-db/sqlite:3
|
| 29 |
>=x11-libs/gtk+-2.6:2
|
| 30 |
dev-libs/glib:2
|
| 31 |
gnome-base/libglade:2.0
|
| 32 |
dev-libs/libsigc++:2
|
| 33 |
dev-libs/boost
|
| 34 |
>=dev-cpp/ctemplate-0.95
|
| 35 |
>=dev-libs/libxml2-2.6.2:2
|
| 36 |
>=dev-cpp/glibmm-2.14:2
|
| 37 |
>=dev-cpp/gtkmm-2.14:2.4
|
| 38 |
dev-db/libiodbc
|
| 39 |
dev-libs/libzip
|
| 40 |
>=virtual/mysql-5.1
|
| 41 |
dev-libs/libpcre
|
| 42 |
virtual/opengl
|
| 43 |
>=dev-lang/lua-5.1[deprecated]
|
| 44 |
x11-libs/pango
|
| 45 |
|| ( sys-libs/e2fsprogs-libs
|
| 46 |
dev-libs/ossp-uuid )
|
| 47 |
>=x11-libs/cairo-1.5.12[svg]
|
| 48 |
dev-python/pexpect
|
| 49 |
>=dev-python/paramiko-1.7.4
|
| 50 |
gnome-keyring? ( gnome-base/libgnome-keyring )
|
| 51 |
nls? ( sys-devel/gettext )"
|
| 52 |
RDEPEND="${CDEPEND}
|
| 53 |
app-admin/sudo
|
| 54 |
>=sys-apps/net-tools-1.60_p20120127084908"
|
| 55 |
DEPEND="${CDEPEND}
|
| 56 |
virtual/pkgconfig"
|
| 57 |
|
| 58 |
S="${WORKDIR}"/"${MY_P}"
|
| 59 |
|
| 60 |
pkg_setup() {
|
| 61 |
# Make sure we use Python 2 since the code is not compatible with 3.
|
| 62 |
python_set_active_version 2
|
| 63 |
python_pkg_setup
|
| 64 |
}
|
| 65 |
|
| 66 |
src_prepare() {
|
| 67 |
# Remove hardcoded CXXFLAGS
|
| 68 |
sed -i -e 's/debug_flags="-ggdb3 /debug_flags="/' configure || die
|
| 69 |
sed -i -e 's/-O0 -g3//' ext/scintilla/gtk/Makefile.in ext/scintilla/gtk/Makefile.am || die
|
| 70 |
|
| 71 |
# Remove bundled ctemplate version to make sure we use the system
|
| 72 |
# version, but leave a directory to avoid confusing configure, bug
|
| 73 |
# 357539.
|
| 74 |
rm -rf ext/ctemplate || die
|
| 75 |
mkdir -p ext/ctemplate/ctemplate-src || die
|
| 76 |
|
| 77 |
epatch "${FILESDIR}"/${P}-my_lib.patch
|
| 78 |
|
| 79 |
# Regenerate autotools files to work around broken libtool for
|
| 80 |
# antlr, bug 431756.
|
| 81 |
eautoreconf
|
| 82 |
}
|
| 83 |
|
| 84 |
src_configure() {
|
| 85 |
econf \
|
| 86 |
$(use_enable nls i18n) \
|
| 87 |
$(use_enable debug) \
|
| 88 |
$(use_enable static-libs static)
|
| 89 |
}
|
| 90 |
|
| 91 |
src_install() {
|
| 92 |
emake install DESTDIR="${D}" || die
|
| 93 |
find "${ED}" -name '*.la' -delete || die
|
| 94 |
}
|