/[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.2 - (hide annotations) (download)
Sat Sep 19 11:25:56 2009 UTC (10 years, 10 months ago) by maekke
Branch: MAIN
Changes since 1.1: +2 -2 lines
amd64/x86 stable, bug #285176
(Portage version: 2.2_rc40/cvs/Linux x86_64)

1 caleb 1.1 # Copyright 1999-2009 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 maekke 1.2 # $Header: /var/cvsroot/gentoo-x86/dev-db/couchdb/couchdb-0.9.1.ebuild,v 1.1 2009/08/02 13:47:57 caleb Exp $
4 caleb 1.1
5     inherit eutils distutils multilib
6    
7     DESCRIPTION="Apache CouchDB is a distributed, fault-tolerant and schema-free document-oriented database."
8     HOMEPAGE="http://couchdb.apache.org/"
9     SRC_URI="mirror://apache/couchdb/${PV}/apache-${P}.tar.gz"
10    
11     LICENSE="Apache-2.0"
12     SLOT="0"
13 maekke 1.2 KEYWORDS="amd64 x86"
14 caleb 1.1 IUSE=""
15     RESTRICT="test mirror" #72375
16    
17     RDEPEND="dev-libs/icu
18     dev-lang/erlang
19     >=dev-libs/openssl-0.9.8j
20     >=net-misc/curl-7.18.2
21     dev-lang/spidermonkey"
22    
23     DEPEND="${RDEPEND}"
24    
25     S="${WORKDIR}/apache-${P}"
26    
27     pkg_setup() {
28     enewgroup couchdb
29     enewuser couchdb -1 /bin/bash /var/lib/couchdb couchdb
30     }
31    
32     src_compile() {
33     ./bootstrap
34     econf --with-erlang=/usr/lib/erlang/usr/include --prefix=/usr \
35     --localstatedir=/var || die "configure failed"
36     emake || die "make failed"
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.9" couchdb || die
50     newconfd "${FILESDIR}/couchdb.conf-0.9" 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