/[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.1 - (hide annotations) (download)
Tue Oct 13 12:44:57 2009 UTC (10 years, 10 months ago) by djc
Branch: MAIN
Add dev-db/couchdb-0.10.0.
(Portage version: 2.1.6.13/cvs/Linux x86_64)

1 djc 1.1 # Copyright 1999-2009 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: $
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     econf --with-erlang=/usr/lib/erlang/usr/include --prefix=/usr \
36     --localstatedir=/var || die "configure failed"
37     }
38    
39     src_compile() {
40     emake || die "make failed"
41     }
42    
43     src_install() {
44     emake DESTDIR="${D}" install || die "install failed"
45    
46     insinto /var/run/couchdb
47    
48     fowners couchdb:couchdb \
49     /var/run/couchdb \
50     /var/lib/couchdb \
51     /var/log/couchdb
52    
53     newinitd "${FILESDIR}/couchdb.init-0.10" couchdb || die
54     newconfd "${FILESDIR}/couchdb.conf-0.10" couchdb || die
55    
56     sed -i -e "s:LIBDIR:$(get_libdir):" "${D}/etc/conf.d/couchdb"
57     }

  ViewVC Help
Powered by ViewVC 1.1.20