summaryrefslogtreecommitdiff
blob: 7d44875ee18d4077861f00c5734c6bf792d4467e (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
42
43
44
45
46
47
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ESVN_REPO_URI="http://textpattern.googlecode.com/svn/development/crockery/"

inherit subversion webapp depend.php

DESCRIPTION="A flexible, elegant and easy-to-use content management system. "
HOMEPAGE="http://textpattern.com/"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND="virtual/httpd-cgi"

need_php_httpd

pkg_setup() {
	webapp_pkg_setup

	require_php_with_any_use mysql mysqli
	require_php_with_use gd
}

src_install() {
	webapp_src_preinst

	dodoc *.txt
	rm *.txt textpattern/*.txt

	cp -r . "${D}${MY_HTDOCSDIR}"

	keepdir "${MY_HTDOCSDIR}/images/"
	keepdir "${MY_HTDOCSDIR}/files/"
	keepdir "${MY_HTDOCSDIR}/textpattern/tmp/"

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

	local serverowned="textpattern/tmp images files"
	for f in ${serverowned}; do
		webapp_serverowned ${MY_HTDOCSDIR}/${f}
	done

	webapp_src_install
}