gentoo-ebuilds/www-apps/ttyd/ttyd-1.7.7.ebuild
Michał Górny f42710561c
*/*: update the remaining packages for virtual/zlib
Update done using:

```
git grep -l sys-libs/zlib sys-* | xargs sed -i -e s@sys-libs/zlib@virtual/zlib@g
git grep -l virtual/zlib-ng sys-* | xargs sed -i -e s@virtual/zlib-ng@sys-libs/zlib-ng@g
git diff --name-only | xargs copybump
git diff --name-only | xargs grep -l PYTHON_COMPAT | xargs gpy-impl -@dead
pkgcheck scan --commits -c SourcingCheck,VisibilityCheck --exit error
```

Plus reverts in sys-libs/minizip-ng, sys-libs/zlib-ng and profiles.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
2025-11-04 09:39:44 +01:00

40 lines
896 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake systemd
MY_PV="$(ver_rs 3 '-')"
DESCRIPTION="ttyd, a simple command-line tool for sharing terminal over the web"
HOMEPAGE="https://github.com/tsl0922/ttyd"
if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://github.com/tsl0922/ttyd.git"
inherit git-r3
else
SRC_URI="https://github.com/tsl0922/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="amd64"
fi
S="${WORKDIR}/${PN}-${MY_PV}"
LICENSE="MIT"
SLOT="0"
IUSE="mbedtls"
DEPEND="
dev-libs/json-c:=
dev-libs/libuv:=
net-libs/libwebsockets:=[libuv,mbedtls=,ssl]
virtual/zlib:=
!mbedtls? ( dev-libs/openssl:= )
"
RDEPEND="${DEPEND}"
src_install() {
cmake_src_install
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
systemd_dounit "${FILESDIR}"/${PN}.service
}