diff options
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/couchdb/Manifest | 1 | ||||
-rw-r--r-- | dev-db/couchdb/couchdb-1.7.1.ebuild | 77 |
2 files changed, 78 insertions, 0 deletions
diff --git a/dev-db/couchdb/Manifest b/dev-db/couchdb/Manifest index dc6daa85403..680b7e0153e 100644 --- a/dev-db/couchdb/Manifest +++ b/dev-db/couchdb/Manifest @@ -1 +1,2 @@ DIST apache-couchdb-1.6.1.tar.gz 12085350 SHA256 5a601b173733ce3ed31b654805c793aa907131cd70b06d03825f169aa48c8627 SHA512 70630a27dec7281fa5bdca0601796baa28fba1d7c9975d8f38b9623bbeedd62b26081118357886c7be00b7769360238b2c99695234e13cecb15a210eb986eadc WHIRLPOOL 5776fe139db54e5ec285ef9882f5164a42a499bab312d66c0edd5314dd1915827a7cf7df02cd5df85c437bf3f70096cb101748956d639e8e80ffd0bb0b79197a +DIST apache-couchdb-1.7.1.tar.gz 9963069 SHA256 91200aa6fbc6fa5e2f3d78ef40e39d8c1ec7c83ea1c2cd730d270658735b2cad SHA512 cd7417ef4b1eaeb1fe4251b559d904238fd25881c542f1498e6e9f1c4a55a79e34e06e711f90ce39e5e65fcac8be9c611943b8ed57d4a7465859b5811ac0a21f WHIRLPOOL b4cbed19cbb9f5025215638b11c4990c26d831504f46009bba436bd66b3f4ae93588b65d3f3984486e5c20b451a5bd148f16a71a02b01f454d64f859c53a425b diff --git a/dev-db/couchdb/couchdb-1.7.1.ebuild b/dev-db/couchdb/couchdb-1.7.1.ebuild new file mode 100644 index 00000000000..ab2c51842c7 --- /dev/null +++ b/dev-db/couchdb/couchdb-1.7.1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools eutils multilib pax-utils user + +DESCRIPTION="Distributed, fault-tolerant and schema-free document-oriented database" +HOMEPAGE="https://couchdb.apache.org/" +SRC_URI="mirror://apache/couchdb/source/${PV}/apache-${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="libressl selinux test" + +RDEPEND=">=dev-libs/icu-4.3.1:= + <dev-lang/erlang-20.0[ssl] + !libressl? ( >=dev-libs/openssl-0.9.8j:0 ) + libressl? ( dev-libs/libressl ) + >=net-misc/curl-7.18.2 + <dev-lang/spidermonkey-1.8.7 + selinux? ( sec-policy/selinux-couchdb )" + +DEPEND="${RDEPEND} + sys-devel/autoconf-archive" +RESTRICT=test + +S="${WORKDIR}/apache-${P}" + +pkg_setup() { + enewgroup couchdb + enewuser couchdb -1 -1 /var/lib/couchdb couchdb +} + +src_prepare() { + sed -i ./src/couchdb/priv/Makefile.* -e 's|-Werror||g' + eautoreconf +} + +src_configure() { + econf \ + --with-erlang="${EPREFIX}"/usr/$(get_libdir)/erlang/usr/include \ + --localstatedir="${EPREFIX}"/var \ + --with-js-lib="${EPREFIX}"/usr/$(get_libdir) + # bug 296609, upstream bug #COUCHDB-621 + sed -e "s#localdocdir = /usr/share/doc/couchdb#localdocdir = "${EPREFIX}"/usr/share/doc/${PF}#" -i Makefile || die "sed failed" +} + +src_compile() { + emake + # bug 442616 + pax-mark mr src/couchdb/priv/couchjs +} + +src_test() { + emake distcheck +} + +src_install() { + emake DESTDIR="${D}" install + + fowners couchdb:couchdb \ + /var/lib/couchdb \ + /var/log/couchdb + + for f in "${ED}"/etc/couchdb/*.ini ; do + fowners root:couchdb "${f#${ED}}" + fperms 660 "${f#${ED}}" + done + fperms 664 /etc/couchdb/default.ini + + newinitd "${FILESDIR}/couchdb.init-4" couchdb + newconfd "${FILESDIR}/couchdb.conf-2" couchdb + + sed -i -e "s:LIBDIR:$(get_libdir):" "${ED}/etc/conf.d/couchdb" +} |