2015-03-13 15:23:30 +01:00
|
|
|
# Template file for 'couchdb'
|
|
|
|
pkgname=couchdb
|
|
|
|
version=1.6.1
|
2015-03-17 21:09:38 +01:00
|
|
|
revision=3
|
2015-03-13 15:23:30 +01:00
|
|
|
wrksrc="apache-couchdb-$version"
|
|
|
|
build_style=gnu-configure
|
|
|
|
conf_files="/etc/couchdb/default.ini /etc/couchdb/local.ini"
|
2015-03-17 21:09:38 +01:00
|
|
|
hostmakedepends="erlang pkg-config"
|
2015-03-27 10:50:40 +01:00
|
|
|
makedepends="libressl-devel icu-devel js-devel libcurl-devel"
|
2015-03-13 15:23:30 +01:00
|
|
|
depends="erlang"
|
|
|
|
short_desc="A document-oriented database"
|
|
|
|
maintainer="Gerardo Di Iorio <arete74@gmail.com>"
|
|
|
|
license="Apache-2.0"
|
|
|
|
homepage="http://couchdb.apache.org/"
|
2015-03-15 10:51:41 +01:00
|
|
|
distfiles="http://www.eu.apache.org/dist/couchdb/source/${version}/apache-couchdb-${version}.tar.gz"
|
2015-03-13 15:23:30 +01:00
|
|
|
checksum=5a601b173733ce3ed31b654805c793aa907131cd70b06d03825f169aa48c8627
|
2015-03-15 10:51:41 +01:00
|
|
|
|
2015-03-13 15:23:30 +01:00
|
|
|
system_accounts="couchdb"
|
2015-03-15 10:51:41 +01:00
|
|
|
couchdb_homedir="/var/lib/couchdb"
|
2015-03-13 15:23:30 +01:00
|
|
|
make_dirs="
|
|
|
|
/var/lib/couchdb 0700 couchdb couchdb
|
|
|
|
/var/log/couchdb 0750 couchdb couchdb"
|
|
|
|
|
2015-03-17 21:09:38 +01:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
makedepends+=" erlang"
|
|
|
|
configure_args="--with-erlang=${XBPS_CROSS_BASE}/usr/lib/erlang/usr/include"
|
|
|
|
fi
|
|
|
|
|
2015-03-15 10:51:41 +01:00
|
|
|
pre_configure() {
|
2015-03-13 15:23:30 +01:00
|
|
|
sed -i 's|-Werror||g' src/couchdb/priv/Makefile.*
|
2015-03-17 21:09:38 +01:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
sed -i '/FLAGS.*\(usr\|opt\)/s/.*/:/' configure
|
|
|
|
fi
|
2015-03-13 15:23:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vsv couchdb
|
|
|
|
}
|