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