summaryrefslogtreecommitdiff
path: root/dev-libs/avro-c/avro-c-1.12.0-r1.ebuild
blob: 19c6046ad85776ec490207727966232bb6849676 (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
# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="c library for the apache avro data serialization system"
HOMEPAGE="https://avro.apache.org/"
SRC_URI="mirror://apache/avro/avro-${PV}/c/avro-c-${PV}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="
	app-arch/snappy:=
	>=dev-libs/jansson-2.3:=
	virtual/zlib:="
RDEPEND="${DEPEND}"

src_test() {
	local CMAKE_SKIP_TESTS=(
		test_avro_commons_schema # commons is only in full distro, not in avro-c
	)

	cmake_src_test
}

src_install() {
	cmake_src_install
	# cmake doesn't have an option to enable/disable static libs
	rm "${ED}"/usr/$(get_libdir)/libavro.a || die
}