summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/Manifest.gzbin15424 -> 15432 bytes
-rw-r--r--dev-db/etcd/Manifest8
-rw-r--r--dev-db/etcd/etcd-3.4.16-r1.ebuild79
-rw-r--r--dev-db/etcd/files/etcd.confd-r11
-rw-r--r--dev-db/etcd/files/etcd.initd-r127
-rw-r--r--dev-db/etcd/files/etcd.service-r117
-rw-r--r--dev-db/etcd/files/etcd.tmpfiles.d.conf2
-rw-r--r--dev-db/etcd/metadata.xml6
-rw-r--r--dev-db/mysql-workbench/Manifest2
-rw-r--r--dev-db/mysql-workbench/mysql-workbench-8.0.32.ebuild110
10 files changed, 245 insertions, 7 deletions
diff --git a/dev-db/Manifest.gz b/dev-db/Manifest.gz
index 6ea1aa1d495c..4c910d46dead 100644
--- a/dev-db/Manifest.gz
+++ b/dev-db/Manifest.gz
Binary files differ
diff --git a/dev-db/etcd/Manifest b/dev-db/etcd/Manifest
index 895941e618d7..a0b8feb2486d 100644
--- a/dev-db/etcd/Manifest
+++ b/dev-db/etcd/Manifest
@@ -1,12 +1,16 @@
AUX etcd.conf 978 BLAKE2B 2aaecc5c7b3d0b7a44f8de65d8362333bdcf9616de55a2c4fa1551eca91d80061c146165f1bf077c1d93e6874b4444384889875b3fe81299e46e10fd6e24d8ec SHA512 3b543104df93ebd6013b5e50c1e17b947e089bf27ba976859574f9fa57f2ed0ba16342984d12a68a00ff6745f37d229b1fe3206df7d713805e289d029774be0d
AUX etcd.confd 129 BLAKE2B 1d7aff8c57e4dc0f4348a5de4bfff0a1552e8b4d228ee0f0ba2eb6eb944daefae1b5b55ba6b5416697b923e9144884d0828612403a11e627f8f7e82fa7444f68 SHA512 a08b1c1701370dc23ebd86db915d1e65747dc4ca57ce44d8cba6cf8434d5711786ac96725eed3285f4ba7cdde25ea25a51539d6cd74fc2f4b713f48cda15c4c3
+AUX etcd.confd-r1 50 BLAKE2B 59c5cfe561b553a484acada6c328d204e778d9d6f3dc81f196ea7b3156655692a71b8eb6e61126c4f92ae0d7135b8b2df54ff0edc0657c23638815d326f5f57d SHA512 4148228437cbc9935e484d9797f834ececac108086622c6c6a5adad18d7d34454318efa43471f407ac5f07d4d7ccdcd86354dac9f8a6cc2ad46d8f9b9a3db812
AUX etcd.initd 821 BLAKE2B 5eba7f0e8d134ff45caba8c1eb3aaf6afb412082b9a5df95925f36fb83841be15ffca0f0f9b7c7c4bc6989665aa4e8a51fc73b0c66b5d2f960c6795fc21040da SHA512 5b8c12285b5d609abdfc5440589f7703951f6550e53783fe5e7eb3a4a3b12625d6f0526cbaf7e9922de3fbf0b86ff9d3f40de1ef55f26261f61d11d177d9a580
+AUX etcd.initd-r1 580 BLAKE2B 26213ae349b07f936b60ec9b48f63920b28f0d501adddbad2134f41f2fbc1516edd28d7aaefdb67f5842e675a9e1f45d4fe4af560a91564db1f45b4a4b34d78e SHA512 8beebff5013582e4e54b32425031d4361626955f132ed2828c62b0a54f82092674f800763cd961adfe37eaa2e3f8314a11d35d74f000b7b26ffe573b62149452
AUX etcd.logrotated 104 BLAKE2B 3126c99db171af177d6d6368e7e53f3e5e07b9ae2926ff12cb0ff7fb877527df33a91dedcaa4bbbffa190b4f9c2f53868aeca093b93e9cad50718a23eb5fdd46 SHA512 64d3181a936f8bab635a17f90679041c2d70a712307928feae03a517ad02252fc37e25738979bc1ccd0657ef70439e65cb0306759bec3939e940ec382a02d94f
AUX etcd.service 304 BLAKE2B ecffe9889f9530bf7172638a0273736abba2b3ea5c5540b5452d26fbaec17ab9c138db86b543c3c88fd3d16ce79487eb2c31ad7bbfb0c5b9cd11eede9b99bd2d SHA512 0074f77a17afe2bb4145f12a6eb312caa3e08cfe8bf35856b79d091ad8786c4223bd91c0a865e789ee9ba180f2672b31721742bb32efd0cd383bc747eb926961
-AUX etcd.tmpfiles.d.conf 76 BLAKE2B c5cb2b9dc0aa756554cade2832884033058b5fda43828eb974b25018443a1e34d94fd22d03038e8a66aac858565295f6b513d557f8538fb02db4f2afc1cda41e SHA512 a2a580edc2ec492ec2891af96053a5af9f55907d40ec8bd742047ccaeb86558601f09b448da59760e5708d32c3471180c9ca7323cfae75fe0474dd8d4a2b661e
+AUX etcd.service-r1 458 BLAKE2B 4e2dd4934350821d01de1a0d9b8c4a402eeb87bf81a24f484652570e3e1c55f23acc3bc17c747400a09f9e26227c89a442a2a308586767595a9458a3a2f16688 SHA512 f105394411a2af0694bcb559a4b2447ed82402101f750af44315e3556afa77660f41d9404fdd04cc363d0dcd980adedf066c6b238a40e14c07706c8f67325fd4
+AUX etcd.tmpfiles.d.conf 72 BLAKE2B b567592de5cc69c8e55ef16c537d0ad9207fd5f932bd2ca622f66909362033bb3387289af4675be53c0a5a7cf513805c4dfe45391091128a6ada3ffea4377420 SHA512 403fa63c0284811c655e5e9f3e7f6eb81ad6c10a1b0eb8df400e7e85c621c56b9580457bbb2a823c0ae3c2fac10f6b8bfb73991a10d9373e87f10b906d8d50cd
DIST etcd-3.3.24.tar.gz 6518759 BLAKE2B bff713b5f754e6ed86f4265be7691f5cf6ad0bc1576ef15a4364b34dda827bef4390024d7a9bb032907dc8a95d8d3884e9f2ddf5a37b3b7e4ab476a13e61b8ac SHA512 a3825a1d6ec886a5f30317929bafc1f5b2657f374a4cb7a0348786a7c4f6b073197b2bdeb4d725e78cf5c99cead3e38dbf468ea023b3e7689bdce857466a72d3
DIST etcd-3.4.16-deps.tar.xz 36600528 BLAKE2B 3c8cbaef04b673962858cde9846a6a118eec785c0fc76b6e600b1686fd6e684f4b73af4aedb5886dfca51434e5738fb9bd0a39cdb81eda922e374c7668f0c0d0 SHA512 9119e09fc50bb916c3e436b9a4eea4b041184384865955f9b1a0f12e1334d9a143d49cc241ee51229e04fdfaedbbce24a66159107f52519b88a1e95cd64222df
DIST etcd-3.4.16.tar.gz 8853228 BLAKE2B 576d3f038f6e9e3eadaa9ba3935f8372271e9fd2cfb8ab193ce16ee57a55419daad4d8496f6ad27dcb833566e6eb077052422e1c86053d176a86b4305c8cc525 SHA512 3f413debe8bd723a00a3e39db05f6dbf414b7dc02f40f07d3037445c63b31c7bd8adaf77152ae01aa6aae3966f65393c5c8e352bbc2b86d01e5e2dd979c1c2e1
EBUILD etcd-3.3.24.ebuild 2095 BLAKE2B 87028715b8c371c240ce404e13da229fb62a6f4df1975591c8729dc12dc91dd700c7a8236d74be94bb0678d852fff41341b563f346eeb1040e1f8357a92808d8 SHA512 3e276c755307bc83255d679edfb60990341a492fcc2665764e02a38c7c0dfc81743fcc488bae8574a900135047ab182051e35e87c4f12c5d3f26dd501efaf072
+EBUILD etcd-3.4.16-r1.ebuild 2037 BLAKE2B d4927bd6a2c341967c912de694d5ca47607c2950f63a4417822bc7b3fbd0a449b5d357e9099189191b77fe906086e1fca20b235ff402be5336174428e05d7d7d SHA512 820ca871924d3f73ce3c42d019f888e02d8d3d69542762e7cc040de4c5e9cbb294ff50c0960171c16d1071f83d95a4060be025c361765389ecf7b61f5e83e80e
EBUILD etcd-3.4.16.ebuild 2102 BLAKE2B 820690325566f81fd1f9de36cbdfe3f3b03e590a4c8e46e245bc7a0dbc81755d187fb9decee2b4c3fd66e775fd80081a0559fa6061abf7c7d508bca1d55ce1b7 SHA512 07caba3725d64c30bf5331020bec2cc15bd46948d43d92288ff9e50f1c84470ddaa2a88d7a0584aeaf8fdea76f679b8200d3117c90fd2e000ba566975020ff67
-MISC metadata.xml 574 BLAKE2B 17444a268dbcc374ea8ee5457f3e81faa7ca9f7d99cacd3b0fba69ae0122dd8eabc09e6916318b90ee3dddb513010921dc546d33eb1d11ba4a73c6d973344c20 SHA512 8a506ba2858659e00abfb6107028e521db02605b2a985c4aaa3dd580d89a8929a084b93b02f784ee7e5c5935c361112b94b4e9076e92d9bb7b901c761ccaa375
+MISC metadata.xml 421 BLAKE2B 5498a48643720f59f55d3b37d21fa80a4d8c984e7dc0e9beaccdb4f08d53819025e5849e481a7ce14fc519de15fdbed622f3c3912335cf81a678c522ba367b32 SHA512 ed8b5d3b552fdc284301ed63b941c2ce87cc808718dc15191597932d6543606907a175c929416f51193c63e12d79fef7993d0f91d9d0f70aacf75447c3744b73
diff --git a/dev-db/etcd/etcd-3.4.16-r1.ebuild b/dev-db/etcd/etcd-3.4.16-r1.ebuild
new file mode 100644
index 000000000000..2f0ad3af3b4a
--- /dev/null
+++ b/dev-db/etcd/etcd-3.4.16-r1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module systemd tmpfiles
+GIT_COMMIT=cf54fab42
+
+DESCRIPTION="Highly-available key value store for shared configuration and service discovery"
+HOMEPAGE="https://github.com/etcd-io/etcd"
+SRC_URI="https://github.com/etcd-io/etcd/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz"
+
+LICENSE="Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv"
+IUSE="doc +server"
+
+COMMON_DEPEND="server? (
+ acct-group/etcd
+ acct-user/etcd
+ )"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}"
+
+# Tests fail with this error:
+# fatal error: checkptr: unsafe pointer conversion
+RESTRICT="test"
+
+src_prepare() {
+ export GO_BUILD_FLAGS="-v -x"
+ default
+ sed -e "s|GIT_SHA=.*|GIT_SHA=${GIT_COMMIT}|"\
+ -i "${S}"/build || die
+ sed -e 's:\(for p in \)shellcheck :\1 :' \
+ -e 's:^ gofmt \\$:\\:' \
+ -e 's:^ govet \\$:\\:' \
+ -e 's:^ govet_shadow \\$:\\:' \
+ -i "${S}"/test || die
+
+ sed -e "s|GO_BUILD_FLAGS=\"[^\"]*\"|GO_BUILD_FLAGS=\"${GO_BUILD_FLAGS}\"|" \
+ -e "s|go test |go test ${GO_BUILD_FLAGS} |" \
+ -i ./test || die
+}
+
+src_compile() {
+ ./build || die
+}
+
+src_test() {
+ ./test || die
+}
+
+src_install() {
+ dobin bin/etcdctl
+ use doc && dodoc -r Documentation
+ if use server; then
+ insinto /etc/${PN}
+ sed -e 's|^data-dir:|\0 /var/lib/etcd|' -i etcd.conf.yml.sample || die
+ newins etcd.conf.yml.sample etcd.conf.yml
+ dobin bin/etcd
+ dodoc README.md
+ systemd_newunit "${FILESDIR}/${PN}.service-r1" "${PN}.service"
+ newtmpfiles "${FILESDIR}/${PN}.tmpfiles.d.conf" ${PN}.conf
+ newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd-r1 ${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${PN}.logrotated" "${PN}"
+ keepdir /var/lib/${PN} /var/log/${PN}
+ fowners ${PN}:${PN} /var/lib/${PN} /var/log/${PN}
+ fperms 0700 /var/lib/${PN}
+ fperms 0755 /var/log/${PN}
+ fi
+}
+
+pkg_postinst() {
+ if use server; then
+ tmpfiles_process ${PN}.conf
+ fi
+}
diff --git a/dev-db/etcd/files/etcd.confd-r1 b/dev-db/etcd/files/etcd.confd-r1
new file mode 100644
index 000000000000..c7913d259409
--- /dev/null
+++ b/dev-db/etcd/files/etcd.confd-r1
@@ -0,0 +1 @@
+ETCD_OPTS="--config-file=/etc/etcd/etcd.conf.yml"
diff --git a/dev-db/etcd/files/etcd.initd-r1 b/dev-db/etcd/files/etcd.initd-r1
new file mode 100644
index 000000000000..f38b977a7568
--- /dev/null
+++ b/dev-db/etcd/files/etcd.initd-r1
@@ -0,0 +1,27 @@
+#!/sbin/openrc-run
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+pidfile=/run/${RC_SVCNAME}.pid
+LOGPATH=/var/log/${RC_SVCNAME}
+command_user=${RC_SVCNAME}
+command=/usr/bin/etcd
+command_args="${ETCD_OPTS}"
+command_background=true
+start_stop_daemon_args="
+ -1 ${LOGPATH}/${RC_SVCNAME}.log
+ -2 ${LOGPATH}/${RC_SVCNAME}.err"
+
+depend() {
+ need net
+ need localmount
+ after bootmisc
+}
+
+start() {
+ if [ ! -d "${LOGPATH}" ] ; then
+ mkdir -p "${LOGPATH}"
+ chown "${command_user}:${command_user}" "${LOGPATH}"
+ fi
+ default_start
+}
diff --git a/dev-db/etcd/files/etcd.service-r1 b/dev-db/etcd/files/etcd.service-r1
new file mode 100644
index 000000000000..e3b701551510
--- /dev/null
+++ b/dev-db/etcd/files/etcd.service-r1
@@ -0,0 +1,17 @@
+[Unit]
+Description=etcd key-value store
+Documentation=https://github.com/etcd-io/etcd
+After=network-online.target local-fs.target remote-fs.target time-sync.target
+Wants=network-online.target local-fs.target remote-fs.target time-sync.target
+
+[Service]
+User=etcd
+Type=notify
+Environment="ETCD_OPTS=--config-file /etc/etcd/etcd.conf.yml"
+ExecStart=/usr/bin/etcd $ETCD_OPTS
+Restart=always
+RestartSec=10s
+LimitNOFILE=40000
+
+[Install]
+WantedBy=multi-user.target
diff --git a/dev-db/etcd/files/etcd.tmpfiles.d.conf b/dev-db/etcd/files/etcd.tmpfiles.d.conf
index b93ac987f287..67a720ae29cf 100644
--- a/dev-db/etcd/files/etcd.tmpfiles.d.conf
+++ b/dev-db/etcd/files/etcd.tmpfiles.d.conf
@@ -1,2 +1,2 @@
d /var/lib/etcd 0700 etcd etcd - -
-d /var/run/etcd 0755 etcd etcd - -
+d /run/etcd 0755 etcd etcd - -
diff --git a/dev-db/etcd/metadata.xml b/dev-db/etcd/metadata.xml
index 46163bd16f36..c5db413df944 100644
--- a/dev-db/etcd/metadata.xml
+++ b/dev-db/etcd/metadata.xml
@@ -2,10 +2,8 @@
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
- <bugs-to>https://github.com/coreos/etcd/issues</bugs-to>
- <changelog>https://raw.githubusercontent.com/coreos/etcd/master/CHANGELOG</changelog>
- <doc>https://github.com/coreos/etcd/blob/master/README.md/</doc>
- <remote-id type="github">coreos/etcd</remote-id>
+ <bugs-to>https://github.com/etcd-io/etcd/issues</bugs-to>
+ <remote-id type="github">etcd-io/etcd</remote-id>
</upstream>
<use>
<flag name="server">Installs etcd daemon</flag>
diff --git a/dev-db/mysql-workbench/Manifest b/dev-db/mysql-workbench/Manifest
index e3f736451907..50d28622b81b 100644
--- a/dev-db/mysql-workbench/Manifest
+++ b/dev-db/mysql-workbench/Manifest
@@ -2,6 +2,8 @@ AUX mysql-workbench-6.2.5-wbcopytables.patch 496 BLAKE2B 4666f32098ec43ad36f1c72
AUX mysql-workbench-8.0.19-mysql-connector-8.patch 624 BLAKE2B 0cb899a8b0127664471877bb9cdcda946c35ed7a159646b94891a791a618c77201cc7696d6f2893e95fd78dbc13325cef752740f76e69974e10c0f88084594fb SHA512 09c2349cb42393f6d32f24804e2c3438a5d846fc9611e0684ccf2139fd30b0abcb0f2aa7b205c60a081259e073fb345cd72837dab1a216e6a8aaaba5ec3decf7
DIST antlr-4.9.1-complete.jar 2100605 BLAKE2B 6fcdc184900cd30e42b3e1b6f56bcccbf1d3c975edc8475b92b9c0779568148f711e9bcbb77859d8fbff2d31f362a9b562847b9b9ece03c8c4b7792341fab57e SHA512 a01815324c15fbff9cb917fa2cdef85aabf34c77730913026257e92c195d11f059c73a1579ffa74616b76b5aba34fd6074b19e1de8f2f3bec1c55cd950f4947b
DIST mysql-workbench-community-8.0.31-src.tar.gz 19350289 BLAKE2B eac2024763f1129020584f1f0d019567b88a5de6236607d9c5c140e3041c6570a50bed50d3783f5a51ac2d16331300d49095f16f786d5152bb378f0d8f5cb548 SHA512 7ff9b6636292d6fa1708903e5fd26fdcd07150e34217ddb6fe552dd46c026ed49cd5086e7f43daea09d90f390cd14b59ddd8371b308dc6c9b3f0fe3455e04b7a
+DIST mysql-workbench-community-8.0.32-src.tar.gz 19353724 BLAKE2B 0ae8b7cfa0c73b4637ea62bdb46ff4102a374a6dc0b84eed8df414c07277763c61312996a011da82af668c6600bb76f723be60995509b7108ec184fde514f7b0 SHA512 368f9874a996efa782b6e0e6cf8b8919aacd2d7d4ad273f8ab5ed1ac6c9490e2c37bc1413867c5ed85169f04773bafcea7d513c8fc12323ba225cdb411b9ff05
EBUILD mysql-workbench-8.0.31-r1.ebuild 2719 BLAKE2B b5be3215099ad752d89869990e96381e5d870610dce1dcbcafa4d1dfdfc68a2bf3f2b4764400cbb4c78487e212d717428bda4e8167c1b71c51570f9f50b8912c SHA512 294c67ce5bd4bb2f82a1c667f737e0b56a2dac485a1dd3f17646c7b08b7990b58c4e0a46a5936dfa625d6ce02261d42dc1e51104634601ea2c9aa4d9cdba4896
EBUILD mysql-workbench-8.0.31.ebuild 2713 BLAKE2B 4c7f552ed2ec0d22562b2a821e36ef098d59e033877190e38acb933e7da77ca5f057cf17cc1067c45f8d29cb4f08af69296e5acb323821890fb741809265650b SHA512 b0d55f643924db9668ced192dd4dc4df25278153d2206e32317a7c23a66537418c82c7da594720eb38cb99b3ef9bbcbe98d01a7fd0bc73cfa27324b3cd669f87
+EBUILD mysql-workbench-8.0.32.ebuild 2719 BLAKE2B b5be3215099ad752d89869990e96381e5d870610dce1dcbcafa4d1dfdfc68a2bf3f2b4764400cbb4c78487e212d717428bda4e8167c1b71c51570f9f50b8912c SHA512 294c67ce5bd4bb2f82a1c667f737e0b56a2dac485a1dd3f17646c7b08b7990b58c4e0a46a5936dfa625d6ce02261d42dc1e51104634601ea2c9aa4d9cdba4896
MISC metadata.xml 312 BLAKE2B 8c491f0d45e24b9e367ef63f8822daf6925a17f8d44ff822b8faf7485f729524de02309b91e18411421b4533aa086853914c4a0b2a93d3fd5573a289fa1e3715 SHA512 01f2f645d167290bdb313e6c1c386b0426b41edd0ee9b50acf538a7353855c84321111ffd11c213c71424c7df73aa48b8fb9f3f2af914b595fb2961cc6b3186c
diff --git a/dev-db/mysql-workbench/mysql-workbench-8.0.32.ebuild b/dev-db/mysql-workbench/mysql-workbench-8.0.32.ebuild
new file mode 100644
index 000000000000..9b199f066c5a
--- /dev/null
+++ b/dev-db/mysql-workbench/mysql-workbench-8.0.32.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+GCONF_DEBUG="no"
+
+PYTHON_COMPAT=( python3_{9,10} )
+PYTHON_REQ_USE="sqlite"
+
+ANTLR_VERSION=4.9.1
+
+inherit gnome2 flag-o-matic python-single-r1 cmake
+
+MY_P="${PN}-community-${PV}-src"
+
+DESCRIPTION="MySQL Workbench"
+HOMEPAGE="https://www.mysql.com/products/workbench/"
+SRC_URI="https://cdn.mysql.com/Downloads/MySQLGUITools/${MY_P}.tar.gz
+ https://www.antlr.org/download/antlr-${ANTLR_VERSION}-complete.jar"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug doc"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# glibc: deprecated mutex functions, removed in 2.36.0
+CDEPEND="${PYTHON_DEPS}
+ app-crypt/libsecret
+ dev-libs/glib:2
+ <dev-cpp/antlr-cpp-4.8:4
+ dev-cpp/atkmm:*
+ dev-cpp/pangomm:1.4
+ >=dev-cpp/glibmm-2.14:2
+ dev-cpp/gtkmm:3.0
+ dev-libs/atk
+ >=net-libs/libssh-0.9.5[server]
+ x11-libs/pango
+ x11-libs/gtk+:3
+ >=x11-libs/cairo-1.5.12[glib,svg(+)]
+ >=dev-libs/rapidjson-1.1.0
+ dev-libs/libsigc++:2
+ dev-libs/boost[nls]
+ >=dev-cpp/ctemplate-0.95
+ >=dev-libs/libxml2-2.6.2:2
+ dev-libs/libzip
+ dev-libs/libpcre[cxx]
+ >=sci-libs/gdal-1.11.1-r1
+ virtual/opengl
+ || ( sys-fs/e2fsprogs dev-libs/ossp-uuid )
+ dev-libs/tinyxml[stl]
+ >=dev-db/mysql-connector-c++-8.0.27-r1
+ dev-db/vsqlite++
+ || ( dev-db/libiodbc dev-db/unixODBC )
+ dev-python/pexpect
+ >=dev-python/paramiko-1.7.4
+"
+
+RDEPEND="${CDEPEND}
+ app-admin/sudo
+ >=sys-apps/net-tools-1.60_p20120127084908"
+
+DEPEND="${CDEPEND}
+ dev-lang/swig
+ virtual/jre
+ virtual/pkgconfig"
+
+S="${WORKDIR}"/"${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-6.2.5-wbcopytables.patch"
+ "${FILESDIR}/${PN}-8.0.19-mysql-connector-8.patch"
+)
+
+src_unpack() {
+ unpack ${PN}-community-${PV}-src.tar.gz
+}
+
+src_prepare() {
+ ## remove hardcoded CXXFLAGS
+ sed -i -e 's/-O0 -g3//' ext/scintilla/gtk/CMakeLists.txt || die
+ ## And avoid -Werror
+ sed -i -e 's/-Werror//' CMakeLists.txt || die
+ ## Fix doc install directory
+ sed -i -e "/WB_INSTALL_DOC_DIR/ s/mysql-workbench/${P}/ ; /WB_INSTALL_DOC_DIR/ s/-community//" CMakeLists.txt || die
+
+ ## package is very fragile...
+ strip-flags
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ if has_version dev-db/libiodbc ; then
+ IODBC="-DIODBC_CONFIG_PATH=/usr/bin/iodbc-config"
+ fi
+
+ append-cxxflags -std=c++11
+ ANTLR_JAR_PATH="${DISTDIR}/antlr-${ANTLR_VERSION}-complete.jar"
+ local mycmakeargs=(
+ -DWITH_ANTLR_JAR=${ANTLR_JAR_PATH}
+ -DLIB_INSTALL_DIR="/usr/$(get_libdir)"
+ -DIODBC_INCLUDE_PATH="/usr/include/iodbc"
+ ${IODBC}
+ -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DPYTHON_LIBRARY="$(python_get_library_path)"
+ -DMySQL_CONFIG_PATH="/usr/bin/mysql_config"
+ )
+ cmake_src_configure
+}