From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 563951382C5 for ; Thu, 18 Feb 2021 13:47:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 56DD6E084A; Thu, 18 Feb 2021 13:47:38 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3222AE083D for ; Thu, 18 Feb 2021 13:47:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 010CF340976 for ; Thu, 18 Feb 2021 13:47:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 42A6B4DB for ; Thu, 18 Feb 2021 13:47:35 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1613656048.e40751d15c5f99ca603d054a29c385f95a32a4fb.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/mariadb-connector-odbc/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-db/mariadb-connector-odbc/Manifest dev-db/mariadb-connector-odbc/mariadb-connector-odbc-3.1.11.ebuild X-VCS-Directories: dev-db/mariadb-connector-odbc/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: e40751d15c5f99ca603d054a29c385f95a32a4fb X-VCS-Branch: master Date: Thu, 18 Feb 2021 13:47:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 29e269c5-808b-481b-8fb2-5a1705cad02b X-Archives-Hash: 56ccb6672744f36511dae314da8d1873 commit: e40751d15c5f99ca603d054a29c385f95a32a4fb Author: Jaco Kroon uls co za> AuthorDate: Sat Feb 13 11:12:13 2021 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Thu Feb 18 13:47:28 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e40751d1 dev-db/mariadb-connector-odbc: version bump 3.1.11 Changelogs does not indicate any major differences, mostly minor bugfixes. Signed-off-by: Jaco Kroon uls.co.za> Closes: https://github.com/gentoo/gentoo/pull/19446 Signed-off-by: Joonas Niilola gentoo.org> dev-db/mariadb-connector-odbc/Manifest | 1 + .../mariadb-connector-odbc-3.1.11.ebuild | 69 ++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/dev-db/mariadb-connector-odbc/Manifest b/dev-db/mariadb-connector-odbc/Manifest index 8e1ff5fecee..bb40643d79b 100644 --- a/dev-db/mariadb-connector-odbc/Manifest +++ b/dev-db/mariadb-connector-odbc/Manifest @@ -1 +1,2 @@ +DIST mariadb-connector-odbc-3.1.11-ga-src.tar.gz 542434 BLAKE2B 318e5a269c6f4584df4ffd2272f5db4a354f3616d52b60d2c5f785faabc1eaabe47a75f07e3cd97847d4413670391acdb71092955b8facd9f81b8706ab78c966 SHA512 185f58b05f196bfe8b23d5470877dcfc0550be45d2f4538ddbd0b96aadde5cdbc0346ecaf65554728875e33b88761211349bf0d1def17f3b7cd43abae9d706b3 DIST mariadb-connector-odbc-3.1.6-ga-src.tar.gz 536871 BLAKE2B c41f1fb00b5a93b3618d79ee457dc84c8b98e216083ec315870dc2ab46f1f56db345c1a2fae51e78e8b6c42b81183ce9c161ac5a051e52481cd687138f3dadd3 SHA512 ec0e244fc1b62c27f619f0ed3025906b02fc897c75dd74799df396beb5009bfdd27d609b5629ea0e6f5172ca8521b60bf7f3efc6dac44e84e835e4a05273ba3d diff --git a/dev-db/mariadb-connector-odbc/mariadb-connector-odbc-3.1.11.ebuild b/dev-db/mariadb-connector-odbc/mariadb-connector-odbc-3.1.11.ebuild new file mode 100644 index 00000000000..3bea0e8db67 --- /dev/null +++ b/dev-db/mariadb-connector-odbc/mariadb-connector-odbc-3.1.11.ebuild @@ -0,0 +1,69 @@ +# Copyright 2018-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_ECLASS=cmake + +inherit cmake-multilib flag-o-matic + +DESCRIPTION="MariaDB Connector/ODBC" +HOMEPAGE="https://downloads.mariadb.org/connector-odbc/" +SRC_URI="https://downloads.mariadb.org/interstitial/connector-odbc-${PV}/${P}-ga-src.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0/3.1" +KEYWORDS="~amd64 ~x86" +IUSE="ssl" + +S="${S}-ga-src" + +# USE=ssl merely enables the configuration options (seemingly for interactive +# sessions) and does not cause direct linking to any SSL libraries. However, +# it doesn't make sense enable these configuration options unless the +# underlying mariadb-connector-c has ssl enabled, thus if we have USE=ssl, +# require mariadb-connector-c to have it too. +DEPEND="=dev-db/mariadb-connector-c-$(ver_cut 1-2)*[ssl?] + dev-db/unixODBC" +RDEPEND="${DEPEND}" + +src_prepare() { + cmake_src_prepare + + sed -e "s,lib/lib,$(get_libdir)/lib,g" "${FILESDIR}/odbcinst.ini" > odbcinst.ini || die +} + +multilib_src_configure() { + append-cppflags $(mariadb_config --cflags || die) + local mycmakeargs=( + -DWITH_SSL=$(usex ssl OPENSSL OFF) + -DMARIADB_LINK_DYNAMIC=YES + -DUSE_SYSTEM_INSTALLED_LIB=YES + -DINSTALL_DOCDIR="/usr/share/doc/${P}" + -DINSTALL_LICENSEDIR="/usr/share/doc/${P}" + #-DCMAKE_C_FLAGS="$(mariadb_config --cflags)" + ) + cmake_src_configure +} + +multilib_src_install_all() { + insinto /usr/share/${PN} + doins odbcinst.ini +} + +pkg_postinst() { + elog "Please remember to use emerge --config =${P} to install the ODBC ini files." + elog "Alternatively run: /usr/bin/odbcinst -i -d -f /usr/share/${PN}/odbcinst.ini" +} + +pkg_config() { + [[ -n "${ROOT}" ]] && die "Sorry, non-standard ROOT setting is not supported." + + if /usr/bin/odbcinst -q -d -n maodbc &>/dev/null; then + einfo "maodbc (MariaDB ODBC driver) has already been installed." + else + ebegin "Installing maodbc (MariaDB ODBC driver)" + /usr/bin/odbcinst -i -d -f /usr/share/${PN}/odbcinst.ini + eend ${?} || die + fi +}