summaryrefslogtreecommitdiff
blob: d2ca352cd24fd520455e59fe1bbc8b7a2a07c443 (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
36
37
38
39
40
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
inherit cmake

if [[ ${PV} == "9999" ]] ; then
	EGIT_REPO_URI="https://github.com/aarond10/https_dns_proxy.git"
	inherit git-r3
else
	MY_COMMIT="2d9285e2b94bce21c588c8160f8fac660806987a"
	SRC_URI="https://github.com/aarond10/https_dns_proxy/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~x86"
	S="${WORKDIR}/${PN}-${MY_COMMIT}"
fi

DESCRIPTION="A lightweight DNS-over-HTTPS proxy"
HOMEPAGE="https://github.com/aarond10/https_dns_proxy"

LICENSE="MIT"
SLOT="0"

RDEPEND="
	dev-libs/libev
	net-dns/c-ares
	net-misc/curl[http2,ssl]"
DEPEND="${RDEPEND}"

src_configure() {
	local mycmakeargs=(
		-DCMAKE_DISABLE_FIND_PACKAGE_GTest=ON
		-DCLANG_TIDY_EXE=OFF
	)
	cmake_src_configure
}

src_install() {
	cmake_src_install
	dobin "${BUILD_DIR}"/https_dns_proxy
}