/[gentoo-x86]/dev-db/couchdb/couchdb-0.10.0.ebuild
Gentoo

Contents of /dev-db/couchdb/couchdb-0.10.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Oct 30 20:56:05 2009 UTC (10 years, 9 months ago) by volkmar
Branch: MAIN
Changes since 1.2: +2 -2 lines
Keywording for ppc.
(Portage version: 14478-svn/cvs/Linux ppc)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/couchdb/couchdb-0.10.0.ebuild,v 1.2 2009/10/15 13:37:35 djc Exp $
4
5 EAPI="2"
6
7 inherit eutils
8
9 DESCRIPTION="Apache CouchDB is a distributed, fault-tolerant and schema-free document-oriented database."
10 HOMEPAGE="http://couchdb.apache.org/"
11 SRC_URI="mirror://apache/couchdb/${PV}/apache-${P}.tar.gz"
12
13 LICENSE="Apache-2.0"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~x86"
16 IUSE=""
17
18 RDEPEND="dev-libs/icu
19 dev-lang/erlang[ssl]
20 >=dev-libs/openssl-0.9.8j
21 >=net-misc/curl-7.18.2
22 dev-lang/spidermonkey"
23
24 DEPEND="${RDEPEND}"
25
26 S="${WORKDIR}/apache-${P}"
27
28 pkg_setup() {
29 enewgroup couchdb
30 enewuser couchdb -1 /bin/bash /var/lib/couchdb couchdb
31 }
32
33 src_configure() {
34 econf \
35 --with-erlang=/usr/lib/erlang/usr/include \
36 --localstatedir=/var
37 }
38
39 src_install() {
40 emake DESTDIR="${D}" install || die "install failed"
41
42 insinto /var/run/couchdb
43
44 fowners couchdb:couchdb \
45 /var/run/couchdb \
46 /var/lib/couchdb \
47 /var/log/couchdb
48
49 newinitd "${FILESDIR}/couchdb.init-0.10" couchdb || die
50 newconfd "${FILESDIR}/couchdb.conf-0.10" couchdb || die
51
52 sed -i -e "s:LIBDIR:$(get_libdir):" "${D}/etc/conf.d/couchdb"
53 }

  ViewVC Help
Powered by ViewVC 1.1.20