annotate www-apps/serendipity/serendipity-1.4.ebuild @ 340:9c4b58c14668

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