blob: 72795284e1bc876f1e86c0a7f413c8004a765936 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit webapp depend.php
DESCRIPTION="PHP-powered, flexible blogging/CMS application"
HOMEPAGE="http://www.s9y.org/"
SRC_URI="mirror://sourceforge/php-blog/${P}.tar.gz"
LICENSE="BSD"
KEYWORDS="~amd64 ~x86"
IUSE="imagemagick"
RDEPEND="|| ( >=dev-db/mysql-3.23.32
>=dev-db/postgresql-8.0.4
>=dev-db/sqlite-3.2.1 )
imagemagick? ( media-gfx/imagemagick )"
DEPEND=""
S="${WORKDIR}/${PN}"
pkg_setup() {
webapp_pkg_setup
if ! PHPCHECKNODIE="yes" require_php_with_any_use mysql mysqli postgres \
sqlite || ! PHPCHECKNODIE="yes" require_php_with_any_use gd \
gd-external; then
eerror
eerror "${PHP_PKG} needs to be reinstalled with the mysql, mysqli, "
eerror "postgres or sqlite USE flag enabled. It must also have the gd"
eerror "or gd-external USE flag enabled."
eerror
die "Reinstall ${PHP_PKG}."
fi
}
src_install() {
webapp_src_preinst
rm docs/INSTALL*
local docs="docs/*"
dodoc ${docs}
# Copy the apps main files.
einfo "Installing application files."
cp -r . ${D}${MY_HTDOCSDIR}
touch ${D}${MY_HTDOCSDIR}/.htaccess
touch ${D}${MY_HTDOCSDIR}/serendipity_config_local.inc.php
mkdir ${D}${MY_HTDOCSDIR}/archives
touch ${D}${MY_HTDOCSDIR}/archives/.keep
rmdir ${D}${MY_HTDOCSDIR}/docs
# Identify the configuration files that this application uses
webapp_configfile ${MY_HTDOCSDIR}/serendipity_config_local.inc.php
# archives, templates_c and uploads need to be writable to PHP
# .htaccess amd serendipity_config_local.inc.php need to be too
# plugins and templates need to be writable for spartacus support.
local SERVEROWNED="serendipity_config_local.inc.php archives templates_c
uploads .htaccess plugins templates"
for SFILES in ${SERVEROWNED}; do
webapp_serverowned ${MY_HTDOCSDIR}/${SFILES}
done
webapp_src_install
}
|