aboutsummaryrefslogtreecommitdiff
blob: 8d1c0da764f8a76789ed4a7c0089027a4ec3f35f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="C++ library to communicate with Microsoft SQL server"
HOMEPAGE="https://github.com/maharmstone/tdscpp"
SRC_URI="https://codeload.github.com/maharmstone/tdscpp/tar.gz/refs/tags/${PV} -> ${P}.tar.gz"

LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~riscv"
IUSE="kerberos +ssl"

DEPEND="dev-cpp/nlohmann_json
	dev-libs/icu
	kerberos? ( virtual/krb5 )
	ssl? ( dev-libs/openssl )"
RDEPEND="${DEPEND}"

src_prepare() {
	cmake_src_prepare
}

src_configure() {
	local mycmakeargs=(
		-DENABLE_KRB5="$(usex kerberos)"
		-DWITH_OPENSSL="$(usex ssl)"
		-DBUILD_SAMPLE=OFF
	)

	cmake_src_configure
}