From e1bec5e53d7bc1bc095c3c3418704542fdd2cc6e Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Tue, 27 Jan 2004 00:59:30 +0000
Subject: use horde eclass

---
 net-www/horde-kronolith/Manifest                   |  4 +--
 net-www/horde-kronolith/horde-kronolith-1.1.ebuild | 39 ++--------------------
 net-www/horde-kronolith/metadata.xml               |  3 +-
 3 files changed, 6 insertions(+), 40 deletions(-)

(limited to 'net-www/horde-kronolith')

diff --git a/net-www/horde-kronolith/Manifest b/net-www/horde-kronolith/Manifest
index bfd0c873fded..ddc87217de30 100644
--- a/net-www/horde-kronolith/Manifest
+++ b/net-www/horde-kronolith/Manifest
@@ -1,4 +1,4 @@
-MD5 f09bb55eca7a247b6b728c8f88648705 files/digest-horde-kronolith-1.1 65
 MD5 67117e3acb58b04f958a63f46b8252d6 ChangeLog 1391
 MD5 c339473e0ff43da76eb2f2607c441921 metadata.xml 280
-MD5 2beb5ca19febd4137dd6873e54a2a195 horde-kronolith-1.1.ebuild 1388
+MD5 36719d96179dc880bca552baa8ee783f horde-kronolith-1.1.ebuild 618
+MD5 f09bb55eca7a247b6b728c8f88648705 files/digest-horde-kronolith-1.1 65
diff --git a/net-www/horde-kronolith/horde-kronolith-1.1.ebuild b/net-www/horde-kronolith/horde-kronolith-1.1.ebuild
index 848af5da7b36..5d0bfd09075a 100644
--- a/net-www/horde-kronolith/horde-kronolith-1.1.ebuild
+++ b/net-www/horde-kronolith/horde-kronolith-1.1.ebuild
@@ -1,54 +1,21 @@
 # Copyright 1999-2004 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-www/horde-kronolith/horde-kronolith-1.1.ebuild,v 1.10 2004/01/19 06:45:49 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-www/horde-kronolith/horde-kronolith-1.1.ebuild,v 1.11 2004/01/27 00:57:47 vapier Exp $
 
-inherit webapp-apache
+inherit horde
 
-MY_P=${P/horde-/}
 DESCRIPTION="Kronolith is the Horde calendar application"
-HOMEPAGE="http://www.horde.org/kronolith/"
-SRC_URI="ftp://ftp.horde.org/pub/kronolith/${MY_P}.tar.gz"
 
-LICENSE="GPL-2"
-SLOT="0"
 KEYWORDS="x86 ~ppc ~sparc ~alpha"
 
 DEPEND=""
 RDEPEND=">=net-www/horde-2.2.4"
 
-S=${WORKDIR}/${MY_P}
-
-webapp-detect || NO_WEBSERVER=1
-
 pkg_setup() {
 	GREPBACKEND=`egrep 'sql|odbc|postgres|ldap' /var/db/pkg/dev-php/mod_php*/USE`
 	if [ -z "${GREPBACKEND}" ] ; then
 		eerror "Missing SQL or LDAP support in mod_php !"
 		die "aborting..."
 	fi
-	webapp-pkg_setup "${NO_WEBSERVER}"
-	einfo "Installing into ${ROOT}${HTTPD_ROOT}."
-}
-
-src_install() {
-	webapp-mkdirs
-
-	local DocumentRoot=${HTTPD_ROOT}
-	local destdir=${DocumentRoot}/horde/kronolith
-
-	dodoc COPYING README docs/*
-	rm -rf COPYING README docs
-
-	dodir ${destdir}
-	cp -r . ${D}${destdir}
-	cd ${D}/${HTTPD_ROOT}/horde
-
-	# protecting files
-	chown -R ${HTTPD_USER}:${HTTPD_GROUP} kronolith
-	find ${D}/${destdir} -type f -exec chmod 0640 {} \;
-	find ${D}/${destdir} -type d -exec chmod 0750 {} \;
-}
-
-pkg_postinst() {
-	einfo "Please read /usr/share/doc/${PF}/INSTALL.gz"
+	horde_pkg_setup
 }
diff --git a/net-www/horde-kronolith/metadata.xml b/net-www/horde-kronolith/metadata.xml
index 13bc126c7d91..68c78dd23817 100644
--- a/net-www/horde-kronolith/metadata.xml
+++ b/net-www/horde-kronolith/metadata.xml
@@ -3,7 +3,6 @@
 <pkgmetadata>
 <herd>web-apps</herd>
 <maintainer>
-<email>web-apps@gentoo.org</email>
-<name>Gentoo Web Application Packages Maintainers</name>
+<email>vapier@gentoo.org</email>
 </maintainer>
 </pkgmetadata>
-- 
cgit v1.2.3-65-gdbad