/[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.3 - (hide annotations) (download)
Fri Oct 9 22:35:19 2009 UTC (10 years, 10 months ago) by patrick
Branch: MAIN
Changes since 1.2: +8 -3 lines
Add usedep for erlang +ssl, fixes #287744
(Portage version: 2.2_rc44/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 patrick 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-db/couchdb/couchdb-0.9.1.ebuild,v 1.2 2009/09/19 11:25:56 maekke Exp $
4    
5     EAPI="2"
6 caleb 1.1
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 maekke 1.2 KEYWORDS="amd64 x86"
16 caleb 1.1 IUSE=""
17     RESTRICT="test mirror" #72375
18    
19     RDEPEND="dev-libs/icu
20 patrick 1.3 dev-lang/erlang[ssl]
21 caleb 1.1 >=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 patrick 1.3 src_configure() {
35 caleb 1.1 ./bootstrap
36     econf --with-erlang=/usr/lib/erlang/usr/include --prefix=/usr \
37     --localstatedir=/var || die "configure failed"
38 patrick 1.3 }
39    
40     src_compile() {
41 caleb 1.1 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