41 lines
742 B
Bash
41 lines
742 B
Bash
# Copyright 2019 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit webapp
|
|
|
|
DESCRIPTION="A free photo-management tool"
|
|
HOMEPAGE="https://lycheeorg.github.io/"
|
|
SRC_URI="https://github.com/LycheeOrg/Lychee/archive/v${PV}.tar.gz -> ${PF}.tar.gz"
|
|
|
|
S="${WORKDIR}/Lychee-${PV}"
|
|
|
|
LICENSE="MIT"
|
|
KEYWORDS="amd64 ~x86"
|
|
IUSE=""
|
|
|
|
DEPEND=""
|
|
RDEPEND=">=dev-lang/php-7.1[session,exif,gd,mysqli,json,unicode,zip]"
|
|
BDEPEND=""
|
|
|
|
need_httpd_cgi
|
|
|
|
src_compile() {
|
|
true;
|
|
}
|
|
|
|
src_install() {
|
|
webapp_src_preinst
|
|
|
|
insinto "${MY_HTDOCSDIR}"
|
|
doins -r .
|
|
|
|
webapp_serverowned -R "${MY_HTDOCSDIR}"/data
|
|
webapp_serverowned -R "${MY_HTDOCSDIR}"/dist
|
|
webapp_serverowned -R "${MY_HTDOCSDIR}"/uploads
|
|
|
|
webapp_src_install
|
|
}
|
|
|