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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Sep 9 07:32:02 2013 UTC (6 years, 11 months ago) by djc
Branch: MAIN
Version bump couchdb to 1.4.0.

(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 6B065BFB)

1 djc 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/dev-db/couchdb/couchdb-1.3.1.ebuild,v 1.1 2013/06/28 14:06:16 djc Exp $
4    
5     EAPI=5
6    
7     inherit eutils multilib pax-utils user
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/source/${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:0
21     >=net-misc/curl-7.18.2
22     <dev-lang/spidermonkey-1.8.7"
23    
24     DEPEND="${RDEPEND}"
25     RESTRICT=test
26    
27     S="${WORKDIR}/apache-${P}"
28    
29     pkg_setup() {
30     enewgroup couchdb
31     enewuser couchdb -1 -1 /var/lib/couchdb couchdb
32     }
33    
34     src_prepare() {
35     sed -i ./src/couchdb/priv/Makefile.* -e 's|-Werror||g'
36     }
37    
38     src_configure() {
39     econf \
40     --with-erlang=/usr/lib/erlang/usr/include \
41     --localstatedir=/var \
42     --with-js-lib=/usr/lib
43     # bug 296609, upstream bug #COUCHDB-621
44     sed -e "s#localdocdir = /usr/share/doc/couchdb#localdocdir = /usr/share/doc/${PF}#" -i Makefile || die "sed failed"
45     }
46    
47     src_compile() {
48     emake
49     # bug 442616
50     pax-mark mr src/couchdb/priv/couchjs
51     }
52    
53     src_test() {
54     emake distcheck
55     }
56    
57     src_install() {
58     emake DESTDIR="${D}" install
59    
60     fowners couchdb:couchdb \
61     /var/lib/couchdb \
62     /var/log/couchdb
63    
64     for f in "${D}"/etc/couchdb/*.ini ; do
65     fowners root:couchdb "${f#${D}}"
66     fperms 660 "${f#${D}}"
67     done
68     fperms 664 /etc/couchdb/default.ini
69    
70     newinitd "${FILESDIR}/couchdb.init-4" couchdb
71     newconfd "${FILESDIR}/couchdb.conf-2" couchdb
72    
73     sed -i -e "s:LIBDIR:$(get_libdir):" "${D}/etc/conf.d/couchdb"
74     }

  ViewVC Help
Powered by ViewVC 1.1.20