/[gentoo-x86]/www-apps/davical/davical-1.1.0.ebuild
Gentoo

Contents of /www-apps/davical/davical-1.1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Jun 26 09:39:33 2012 UTC (2 years, 1 month ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Bump for #423603

(Portage version: 2.2.0_alpha113/cvs/Linux x86_64)

1 patrick 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/www-apps/davical/davical-1.0.2-r1.ebuild,v 1.1 2012/03/14 06:46:26 patrick Exp $
4    
5     EAPI=2
6    
7     inherit depend.php webapp
8    
9     DESCRIPTION="A CalDAV and CardDAV Server"
10     HOMEPAGE="http://davical.org/"
11     SRC_URI="http://debian.mcmillan.net.nz/packages/${PN}/${P}.tar.gz"
12    
13     LICENSE="GPL-2"
14     KEYWORDS="~amd64 ~x86"
15     IUSE="doc"
16    
17     DEPEND="doc? ( dev-php/PEAR-PhpDocumentor )"
18     RDEPEND="app-admin/pwgen
19     dev-lang/php[calendar,curl,pdo,postgres,xml]
20     dev-perl/DBI
21     dev-perl/DBD-Pg
22     dev-perl/yaml
23     >=dev-php/awl-0.51
24     www-servers/apache"
25    
26     need_php5
27     need_httpd
28    
29     src_prepare() {
30     epatch "${FILESDIR}/awl_location.patch"
31     epatch "${FILESDIR}/inc_path.patch"
32     }
33    
34     src_compile() {
35     if use doc ; then
36     einfo "Generating documentation"
37     phpdoc -q -c "docs/api/phpdoc.ini"\
38     || die "Documentation failed to build"
39     fi
40     emake built-po || die "emake failed"
41     }
42    
43     src_install() {
44     webapp_src_preinst
45    
46     dodoc-php INSTALL README debian/README.Debian \
47     testing/README.regression_tests TODO debian/changelog \
48     || die "dodoc failed"
49    
50     einfo "Installing web files"
51     insinto "${MY_HTDOCSDIR}"
52     doins -r htdocs/* htdocs/.htaccess || die "doins failed"
53    
54     einfo "Installing main files and i18n"
55     insinto "${MY_HOSTROOTDIR}/${PN}"
56     doins -r inc locale || die "doins failed"
57     rm "${D}/${MY_HOSTROOTDIR}/${PN}/inc/always.php.in" || die
58    
59     einfo "Installing sql files"
60     insinto "${MY_SQLSCRIPTSDIR}"
61     doins -r dba/* || die "doins failed"
62    
63     if use doc ; then
64     einfo "Installing documentation"
65     dohtml -r docs/api/ docs/website/ || die "dohtml failed"
66     fi
67    
68     insinto /etc/${PN}
69     doins config/* "${FILESDIR}/vhost-example" \
70     || die "newins failed"
71    
72     webapp_postinst_txt en "${FILESDIR}/postinstall-en.txt"
73     webapp_src_install
74    
75     fperms +x "${MY_SQLSCRIPTSDIR}/create-database.sh"
76     fperms +x "${MY_SQLSCRIPTSDIR}/update-davical-database"
77     }

  ViewVC Help
Powered by ViewVC 1.1.20