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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Wed Mar 7 20:04:50 2012 UTC (2 years, 9 months ago) by ranger
Branch: MAIN
Changes since 1.4: +2 -2 lines
Marking mysql-workbench-5.2.35 ppc for bug 394729

(Portage version: 2.1.10.11/cvs/Linux ppc64)

1 phajdan.jr 1.4 # Copyright 1999-2012 Gentoo Foundation
2 graaff 1.1 # Distributed under the terms of the GNU General Public License v2
3 ranger 1.5 # $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-workbench/mysql-workbench-5.2.35.ebuild,v 1.4 2012/01/04 18:13:56 phajdan.jr Exp $
4 graaff 1.1
5     EAPI="3"
6     GCONF_DEBUG="no"
7     PYTHON_DEPEND=2
8    
9     inherit gnome2 eutils flag-o-matic python autotools
10    
11     MY_P="${PN}-gpl-${PV}-src"
12    
13     DESCRIPTION="MySQL Workbench"
14     HOMEPAGE="http://dev.mysql.com/workbench/"
15     SRC_URI="mirror://mysql/Downloads/MySQLGUITools/${MY_P}.tar.gz"
16    
17     LICENSE="GPL-2"
18     SLOT="0"
19 ranger 1.5 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
20 graaff 1.1 IUSE="debug doc nls readline static-libs"
21    
22     CDEPEND="dev-db/sqlite:3
23     >=x11-libs/gtk+-2.6:2
24     dev-libs/glib:2
25     gnome-base/libglade:2.0
26     dev-libs/libsigc++:2
27     dev-libs/boost
28     >=dev-cpp/ctemplate-0.95
29     >=dev-libs/libxml2-2.6.2:2
30     >=dev-cpp/glibmm-2.14:2
31     >=dev-cpp/gtkmm-2.14:2.4
32     dev-libs/libzip
33     >=virtual/mysql-5.1
34     dev-libs/libpcre
35     virtual/opengl
36     >=dev-lang/lua-5.1[deprecated]
37     x11-libs/pango
38     || ( sys-libs/e2fsprogs-libs
39     dev-libs/ossp-uuid )
40     >=x11-libs/cairo-1.5.12[svg]
41     dev-python/pexpect
42     dev-python/paramiko
43     doc? ( dev-python/pysqlite:2 )
44     nls? ( sys-devel/gettext )
45     readline? ( sys-libs/readline )"
46     RDEPEND="${CDEPEND}
47     app-admin/sudo
48     sys-apps/net-tools"
49     DEPEND="${CDEPEND}
50     dev-util/pkgconfig"
51    
52     S="${WORKDIR}"/"${MY_P}"
53    
54     pkg_setup() {
55     # Make sure we use Python 2 since the code is not compatible with 3.
56     python_set_active_version 2
57     python_pkg_setup
58     }
59    
60     src_prepare() {
61     # ifconfig isn't in the normal path
62     sed -i -e 's:ifconfig:/sbin/ifconfig:' plugins/wb.admin/backend/wb_server_control.py || die
63    
64     epatch "${FILESDIR}/${PN}-5.2.31-python-libs.patch"
65     eautoreconf
66    
67     # Remove bundled ctemplate version to make sure we use the system
68     # version, but leave a directory to avoid confusing configure, bug
69     # 357539.
70     rm -rf ext/ctemplate || die
71     mkdir -p ext/ctemplate/ctemplate-src || die
72     }
73    
74     src_configure() {
75     econf \
76     $(use_enable nls i18n) \
77     $(use_enable readline readline) \
78     $(use_enable debug) \
79     $(use_enable static-libs static)
80     }
81    
82     src_install() {
83     emake install DESTDIR="${D}" || die
84     find "${ED}" -name '*.la' -delete || die
85     }

  ViewVC Help
Powered by ViewVC 1.1.20