summaryrefslogtreecommitdiff
blob: 535da547cd32df6397308760f71d9e70426beb05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/eyeos/eyeos-1.9.0.1.ebuild,v 1.1 2010/02/19 15:13:05 voyageur Exp $

inherit depend.php versionator webapp eutils

DESCRIPTION="AJAX web-based desktop environment"
HOMEPAGE="http://www.eyeos.org"
if [[ $(get_version_component_count) < 5 ]]; then
	SRC_URI="mirror://sourceforge/eyeos/eyeOS_$(get_version_component_range 1-4).zip"
else
	SRC_URI="mirror://sourceforge/eyeos/eyeOS_$(get_version_component_range 1-4)-$(get_version_component_range 5).zip"
fi

LICENSE="AGPL-3"
KEYWORDS="~amd64 ~x86"
IUSE=""

need_httpd_cgi
need_php_httpd

S=${WORKDIR}/eyeOS

src_install () {
	webapp_src_preinst

	dodoc README.txt
	rm -f README.txt

	insinto "${MY_HTDOCSDIR}"
	doins -r .

	#TODO: needs "." too
	for file in index.html package.eyepackage installer installer/index.php installer/files/index.txt installer/files/settings.txt; do
			webapp_serverowned "${MY_HTDOCSDIR}/${file}"
	done

	webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
	webapp_postupgrade_txt en "${FILESDIR}"/postinstall-en.txt
	webapp_src_install
}