diff options
author | Gunnar Wrobel <wrobel@gentoo.org> | 2005-10-25 17:47:31 +0000 |
---|---|---|
committer | Gunnar Wrobel <wrobel@gentoo.org> | 2005-10-25 17:47:31 +0000 |
commit | f5d022524d6ec5fcc9a9ed6b9d63e34b4252e70a (patch) | |
tree | 5af26c3c704caff5e41f8ee8d6d2b1d763ba03d2 /www-apps | |
parent | Fixed digests (diff) | |
download | overlay-f5d022524d6ec5fcc9a9ed6b9d63e34b4252e70a.tar.gz overlay-f5d022524d6ec5fcc9a9ed6b9d63e34b4252e70a.tar.bz2 overlay-f5d022524d6ec5fcc9a9ed6b9d63e34b4252e70a.zip |
Version bump for claroline
svn path=/; revision=472
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/claroline/claroline-1.7.0.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/www-apps/claroline/claroline-1.7.0.ebuild b/www-apps/claroline/claroline-1.7.0.ebuild new file mode 100644 index 0000000..b938461 --- /dev/null +++ b/www-apps/claroline/claroline-1.7.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2005 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit webapp + +MYP=${PN}${PV//./} + +DESCRIPTION="Claroline E-learning System" +HOMEPAGE="http://www.claroline.net/" +SRC_URI="http://www.claroline.net/dlarea/${MYP}.tar.gz" +LICENSE="GPL-2" +KEYWORDS="~x86" + +IUSE="" +RDEPEND="net-www/apache + virtual/php + >=dev-db/mysql-3.23" + +S=${WORKDIR}/${MYP} + +src_install() { + + webapp_src_preinst + + cd ${S} + + ## Install documentation + DOCS="CREDITS.txt INSTALL.txt README.txt" + dodoc ${DOCS} + + ## Install application + cp -R . ${D}/${MY_HTDOCSDIR} + + ## Remove unnecessary documentation from webdir + for file in ${DOCS} LICENCE.txt + do + rm ${D}/${MY_HTDOCSDIR}/${file} + done + + touch ${D}/${MY_HTDOCSDIR}/claroline/inc/currentVersion.inc.php + cp ${D}/${MY_HTDOCSDIR}/textzone_right.inc.html.dist ${D}/${MY_HTDOCSDIR}/textzone_right.inc.html + cp ${D}/${MY_HTDOCSDIR}/textzone_top.inc.html.dist ${D}/${MY_HTDOCSDIR}/textzone_top.inc.html + + mkdir ${D}/${MY_HTDOCSDIR}/courses + sed -i -e 's#^\$coursesRepositoryAppend.*#\$coursesRepositoryAppend="courses/";#' ${D}/${MY_HTDOCSDIR}/claroline/install/do_install.inc.php + + SFILES="courses claroline claroline/inc/conf claroline/sql \ + claroline/inc/currentVersion.inc.php claroline/lang claroline/admin \ + claroline/inc/conf/* textzone_right.inc.html textzone_top.inc.html \ + textzone_right.inc.html.dist textzone_top.inc.html.dist" + + for FILE in ${SFILES} + do + webapp_serverowned ${MY_HTDOCSDIR}/${FILE}; + done + + webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt + + webapp_src_install +} + |