43 lines
820 B
Bash
43 lines
820 B
Bash
# Copyright 2019 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit webapp
|
|
|
|
DESCRIPTION="A modern software package to manage your organization's activity"
|
|
HOMEPAGE="https://www.dolibarr.org/"
|
|
SRC_URI="https://github.com/Dolibarr/dolibarr/archive/${PV}.tar.gz -> ${PF}.tar.gz"
|
|
|
|
LICENSE="GPL-3"
|
|
KEYWORDS="amd64 ~x86"
|
|
IUSE="mysqli +postgres"
|
|
|
|
DEPEND=""
|
|
RDEPEND=">=dev-lang/php-5.4[mysqli?,postgres?,session,unicode,calendar,curl,gd,intl,zip]"
|
|
BDEPEND=""
|
|
|
|
need_httpd_cgi
|
|
|
|
src_compile() {
|
|
true;
|
|
}
|
|
|
|
src_install() {
|
|
webapp_src_preinst
|
|
|
|
cd htdocs/
|
|
mkdir -p documents
|
|
mkdir -p conf
|
|
touch /conf/conf.php
|
|
|
|
insinto "${MY_HTDOCSDIR}"
|
|
doins -r .
|
|
|
|
#webapp_serverowned -R "${MY_HTDOCSDIR}"/conf/conf.php
|
|
webapp_serverowned -R "${MY_HTDOCSDIR}"/documents
|
|
|
|
webapp_src_install
|
|
}
|
|
|