gentoo-ebuilds/net-p2p/airdcpp-webclient/airdcpp-webclient-2.14.0.ebuild
Michał Górny 6a3644bf2f
*/*: Add := to virtual/zlib deps, part 1
Done via:

```
git grep -l virtual/zlib$ | xargs sed -i -e 's@virtual/zlib$@&:=@'
```

Signed-off-by: Michał Górny <mgorny@gentoo.org>
2025-11-04 10:36:27 +01:00

64 lines
1.3 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
inherit cmake python-any-r1 systemd
DESCRIPTION="Cross-platform Direct Connect client"
HOMEPAGE="https://airdcpp-web.github.io/"
SRC_URI="https://github.com/airdcpp-web/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~riscv ~x86"
IUSE="nat-pmp +tbb +webui"
RDEPEND="
acct-user/airdcppd
acct-group/airdcppd
app-arch/bzip2
dev-cpp/websocketpp
dev-libs/boost:=
dev-libs/leveldb:=
dev-libs/libmaxminddb:=
dev-libs/openssl:0=[-bindist(-)]
net-libs/miniupnpc:=
virtual/zlib:=
virtual/libiconv
nat-pmp? ( net-libs/libnatpmp:= )
tbb? ( dev-cpp/tbb:= )
"
DEPEND="
dev-cpp/nlohmann_json
${RDEPEND}
"
BDEPEND="
virtual/pkgconfig
${PYTHON_DEPS}
"
PDEPEND="webui? ( www-apps/airdcpp-webui )"
src_configure() {
local mycmakeargs=(
-DENABLE_NATPMP=$(usex nat-pmp)
-DENABLE_TBB=$(usex tbb)
-DINSTALL_WEB_UI=OFF
)
cmake_src_configure
}
src_install() {
cmake_src_install
newconfd "${FILESDIR}/airdcppd.confd" airdcppd
newinitd "${FILESDIR}/airdcppd.initd" airdcppd
systemd_dounit "${FILESDIR}/airdcppd.service"
}
pkg_postinst() {
if [[ -z "${REPLACING_VERSIONS}" ]]; then
elog "Run 'airdcppd --configure' to set up ports and authentication"
fi
}