diff options
author | Julian Ospald <hasufell@gentoo.org> | 2015-10-02 17:16:35 +0200 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2015-10-02 17:16:35 +0200 |
commit | d4ad69535bb8eea0f3043db48de819b3899d61e8 (patch) | |
tree | 213db7a76d691343849f5b9d99272559dd303cc3 /dev-db/couchdb | |
parent | dev-ruby/spring: version bump (diff) | |
download | gentoo-d4ad69535bb8eea0f3043db48de819b3899d61e8.tar.gz gentoo-d4ad69535bb8eea0f3043db48de819b3899d61e8.tar.bz2 gentoo-d4ad69535bb8eea0f3043db48de819b3899d61e8.zip |
dev-db/couchdb: add libressl support
Diffstat (limited to 'dev-db/couchdb')
-rw-r--r-- | dev-db/couchdb/couchdb-1.6.1-r2.ebuild | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/dev-db/couchdb/couchdb-1.6.1-r2.ebuild b/dev-db/couchdb/couchdb-1.6.1-r2.ebuild new file mode 100644 index 000000000000..e100d6b65028 --- /dev/null +++ b/dev-db/couchdb/couchdb-1.6.1-r2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib pax-utils user + +DESCRIPTION="Apache CouchDB is a distributed, fault-tolerant and schema-free document-oriented database." +HOMEPAGE="http://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[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}" +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' + epatch "${FILESDIR}/${PV}-erlang-18.patch" +} + +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" +} |