annotate www-apps/redaxo/redaxo-4.2.1.ebuild @ 181:75e5b218d321

add ebulid for redaxo
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 17 Feb 2010 03:45:07 +0100
parents
children 75231bb27b1c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
181
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 inherit webapp depend.php
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4 DESCRIPTION="PHP-powered CMS application."
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 HOMEPAGE="http://www.redaxo.de/"
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 DOWNLOAD_NAME=`echo ${P} | tr '.' '_'`
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8 DOWNLOAD_NAME=`echo ${DOWNLOAD_NAME} | sed -e 's/-//'`
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9 SRC_URI="http://www.redaxo.de/files/${DOWNLOAD_NAME}.zip"
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11 LICENSE="GPL"
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12 KEYWORDS="~amd64 ~x86"
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 DEPEND=""
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 RDEPEND="virtual/httpd-cgi"
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16 need_php_httpd
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18 S="${WORKDIR}/${PN}"
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20 pkg_setup() {
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21 webapp_pkg_setup
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 if ! PHPCHECKNODIE="yes" require_php_with_any_use mysql ; then
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 eerror
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25 eerror "${PHP_PKG} needs to be reinstalled with the mysql USE flag enabled."
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 die "Reinstall ${PHP_PKG} with the above-stated USE flags."
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 fi
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28 }
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 src_install() {
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31 webapp_src_preinst
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33 # rm docs/INSTALL*
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 # local docs="docs/*"
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35 # dodoc ${docs}
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36 # rm -rf docs/
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38 einfo "Installing application files."
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39 cp -r . "${D}"${MY_HTDOCSDIR}
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40 # touch "${D}"${MY_HTDOCSDIR}/.htaccess
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41 # touch "${D}"${MY_HTDOCSDIR}/serendipity_config_local.inc.php
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43 # keepdir ${MY_HTDOCSDIR}/archives/
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 # webapp_configfile ${MY_HTDOCSDIR}/serendipity_config_local.inc.php
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46 # archives, templates_c and uploads need to be writable to PHP
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47 # .htaccess and serendipity_config_local.inc.php need to be too
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48 # plugins and templates need to be writable for spartacus support.
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49 # local SERVEROWNED="serendipity_config_local.inc.php .htaccess archives plugins templates templates_c uploads"
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50 # for SFILES in ${SERVEROWNED}; do
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51 # webapp_serverowned ${MY_HTDOCSDIR}/${SFILES}
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52 # done
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
53
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
54 webapp_src_install
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55 }