# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # Lares' Note: assign to webapps-request@gentoo.org inherit versionator webapp eutils 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=$(replace_version_separator 1 '_' ${P/_beta/-DEV}) SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz" LICENSE="GPL-2" 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() { # Nothing to do einfo "No compilation Nessessary" } src_install() { cd ${S} webapp_src_preinst local docs="LICENSE.txt ChangeLog.txt" einfo "Installing docs" dodoc ${docs} dodoc ${FILESDIR}/${P}.sql ## Insert Docs Stuff here 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 mv _.htaccess .htaccess for i in `find ./ -print`; do webapp_serverowned ${MY_HTDOCSDIR}/${i} done cd ${S} keepdir ${MY_HTDOCSDIR}/config webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt webapp_src_install }