summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2022-11-29 02:39:02 +0100
committerSebastian Pipping <sping@gentoo.org>2022-11-29 02:39:02 +0100
commit747d429da917940abe21d0cd9df6f46da539712d (patch)
treebdac17c8856fd52836910f22a8933112250a6652 /www-servers
parentwww-servers/servefile: Drop old (diff)
downloadgentoo-747d429da917940abe21d0cd9df6f46da539712d.tar.gz
gentoo-747d429da917940abe21d0cd9df6f46da539712d.tar.bz2
gentoo-747d429da917940abe21d0cd9df6f46da539712d.zip
www-servers/servefile: EAPI 8 + DistutilsNonPEP517Build + MissingRemoteId
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/servefile/metadata.xml3
-rw-r--r--www-servers/servefile/servefile-0.5.3-r1.ebuild41
2 files changed, 44 insertions, 0 deletions
diff --git a/www-servers/servefile/metadata.xml b/www-servers/servefile/metadata.xml
index 6a22e9e318bb..a6a556a89e95 100644
--- a/www-servers/servefile/metadata.xml
+++ b/www-servers/servefile/metadata.xml
@@ -5,4 +5,7 @@
<email>sping@gentoo.org</email>
<name>Sebastian Pipping</name>
</maintainer>
+ <upstream>
+ <remote-id type="github">sebageek/servefile</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/www-servers/servefile/servefile-0.5.3-r1.ebuild b/www-servers/servefile/servefile-0.5.3-r1.ebuild
new file mode 100644
index 000000000000..623f1977123b
--- /dev/null
+++ b/www-servers/servefile/servefile-0.5.3-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PYTHON_COMPAT=( python3_{8..10} )
+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
+}