www-servers/servefile - 0.5.4-r4 (gentoo)

Search

Install

Install this version:

emerge -a =www-servers/servefile-0.5.4-r4

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =www-servers/servefile-0.5.4-r4

Or alternatively:

emerge --autounmask-write -a =www-servers/servefile-0.5.4-r4

Package Information

Description:
Serve a single file via HTTP
Homepage:
https://github.com/sebageek/servefile
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
0.5.4-r4 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
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"
S="${WORKDIR}"/${P}

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"

RDEPEND="
	sys-apps/grep
	sys-apps/iproute2
	sys-apps/net-tools
	sys-apps/sed
	$(python_gen_cond_dep '
		dev-python/legacy-cgi[${PYTHON_USEDEP}]
	' 3.13 3.14)"
DEPEND="test? (
		${RDEPEND}
		dev-python/requests[${PYTHON_USEDEP}]
	)"

PATCHES=(
	"${FILESDIR}"/${PN}-0.5.2-ipv6-absent-tests.patch
	"${FILESDIR}"/${P}-drop-broken-ssl-support.patch
)

distutils_enable_tests pytest

src_install() {
	distutils-r1_src_install
	doman ${PN}.1
}

USE Flags

Manage flags for this package: euse -i <flag> -p www-servers/servefile | euse -E <flag> -p www-servers/servefile | euse -D <flag> -p www-servers/servefile

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

test? (
		
	sys-apps/grep
	sys-apps/iproute2
	sys-apps/net-tools
	sys-apps/sed
	$(python_gen_cond_dep '
		dev-python/legacy-cgi[${PYTHON_USEDEP}]
	' 3.13 3.14)
		dev-python/requests[]
	)

RDEPEND

	sys-apps/grep
	sys-apps/iproute2
	sys-apps/net-tools
	sys-apps/sed
	$(python_gen_cond_dep '
		dev-python/legacy-cgi[${PYTHON_USEDEP}]
	' 3.13 3.14)