# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit webapp DESCRIPTION="phpwcms is an Open Source web content management system and is optimized for fast and easy setup and works on any standard webserver platform that supports PHP/MySQL" HOMEPAGE="http://www.phpwcms.de/" MY_P=${PN}_${PV}-DEV SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz" LICENSE="GPL-2 LGPL public-domain htmlArea" KEYWORDS="~x86" IUSE="gs" RDEPEND="virtual/httpd-php net-www/apache dev-db/mysql media-libs/gd media-gfx/imagemagick gs? (app-text/ghostscript)" S=${WORKDIR}/${MY_P} src_unpack() { unpack ${A} cd ${S} # Move files that people don't know how to name einfo "Moving files with spaces in names" { cd ./include/inc_module/mod_graphical_text mv ./update\ 1.0\ to\ 1.1.txt ./update_1.0_to_1.1.txt mv ./update\ 1.1\ to\ 1.3.txt ./update_1.1_to_1.3.txt mv ./replacement\ tags.txt ./repacement_tags.txt mv ./update\ 1.3\ to\ 1.4.txt ./update_1.3_to_1.4.txt mv ./update\ 1.4\ to\ 1.5.txt ./update_1.4_to_1.5.txt mv ./update\ 1.5\ to\ 2.0.txt ./update_1.5_to_2.0.txt cd ${S} mv ./include/inc_ext/ConvertCharset/Thanks\ To \ ./include/inc_ext/ConvertCharset/ThanksTo } } src_compile() { einfo "No compilation Nessessary" } src_install() { webapp_src_preinst local docs="LICENSE.txt ChangeLog.txt" einfo "Installing docs" dodoc ${docs} einfo "Copying main files" cp -r . ${D}/${MY_HTDOCSDIR} cd ${D}/${MY_HTDOCSDIR} for this_doc in ${docs} GPL.txt GPL.html; do rm -f ${this_doc} done cd ${S} own_list="./phpwcms_ftp ./phpwcms_filestorage ./phpwcms_filestorage/can_be_deleted ./phpwcms_template content ./content/images ./content/gt ./content/form ./content/rss ./content/tmp ./content/pages ./setup/setup.conf.inc.php ./phpwcms_template/inc_css/frontend.css ./config/phpwcms/conf.indexpage.inc.php ./phpwcms_template/inc_default/startup.php" for own_me in ${own_list}; do webapp_serverowned ${MY_HTDOCSDIR}/${own_me} done mv ${MY_HTDOCSDOR}/_.htaccess ${MY_HTDOCSDOR}/.htaccess keepdir ${MY_HTDOCSDIR}/config webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt webapp_src_install }