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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Dec 24 15:27:53 2009 UTC (10 years, 7 months ago) by djc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Prune older versions of dev-db/couchdb.
(Portage version: 2.1.6.13/cvs/Linux x86_64)

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.9.1.ebuild,v 1.3 2009/10/09 22:35:19 patrick Exp $
4
5 EAPI="2"
6
7 inherit eutils distutils multilib
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 x86"
16 IUSE=""
17 RESTRICT="test mirror" #72375
18
19 RDEPEND="dev-libs/icu
20 dev-lang/erlang[ssl]
21 >=dev-libs/openssl-0.9.8j
22 >=net-misc/curl-7.18.2
23 dev-lang/spidermonkey"
24
25 DEPEND="${RDEPEND}"
26
27 S="${WORKDIR}/apache-${P}"
28
29 pkg_setup() {
30 enewgroup couchdb
31 enewuser couchdb -1 /bin/bash /var/lib/couchdb couchdb
32 }
33
34 src_configure() {
35 ./bootstrap
36 econf --with-erlang=/usr/lib/erlang/usr/include --prefix=/usr \
37 --localstatedir=/var || die "configure failed"
38 }
39
40 src_compile() {
41 emake || die "make failed"
42 }
43
44 src_install() {
45 emake DESTDIR="${D}" install || die "install failed"
46
47 insinto /var/run/couchdb
48
49 fowners couchdb:couchdb \
50 /var/run/couchdb \
51 /var/lib/couchdb \
52 /var/log/couchdb
53
54 newinitd "${FILESDIR}/couchdb.init-0.9" couchdb || die
55 newconfd "${FILESDIR}/couchdb.conf-0.9" couchdb || die
56
57 sed -i -e "s:LIBDIR:$(get_libdir):" "${D}/etc/conf.d/couchdb"
58 }

  ViewVC Help
Powered by ViewVC 1.1.20