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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Sep 9 07:23:52 2013 UTC (6 years, 9 months ago) by djc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Remove old versions.

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

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.0.ebuild,v 1.6 2013/05/28 07:42:53 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-16[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
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_prepare() {
34 sed -i ./src/couchdb/priv/Makefile.* -e 's|-Werror||g'
35 }
36
37 src_configure() {
38 econf \
39 --with-erlang=/usr/lib/erlang/usr/include \
40 --localstatedir=/var \
41 --with-js-lib=/usr/lib
42 # bug 296609, upstream bug #COUCHDB-621
43 sed -e "s#localdocdir = /usr/share/doc/couchdb#localdocdir = /usr/share/doc/${PF}#" -i Makefile || die "sed failed"
44 }
45
46 src_compile() {
47 emake
48 # bug 442616
49 pax-mark mr src/couchdb/priv/couchjs
50 }
51
52 src_test() {
53 emake check
54 }
55
56 src_install() {
57 emake DESTDIR="${D}" install
58
59 fowners couchdb:couchdb \
60 /var/lib/couchdb \
61 /var/log/couchdb
62
63 for f in /etc/couchdb/*.ini ; do
64 fowners root:couchdb ${f#"${D}"}
65 fperms 660 ${f#"${D}"}
66 done
67 fperms 664 /etc/couchdb/default.ini
68
69 newinitd "${FILESDIR}/couchdb.init-4" couchdb
70 newconfd "${FILESDIR}/couchdb.conf-2" couchdb
71
72 sed -i -e "s:LIBDIR:$(get_libdir):" "${D}/etc/conf.d/couchdb"
73 }

  ViewVC Help
Powered by ViewVC 1.1.20