mysql-workbench-6.3.4-r2.ebuild 2.5 KB

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