# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit webapp

DESCRIPTION="Single-file PHP file manager"
HOMEPAGE="https://github.com/prasathmani/tinyfilemanager"
SRC_URI="https://github.com/prasathmani/tinyfilemanager/archive/${PV}.tar.gz -> ${P}.tar.gz"

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

RDEPEND="dev-lang/php[fileinfo,iconv,session,unicode,zip]"

DOCS=( {README,SECURITY}.md )

src_install() {
	einstalldocs
	webapp_src_preinst

	insinto "${MY_HTDOCSDIR}"
	doins tinyfilemanager.php translation.json
	doins -r assets
	webapp_src_install
}