2011-11-19 19:46:22 +01:00
|
|
|
# Copyright 1999-2011 Gentoo Foundation
|
2009-12-22 15:26:18 +01:00
|
|
|
# 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
|
|
|
|
|
2011-11-19 19:46:22 +01:00
|
|
|
MY_EXT="stable-2011-11-02"
|
2009-12-22 15:26:18 +01:00
|
|
|
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"
|
2010-02-18 19:33:28 +01:00
|
|
|
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~x86"
|
2009-12-22 15:26:18 +01:00
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
RDEPEND=""
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
app-arch/unzip"
|
|
|
|
|
|
|
|
need_httpd_cgi
|
|
|
|
need_php_httpd
|
|
|
|
|
|
|
|
S="${WORKDIR}/${PN}"
|
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
webapp_pkg_setup
|
|
|
|
has_php
|
|
|
|
require_php_with_use xml tokenizer mysql
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
webapp_src_preinst
|
|
|
|
|
|
|
|
insinto "${MY_HTDOCSDIR}"
|
|
|
|
doins -r blogs/*
|
|
|
|
|
|
|
|
#cp conf/_basic_config.template.php conf/_basic_config.php
|
|
|
|
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
|
|
|
|
}
|