diff options
Diffstat (limited to 'dev-db/couchdb')
-rw-r--r-- | dev-db/couchdb/ChangeLog | 7 | ||||
-rw-r--r-- | dev-db/couchdb/couchdb-1.2.0.ebuild | 62 |
2 files changed, 68 insertions, 1 deletions
diff --git a/dev-db/couchdb/ChangeLog b/dev-db/couchdb/ChangeLog index 9352e8dc3f63..22c25d09b195 100644 --- a/dev-db/couchdb/ChangeLog +++ b/dev-db/couchdb/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-db/couchdb # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/couchdb/ChangeLog,v 1.53 2012/02/24 14:24:07 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/couchdb/ChangeLog,v 1.54 2012/04/09 08:10:00 djc Exp $ + +*couchdb-1.2.0 (09 Apr 2012) + + 09 Apr 2012; Dirkjan Ochtman <djc@gentoo.org> +couchdb-1.2.0.ebuild: + Version bump to 1.2.0. 24 Feb 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> couchdb-1.1.1.ebuild: x86 stable wrt bug #404087 diff --git a/dev-db/couchdb/couchdb-1.2.0.ebuild b/dev-db/couchdb/couchdb-1.2.0.ebuild new file mode 100644 index 000000000000..ab12c53f2756 --- /dev/null +++ b/dev-db/couchdb/couchdb-1.2.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/couchdb/couchdb-1.2.0.ebuild,v 1.1 2012/04/09 08:10:00 djc Exp $ + +EAPI="2" + +inherit eutils + +DESCRIPTION="Apache CouchDB is a distributed, fault-tolerant and schema-free document-oriented database." +HOMEPAGE="http://couchdb.apache.org/" +SRC_URI="mirror://apache/couchdb/releases/${PV}/apache-${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="test" + +RDEPEND=">=dev-libs/icu-4.3.1 + dev-lang/erlang[ssl] + >=dev-libs/openssl-0.9.8j + >=net-misc/curl-7.18.2 + dev-lang/spidermonkey" + +DEPEND="${RDEPEND}" + +S="${WORKDIR}/apache-${P}" + +pkg_setup() { + enewgroup couchdb + enewuser couchdb -1 -1 /var/lib/couchdb couchdb +} + +src_configure() { + econf \ + --with-erlang=/usr/lib/erlang/usr/include \ + --localstatedir=/var \ + --with-js-lib=/usr/lib + # bug 296609, upstream bug #COUCHDB-621 + sed -e "s#localdocdir = /usr/share/doc/couchdb#localdocdir = /usr/share/doc/${PF}#" -i Makefile || die "sed failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "install failed" + + insinto /var/run/couchdb + + fowners couchdb:couchdb \ + /var/run/couchdb \ + /var/lib/couchdb \ + /var/log/couchdb + + for f in /etc/couchdb/*.ini ; do + fowners root:couchdb ${f#"${D}"} + fperms 660 ${f#"${D}"} + done + fperms 664 /etc/couchdb/default.ini + + newinitd "${FILESDIR}/couchdb.init-2" couchdb || die + newconfd "${FILESDIR}/couchdb.conf-0.10" couchdb || die + + sed -i -e "s:LIBDIR:$(get_libdir):" "${D}/etc/conf.d/couchdb" +} |