annotate www-apps/serendipity/serendipity-1.5.2.ebuild @ 180:c84e2869d46b

s9y 1.5.2 is available
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 03 Feb 2010 09:06:04 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
180
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 # Copyright 1999-2007 Gentoo Foundation
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 # $Header: $
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 inherit webapp depend.php
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 DESCRIPTION="PHP-powered, flexible blogging/CMS application."
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8 HOMEPAGE="http://www.s9y.org/"
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9 SRC_URI="mirror://sourceforge/php-blog/${P}.tar.gz"
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11 LICENSE="BSD"
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12 KEYWORDS="~amd64 ~x86"
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 IUSE="imagemagick"
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 DEPEND=""
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16 RDEPEND="virtual/httpd-cgi
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17 imagemagick? ( media-gfx/imagemagick )"
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19 need_php_httpd
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21 S="${WORKDIR}/${PN}"
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 pkg_setup() {
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 webapp_pkg_setup
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 if ! PHPCHECKNODIE="yes" require_php_with_any_use mysql mysqli postgres sqlite \
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 || ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external \
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28 || ! PHPCHECKNODIE="yes" require_php_with_use iconv pcre unicode xml zlib ; then
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29 eerror
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 eerror "${PHP_PKG} needs to be reinstalled at least one of mysql, mysqli,"
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31 eerror "postgres or sqlite USE flags enabled for a database backend."
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32 eerror "It must also have either gd or gd-external USE flag enabled."
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33 eerror "It must also have all of iconv pcre unicode xml zlib USE flags enabled."
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 die "Reinstall ${PHP_PKG} with the above-stated USE flags."
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35 fi
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36 }
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38 src_install() {
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39 webapp_src_preinst
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41 rm docs/INSTALL*
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42 local docs="docs/*"
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43 dodoc ${docs}
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 rm -rf docs/
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46 einfo "Installing application files."
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47 cp -r . "${D}"${MY_HTDOCSDIR}
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48 touch "${D}"${MY_HTDOCSDIR}/.htaccess
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49 touch "${D}"${MY_HTDOCSDIR}/serendipity_config_local.inc.php
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51 keepdir ${MY_HTDOCSDIR}/archives/
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52 webapp_configfile ${MY_HTDOCSDIR}/serendipity_config_local.inc.php
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
53 #webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
54
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55 # archives, templates_c and uploads need to be writable to PHP
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56 # .htaccess amd serendipity_config_local.inc.php need to be too
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
57 # plugins and templates need to be writable for spartacus support.
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
58 local SERVEROWNED="serendipity_config_local.inc.php .htaccess archives plugins templates templates_c uploads"
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
59 for SFILES in ${SERVEROWNED}; do
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
60 webapp_serverowned ${MY_HTDOCSDIR}/${SFILES}
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
61 done
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
62
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
63 webapp_src_install
c84e2869d46b s9y 1.5.2 is available
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
64 }