commit: c5f140a8bdf0b268901de408d3a119a14fe3c210 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> AuthorDate: Fri Mar 6 23:08:36 2026 +0000 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> CommitDate: Fri Mar 6 23:08:36 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5f140a8
www-apps/ttyd: fix preserved libs for net-libs/libwebsockets Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> www-apps/ttyd/ttyd-1.7.7-r1.ebuild | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/www-apps/ttyd/ttyd-1.7.7-r1.ebuild b/www-apps/ttyd/ttyd-1.7.7-r1.ebuild new file mode 100644 index 000000000000..bc117c8c488d --- /dev/null +++ b/www-apps/ttyd/ttyd-1.7.7-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake systemd + +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 + +LICENSE="MIT" +SLOT="0" +IUSE="mbedtls" +RDEPEND=" + dev-libs/json-c:= + dev-libs/libuv:= + >=net-libs/libwebsockets-4.4:=[libuv,mbedtls=,ssl] + net-libs/libwebsockets:= + virtual/zlib:= + !mbedtls? ( dev-libs/openssl:= ) +" +DEPEND="${RDEPEND}" + +src_install() { + cmake_src_install + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + systemd_dounit "${FILESDIR}"/${PN}.service +}
