annotate www-apps/serendipity/serendipity-1.4.1.ebuild @ 143:b416ccd88ea6

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