/[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.1 - (hide annotations) (download)
Sun Aug 2 13:47:57 2009 UTC (11 years, 1 month ago) by caleb
Branch: MAIN
Bump couchdb
(Portage version: 2.1.6.13/cvs/Linux i686)

1 caleb 1.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.0.ebuild,v 1.2 2009/07/10 15:56:53 caleb Exp $
4    
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     KEYWORDS="~x86 ~amd64"
14     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