Files
guru/net-misc/gmcapsule/gmcapsule-0.6.1.ebuild
Anna (cybertailor) Vyalkova 96020a54a1 net-misc/gmcapsule: new package, add 0.6.1
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2024-02-16 06:28:53 +05:00

40 lines
821 B
Bash

# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_USE_PEP517=hatchling
inherit distutils-r1 pypi systemd
DESCRIPTION="Extensible Gemini/Titan server"
HOMEPAGE="
https://pypi.org/project/gmcapsule/
https://codeberg.org/skyjake/gmcapsule
"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
acct-user/gemini
>=dev-python/pyopenssl-21
"
python_install() {
rm "${BUILD_DIR}/install$(python_get_sitedir)"/*.ini || die
distutils-r1_python_install
}
src_install() {
distutils-r1_src_install
newinitd "${FILESDIR}"/gmcapsuled.initd gmcapsuled
newconfd "${FILESDIR}"/gmcapsuled.confd gmcapsuled
systemd_dounit "${FILESDIR}"/gmcapsuled.service
insinto /etc/gmcapsule
newins example.ini config.example.ini
}