summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2023-01-24 00:51:14 +0100
committerSebastian Pipping <sping@gentoo.org>2023-01-24 00:51:14 +0100
commite4e6cae511bcf14fd78a107d4c0481ed73271c3c (patch)
treee85c4a3d88da6cdd26126bd7cfaf4f47b8b4d889 /www-servers
parentdev-lang/python: Fix cross-compiling, particularly 3.11 (diff)
downloadgentoo-e4e6cae511bcf14fd78a107d4c0481ed73271c3c.tar.gz
gentoo-e4e6cae511bcf14fd78a107d4c0481ed73271c3c.tar.bz2
gentoo-e4e6cae511bcf14fd78a107d4c0481ed73271c3c.zip
www-servers/servefile: 0.5.4 + Python 3.11
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/servefile/Manifest1
-rw-r--r--www-servers/servefile/servefile-0.5.4.ebuild41
2 files changed, 42 insertions, 0 deletions
diff --git a/www-servers/servefile/Manifest b/www-servers/servefile/Manifest
index b38dfa106158..6fad197cec69 100644
--- a/www-servers/servefile/Manifest
+++ b/www-servers/servefile/Manifest
@@ -1 +1,2 @@
DIST servefile-0.5.3.tar.gz 20761 BLAKE2B bc4bd25aca01e0ac7d00e684cc8b0f848b295df2f02fe441c05d634cd415f395b0e5e083b5771c1d0dcd45ad897ac00e75ca999a76a9d0d0719c82ddb558a029 SHA512 9e6dd5927808cbb66163f207bed28f2c044d996ef1f4e77163cbf257e3e66169f58e92dba252ae389660d11e01d307fc1d8c749e903e232853c70867ce44e219
+DIST servefile-0.5.4.tar.gz 21936 BLAKE2B 3356edbe20a76dc7750700cb1adb90625554065ecc904f7a32ea599523e897c0f2ce6c5d4fd4689ddd68572fa55a7fc2eb6d1e27c4bc6f44a737cdcc28eebad3 SHA512 114ca0c156c41002f1ec4d547f309fafe0d698560129c8365f1b6317547e46837c123d2659a17583deb78f9975ae31388a72a831e3a1f0f3e6ad2b21fe254884
diff --git a/www-servers/servefile/servefile-0.5.4.ebuild b/www-servers/servefile/servefile-0.5.4.ebuild
new file mode 100644
index 000000000000..40849cf36aa8
--- /dev/null
+++ b/www-servers/servefile/servefile-0.5.4.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PYTHON_COMPAT=( python3_{9..11} )
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1
+
+DESCRIPTION="Serve a single file via HTTP"
+HOMEPAGE="https://github.com/sebageek/servefile"
+SRC_URI="https://github.com/sebageek/servefile/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl test"
+
+RDEPEND="
+ ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )
+ sys-apps/grep
+ sys-apps/iproute2
+ sys-apps/net-tools
+ sys-apps/sed"
+DEPEND="test? (
+ ${RDEPEND}
+ dev-python/requests[${PYTHON_USEDEP}]
+ )"
+
+S="${WORKDIR}"/${P}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.5.2-ipv6-absent-tests.patch
+)
+
+distutils_enable_tests pytest
+
+src_install() {
+ distutils-r1_src_install
+ doman ${PN}.1
+}