annotate www-apps/redaxo/redaxo-4.2.1.ebuild @ 183:3cdcf4f4578c

replace the version number using portage functions, fetch the source, unpack and clean up works
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 17 Feb 2010 09:53:35 +0100
parents 75231bb27b1c
children 54b73709801b
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
183
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
2 EAPI=2
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
3 inherit webapp depend.php versionator
181
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 DESCRIPTION="PHP-powered CMS application."
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6 HOMEPAGE="http://www.redaxo.de/"
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7
183
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
8 # translate redaxo-0.0.0 to redaxo0_0_0
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
9 MY_PV=$(replace_all_version_separators '_')
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
10 MY_P=${PN}${MY_PV}
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
11 SRC_URI="http://www.redaxo.de/files/${MY_P}.zip"
181
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 LICENSE="GPL"
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 KEYWORDS="~amd64 ~x86"
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 DEPEND=""
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16 RDEPEND="virtual/httpd-cgi"
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 need_php_httpd
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19
183
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
20 S="${WORKDIR}/${MY_P}"
181
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22 pkg_setup() {
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 webapp_pkg_setup
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25 if ! PHPCHECKNODIE="yes" require_php_with_any_use mysql ; then
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 eerror
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 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
28 die "Reinstall ${PHP_PKG} with the above-stated USE flags."
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29 fi
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 }
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31
183
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
32 src_unpack() {
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
33 unpack ${A}
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
34
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
35 # clean up some cruft that comes as part of the install package
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
36 cd ${S}
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
37 find . -name .DS_Store -exec rm {} \;
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
38 }
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
39
181
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40 src_install() {
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41 webapp_src_preinst
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 # rm docs/INSTALL*
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 # local docs="docs/*"
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45 # dodoc ${docs}
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46 # rm -rf docs/
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48 einfo "Installing application files."
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49 cp -r . "${D}"${MY_HTDOCSDIR}
182
75231bb27b1c work on the ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 181
diff changeset
50 touch "${D}"${MY_HTDOCSDIR}/.htaccess
181
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51 # touch "${D}"${MY_HTDOCSDIR}/serendipity_config_local.inc.php
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52
183
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
53 # the files directory will be populated by the user
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
54 keepdir ${MY_HTDOCSDIR}/files/
181
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55 # webapp_configfile ${MY_HTDOCSDIR}/serendipity_config_local.inc.php
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56
183
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
57 # .htaccess, index.php and the redaxo dir are part of the distro
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
58 local SERVEROWNED=".htaccess index.php redaxo"
182
75231bb27b1c work on the ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 181
diff changeset
59 for SFILES in ${SERVEROWNED}; do
75231bb27b1c work on the ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 181
diff changeset
60 webapp_serverowned ${MY_HTDOCSDIR}/${SFILES}
75231bb27b1c work on the ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 181
diff changeset
61 done
181
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
62
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
63 webapp_src_install
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
64 }