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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Jul 12 15:33:51 2015 UTC (4 years, 11 months ago) by djc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Remove old versions

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 30380381)

1 # Copyright 1999-2014 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.6.0.ebuild,v 1.4 2014/11/02 08:12:10 swift 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="selinux test"
17
18 CDEPEND=">=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="${CDEPEND}"
25 RDEPEND="${CDEPEND}
26 selinux? ( sec-policy/selinux-couchdb )"
27 RESTRICT=test
28
29 S="${WORKDIR}/apache-${P}"
30
31 pkg_setup() {
32 enewgroup couchdb
33 enewuser couchdb -1 -1 /var/lib/couchdb couchdb
34 }
35
36 src_prepare() {
37 sed -i ./src/couchdb/priv/Makefile.* -e 's|-Werror||g'
38 }
39
40 src_configure() {
41 econf \
42 --with-erlang=/usr/lib/erlang/usr/include \
43 --localstatedir=/var \
44 --with-js-lib=/usr/lib
45 # bug 296609, upstream bug #COUCHDB-621
46 sed -e "s#localdocdir = /usr/share/doc/couchdb#localdocdir = /usr/share/doc/${PF}#" -i Makefile || die "sed failed"
47 }
48
49 src_compile() {
50 emake
51 # bug 442616
52 pax-mark mr src/couchdb/priv/couchjs
53 }
54
55 src_test() {
56 emake distcheck
57 }
58
59 src_install() {
60 emake DESTDIR="${D}" install
61
62 fowners couchdb:couchdb \
63 /var/lib/couchdb \
64 /var/log/couchdb
65
66 for f in "${D}"/etc/couchdb/*.ini ; do
67 fowners root:couchdb "${f#${D}}"
68 fperms 660 "${f#${D}}"
69 done
70 fperms 664 /etc/couchdb/default.ini
71
72 newinitd "${FILESDIR}/couchdb.init-4" couchdb
73 newconfd "${FILESDIR}/couchdb.conf-2" couchdb
74
75 sed -i -e "s:LIBDIR:$(get_libdir):" "${D}/etc/conf.d/couchdb"
76 }

  ViewVC Help
Powered by ViewVC 1.1.20