blob: ab79c8681258f5e31a9863da4eb0c6a192e8e799 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-gui-tools/mysql-gui-tools-5.0_p12.ebuild,v 1.5 2007/10/21 10:51:30 swegener Exp $
GCONF_DEBUG="no"
inherit gnome2 eutils flag-o-matic
MY_P="${P/_p/r}"
DESCRIPTION="MySQL GUI Tools"
HOMEPAGE="http://www.mysql.com/products/tools/"
SRC_URI="mirror://mysql/Downloads/MySQLGUITools/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="nls administrator query-browser workbench"
RDEPEND=">=x11-libs/gtk+-2.6
>=dev-libs/glib-2.6
>=gnome-base/libglade-2.5
>=dev-libs/libsigc++-2.0
>=dev-libs/libpcre-4.4
>=dev-libs/libxml2-2.6.2
|| (
=dev-cpp/glibmm-2.14*
=dev-cpp/glibmm-2.12*
)
|| (
=dev-cpp/gtkmm-2.12*
=dev-cpp/gtkmm-2.10*
)
>=virtual/mysql-5.0
workbench? (
=dev-lang/lua-5.0*
virtual/opengl
)
query-browser? (
|| (
=gnome-extra/gtkhtml-3.16*
=gnome-extra/gtkhtml-3.14*
)
)"
DEPEND="${RDEPEND}
>=dev-util/pkgconfig-0.15
>=app-text/scrollkeeper-0.3.11"
RDEPEND="${RDEPEND}
!dev-db/mysql-administrator
!dev-db/mysql-query-browser"
S="${WORKDIR}"/${MY_P}
pkg_setup() {
if ! use administrator && ! use query-browser && ! use workbench
then
elog "Please activate at least one of the following USE flags:"
elog "- administrator for MySQL Administrator"
elog "- query-browser for MySQL Query Browser"
elog "- workbench for MySQL Workbench"
die "Please activate at least one of the following USE flags: administrator, query-browser, workbench"
fi
}
src_unpack() {
gnome2_src_unpack
cd "${S}"
epatch "${FILESDIR}"/mysql-gui-tools-5.0_p8-i18n-fix.patch
epatch "${FILESDIR}"/mysql-gui-tools-5.0_p8-lua-modules.patch
sed -i \
-e "s/\\(^\\|[[:space:]]\\)-ltermcap\\($\\|[[:space:]]\\)/ /g" \
mysql-gui-common/tools/grtsh/Makefile.{am,in}
}
src_compile() {
# mysql has -fno-exceptions, but we need exceptions
append-flags -fexceptions
cd "${S}"/mysql-gui-common
use nls || sed -i -e "/^SUBDIRS = / s/\\bpo\\b//" Makefile.{am,in}
gnome2_src_compile \
--disable-java-modules \
$(use_enable workbench grt) \
$(use_enable workbench canvas) \
$(use_enable nls i18n)
if use administrator
then
cd "${S}"/mysql-administrator
use nls || sed -i -e "/^SUBDIRS = / s/\\bpo\\b//" Makefile.{am,in}
gnome2_src_compile $(use_enable nls i18n)
fi
if use query-browser
then
cd "${S}"/mysql-query-browser
use nls || sed -i -e "/^SUBDIRS=/ s/\\bpo\\b//" Makefile.{am,in}
gnome2_src_compile --with-gtkhtml=libgtkhtml-3.14
fi
if use workbench
then
cd "${S}"/mysql-workbench
use nls || sed -i -e "/^SUBDIRS=/ s/\\bpo\\b//" Makefile.{am,in}
gnome2_src_compile
fi
}
src_install() {
cd "${S}"/mysql-gui-common
gnome2_src_install
if use administrator
then
cd "${S}"/mysql-administrator
gnome2_src_install
fi
if use query-browser
then
cd "${S}"/mysql-query-browser
gnome2_src_install
fi
if use workbench
then
cd "${S}"/mysql-workbench
gnome2_src_install
fi
}
|