www-apps/davical: initial checkin based on sunrise ebuild

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@1908 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2010-01-31 07:12:02 +00:00
parent 05f817e101
commit bdc6687fc5
3 changed files with 81 additions and 0 deletions

View File

@ -2,6 +2,9 @@
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
31 Jan 2010; Mario Fetka <mario.fetka@gmail.com> +davical-0.9.8.ebuild:
initial checkin based on sunrise ebuild
07 Jan 2010; lebarjack <francois.perichon@univ-lille2.fr>
-davical-0.9.7.6.ebuild, -files/postinstall-en-0.9.7.6.txt,
+davical-0.9.8.ebuild, +files/postinstall-en-0.9.8.txt:

View File

@ -0,0 +1,6 @@
AUX postinstall-en-0.9.8.txt 492 RMD160 31bf31bfd7a3937d444844c3742b549b77d9de79 SHA1 5edf6c9c2fd1047be370a584f0f7d9a0dec17498 SHA256 da31aedbd3508422ccb8715e2958651ea430a95408c4ccd27a6fd1a03eb10ecc
AUX rscds.conf 11907 RMD160 bdd38b174cf76e2a2ea76da5ed09706d000ccd20 SHA1 12da666505dd8fb814e775f21f9bc7e623dc7597 SHA256 25d27389f72caf07e9c008bd1cfe791eac69a85309ab226946d9d7e4304ec9b7
DIST davical-0.9.8.tar.gz 1840965 RMD160 cb6ed25786fab3c7f9f0938fd146f28a2e661f57 SHA1 8fe11041881d53e3a256ddf915b577d658b7d4db SHA256 f474a3a685d4b018306bc15f24acf5f8cc990be0c0c48dabfaed5126ce4b06d7
EBUILD davical-0.9.8.ebuild 1700 RMD160 d554c18848a94696a0c83da4390adc71d84418f5 SHA1 92ea51d5570bacd9fe7c2ccdb56ca9da6b08be34 SHA256 3019b9a01153426395b0aa6d1c10fa634b1a86d173f9de364a657a2a98ef3789
MISC ChangeLog 2879 RMD160 dbf763794b1101e08242c76df5a40dc47325c7c5 SHA1 f92e463939887ce6414d9d70199ecf9977ad7835 SHA256 b993c1714bc426a4f418585aa30497e4738e8652374299dfcc1d404209683144
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42

View File

@ -0,0 +1,72 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit webapp depend.php
DESCRIPTION="A CalDAV and iCal server"
HOMEPAGE="http://davical.org/"
SRC_URI="http://debian.mcmillan.net.nz/packages/davical/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE="doc vhosts"
DEPEND="doc? ( dev-php/PEAR-PhpDocumentor )"
RDEPEND="www-servers/apache
dev-lang/php[pcre,pdo,postgres,xml]
app-admin/pwgen
>=dev-php/awl-0.39
dev-perl/yaml
dev-perl/DBI
dev-perl/DBD-Pg"
need_php5
need_httpd
src_compile() {
if use doc ; then
ebegin "Generating documentation"
phpdoc -c "docs/api/phpdoc.ini"
eend $? || die "Documentation failed to build"
fi
emake inc/always.php || die "emake failed"
scripts/po/rebuild-translations.sh
}
src_install() {
webapp_src_preinst
local docs="INSTALL README debian/README.Debian \
testing/README.regression_tests \
TODO debian/changelog"
dodoc-php ${docs} || die "dodoc failed"
einfo "Installing main files"
local dirs="htdocs inc locale"
insinto "${MY_HTDOCSDIR}"
doins -r ${dirs} || die "doins failed"
einfo "Installing sql files"
insinto "${MY_SQLSCRIPTSDIR}"
doins -r dba/* || die "doins failed"
if use doc ; then
einfo "Installing documentation"
dohtml -r "docs/api/" || die "dohtml failed"
dohtml -r "docs/website/" || die "dohtml failed"
fi
insinto /etc/${PN}
newins "${FILESDIR}/rscds.conf" calendar.example.com-conf.php \
|| die "newins failed"
webapp_postinst_txt en "${FILESDIR}/postinstall-en-${PV}.txt"
webapp_src_install
fperms +x "${MY_SQLSCRIPTSDIR}/create-database.sh"
fperms +x "${MY_SQLSCRIPTSDIR}/update-davical-database"
}