Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sune Kloppenborg Jeppesen
committed
Oct 26, 2011
1 parent
34361ae
commit e9728c2
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Copyright 1999-2008 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Header: /var/cvsroot/gentoo-x86/www-apps/b2evolution/b2evolution-2.4.0_rc2.ebuild,v 1.3 2008/02/22 15:43:09 hollow Exp $ | ||
|
||
inherit webapp eutils depend.php | ||
|
||
MY_EXT="stable-2011-10-03" | ||
MY_PV=${PV/_/-} | ||
|
||
DESCRIPTION="Multilingual multiuser multi-blog engine" | ||
HOMEPAGE="http://www.b2evolution.net" | ||
SRC_URI="mirror://sourceforge/evocms/${PN}-${MY_PV}-${MY_EXT}.zip" | ||
|
||
LICENSE="GPL-2" | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="" | ||
|
||
RDEPEND="" | ||
DEPEND="${RDEPEND} | ||
app-arch/unzip" | ||
|
||
need_httpd_cgi | ||
need_php_httpd | ||
|
||
S="${WORKDIR}/${PN}" | ||
|
||
pkg_setup() { | ||
webapp_pkg_setup | ||
has_php | ||
if [[ ${PHP_VERSION} == "4" ]]; then | ||
require_php_with_use expat tokenizer mysql | ||
else | ||
require_php_with_use curl ctype xml tokenizer mysql | ||
fi | ||
} | ||
|
||
src_install() { | ||
webapp_src_preinst | ||
|
||
insinto "${MY_HTDOCSDIR}" | ||
doins -r blogs/* | ||
|
||
rm doc/*.*-*.html doc/*.src.html | ||
dohtml doc/*.html | ||
|
||
webapp_serverowned "${MY_HTDOCSDIR}" | ||
webapp_serverowned "${MY_HTDOCSDIR}"/conf/_basic_config.template.php | ||
webapp_configfile "${MY_HTDOCSDIR}"/conf/_{basic_config.template,advanced,locales,formatting,admin,stats,application}.php | ||
|
||
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt | ||
webapp_postupgrade_txt en "${FILESDIR}"/postupgrade-en.txt | ||
|
||
webapp_src_install | ||
} |