summaryrefslogtreecommitdiff
blob: f6ba9f0eaa16887116dddfd4b0ac9a6272168c21 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit webapp depend.php

DESCRIPTION="A flexible, elegant and easy-to-use content management system. "
HOMEPAGE="http://textpattern.com/"
SRC_URI="http://textpattern.com/file_download/56/ -> ${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE=""

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

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 files images"
	for f in ${serverowned}; do
		webapp_serverowned "${MY_HTDOCSDIR}/${f}"
	done

	webapp_src_install
}