Diff mysql-connector-c++-8.0.27-r1 with a mysql-connector-c++-8.0.31
/usr/portage/dev-db/mysql-connector-c++/mysql-connector-c++-8.0.31.ebuild 2023-10-09 14:52:29.324368346 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2022 Gentoo Authors |
|
1 |
# Copyright 1999-2023 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 |
EAPI="7" |
|
4 |
EAPI=8 |
|
5 | 5 | |
6 | 6 |
CMAKE_MAKEFILE_GENERATOR=emake |
7 | 7 |
inherit cmake |
8 | 8 | |
9 |
URI_DIR="Connector-C++" |
|
9 | 10 |
DESCRIPTION="MySQL database connector for C++ (mimics JDBC 4.0 API)" |
10 | 11 |
HOMEPAGE="https://dev.mysql.com/downloads/connector/cpp/" |
11 |
URI_DIR="Connector-C++" |
|
12 | 12 |
SRC_URI="https://dev.mysql.com/get/Downloads/${URI_DIR}/${P}-src.tar.gz" |
13 |
S="${WORKDIR}/${P}-src" |
|
13 | 14 | |
14 | 15 |
LICENSE="Artistic GPL-2" |
15 | 16 |
SLOT="0" |
16 | 17 |
# -ppc, -sparc for bug #711940 |
17 |
KEYWORDS="~amd64 ~arm ~arm64 -ppc ~ppc64 -sparc ~x86" |
|
18 |
KEYWORDS="amd64 arm ~arm64 -ppc ppc64 -sparc x86" |
|
18 | 19 |
IUSE="+legacy" |
19 | 20 | |
20 | 21 |
RDEPEND=" |
22 |
app-arch/lz4:= |
|
23 |
app-arch/zstd:= |
|
24 |
dev-libs/openssl:= |
|
21 | 25 |
dev-libs/protobuf:= |
26 |
sys-libs/zlib |
|
22 | 27 |
legacy? ( |
23 | 28 |
dev-libs/boost:= |
24 | 29 |
>=dev-db/mysql-connector-c-8.0.27:= |
25 | 30 |
) |
26 |
dev-libs/openssl:0= |
|
27 |
" |
|
31 |
" |
|
28 | 32 |
DEPEND="${RDEPEND}" |
29 |
S="${WORKDIR}/${P}-src" |
|
30 | 33 | |
31 | 34 |
PATCHES=( |
32 |
"${FILESDIR}"/${PN}-8.0.27-fix-build.patch |
|
33 | 35 |
"${FILESDIR}"/${PN}-8.0.27-mysqlclient_r.patch |
34 | 36 |
) |
35 | 37 | |
36 | 38 |
src_configure() { |
37 | 39 |
local mycmakeargs=( |
40 |
-DBUNDLE_DEPENDENCIES=OFF |
|
41 |
-DWITH_PROTOBUF=system |
|
42 |
-DWITH_LZ4=system |
|
38 | 43 |
-DWITH_SSL=system |
39 |
-DWITH_JDBC=$(usex legacy ON OFF) |
|
40 |
$(usex legacy '-DMYSQLCLIENT_STATIC_BINDING=0' '') |
|
41 |
$(usex legacy '-DMYSQLCLIENT_STATIC_LINKING=0' '') |
|
44 |
-DWITH_ZLIB=system |
|
45 |
-DWITH_ZSTD=system |
|
46 |
-DWITH_JDBC=$(usex legacy) |
|
42 | 47 |
) |
43 | 48 | |
49 |
if use legacy ; then |
|
50 |
mycmakeargs+=( |
|
51 |
-DWITH_BOOST="${ESYSROOT}"/usr |
|
52 |
-DMYSQLCLIENT_STATIC_BINDING=0 |
|
53 |
-DMYSQLCLIENT_STATIC_LINKING=0 |
|
54 |
) |
|
55 |
fi |
|
56 | ||
44 | 57 |
cmake_src_configure |
45 | 58 |
} |