/[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.3 - (hide annotations) (download)
Sun Dec 22 16:39:49 2013 UTC (6 years, 7 months ago) by pacho
Branch: MAIN
Changes since 1.2: +2 -2 lines
amd64 stable, bug #490826

(Portage version: 2.2.7/cvs/Linux x86_64, RepoMan options: --include-arches="amd64", signed Manifest commit with key A188FBD4)

1 djc 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 pacho 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-db/couchdb/couchdb-1.4.0.ebuild,v 1.2 2013/12/21 16:39:03 ago Exp $
4 djc 1.1
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 pacho 1.3 KEYWORDS="amd64 ppc ~x86"
16 djc 1.1 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