Mercurial > hg > portage
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 |
rev | line source |
---|---|
181 | 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 | 4 |
5 DESCRIPTION="PHP-powered CMS application." | |
6 HOMEPAGE="http://www.redaxo.de/" | |
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 | 12 |
13 LICENSE="GPL" | |
14 KEYWORDS="~amd64 ~x86" | |
15 DEPEND="" | |
16 RDEPEND="virtual/httpd-cgi" | |
17 | |
18 need_php_httpd | |
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 | 21 |
22 pkg_setup() { | |
23 webapp_pkg_setup | |
24 | |
25 if ! PHPCHECKNODIE="yes" require_php_with_any_use mysql ; then | |
26 eerror | |
27 eerror "${PHP_PKG} needs to be reinstalled with the mysql USE flag enabled." | |
28 die "Reinstall ${PHP_PKG} with the above-stated USE flags." | |
29 fi | |
30 } | |
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 | 40 src_install() { |
41 webapp_src_preinst | |
42 | |
43 # rm docs/INSTALL* | |
44 # local docs="docs/*" | |
45 # dodoc ${docs} | |
46 # rm -rf docs/ | |
47 | |
48 einfo "Installing application files." | |
49 cp -r . "${D}"${MY_HTDOCSDIR} | |
182 | 50 touch "${D}"${MY_HTDOCSDIR}/.htaccess |
181 | 51 # touch "${D}"${MY_HTDOCSDIR}/serendipity_config_local.inc.php |
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 | 55 # webapp_configfile ${MY_HTDOCSDIR}/serendipity_config_local.inc.php |
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 | 59 for SFILES in ${SERVEROWNED}; do |
60 webapp_serverowned ${MY_HTDOCSDIR}/${SFILES} | |
61 done | |
181 | 62 |
63 webapp_src_install | |
64 } |