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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Mon Apr 9 08:11:34 2012 UTC (8 years, 3 months ago) by djc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old couchdb release versions.

(Portage version: 2.1.10.54/cvs/Linux x86_64)

1 djc 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 djc 1.2 # $Header: /var/cvsroot/gentoo-x86/dev-db/couchdb/couchdb-1.1.0.ebuild,v 1.1 2011/06/06 12:53:05 djc Exp $
4 djc 1.1
5     EAPI="2"
6    
7     inherit eutils
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 ~ppc ~x86"
16     IUSE="test"
17    
18     RDEPEND=">=dev-libs/icu-4.3.1
19     dev-lang/erlang[ssl]
20     >=dev-libs/openssl-0.9.8j
21     >=net-misc/curl-7.18.2
22     dev-lang/spidermonkey"
23    
24     DEPEND="${RDEPEND}"
25    
26     S="${WORKDIR}/apache-${P}"
27    
28     pkg_setup() {
29     enewgroup couchdb
30     enewuser couchdb -1 -1 /var/lib/couchdb couchdb
31     }
32    
33     src_configure() {
34     econf \
35     --with-erlang=/usr/lib/erlang/usr/include \
36     --localstatedir=/var \
37     --with-js-lib=/usr/lib
38     # bug 296609, upstream bug #COUCHDB-621
39     sed -e "s#localdocdir = /usr/share/doc/couchdb#localdocdir = /usr/share/doc/${PF}#" -i Makefile || die "sed failed"
40     }
41    
42     src_install() {
43     emake DESTDIR="${D}" install || die "install failed"
44    
45     insinto /var/run/couchdb
46    
47     fowners couchdb:couchdb \
48     /var/run/couchdb \
49     /var/lib/couchdb \
50     /var/log/couchdb
51    
52     for f in /etc/couchdb/*.ini ; do
53     fowners root:couchdb ${f#"${D}"}
54     fperms 660 ${f#"${D}"}
55     done
56     fperms 664 /etc/couchdb/default.ini
57    
58     newinitd "${FILESDIR}/couchdb.init-0.10" couchdb || die
59     newconfd "${FILESDIR}/couchdb.conf-0.10" couchdb || die
60    
61     sed -i -e "s:LIBDIR:$(get_libdir):" "${D}/etc/conf.d/couchdb"
62     }

  ViewVC Help
Powered by ViewVC 1.1.20