# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 101591 2013-01-14 11:21:43Z ryandesign@macports.org $ PortSystem 1.0 PortGroup active_variants 1.1 name couchdb-devel conflicts couchdb svn.revision 1177555 version 1.3.0a${svn.revision} revision 1 categories databases platforms darwin description CouchDB is a document database server maintainers nomaintainer long_description ${description} with a restful HTTP API, capable of \ storing arbitrary JSON documents, building powerful data views, \ defined in JavaScript, and processed in parallel using Map/Reduce. \ It leaves out SQL and transactions for simplicity's sake, to \ improve scalability and to relax users' lives. homepage http://couchdb.apache.org/ master_sites ${homepage} distname couchdb-${version} fetch.type svn svn.url http://svn.apache.org/repos/asf/couchdb/trunk worksrcdir trunk depends_lib port:automake \ port:autoconf \ port:libtool \ port:help2man \ port:icu \ port:spidermonkey \ port:erlang # erlang is not universal universal_variant no patchfiles patch-automake-1.13.diff \ patch-configure.ac.diff \ patch-src-couchdb-priv-Makefile.am.diff require_active_variants erlang ssl pre-configure { system "cd ${worksrcpath}; ./bootstrap" } set dbgroup couchdb set dbuser couchdb set logdir ${prefix}/var/log/couchdb set dbdir ${prefix}/var/lib/couchdb set plistdir /Library/LaunchDaemons startupitem.uniquename org.apache.couchdb set plist ${startupitem.uniquename}.plist post-destroot { addgroup ${dbgroup} adduser ${dbuser} gid=[existsgroup ${dbgroup}] xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d \ ${destroot}${dbdir} \ ${destroot}${logdir} \ ${destroot}${plistdir} destroot.keepdirs-append \ ${destroot}${dbdir} \ ${destroot}${logdir} system "cd ${destroot}${plistdir} && ln -sf ${prefix}${plistdir}/${plist}" } notes " Changes in CouchDB r753448 make older database files incompatible.\ See http://wiki.apache.org/couchdb/BreakingChanges for details. Run the following command to load the CouchDB launchd plist\ in order to start the service now and at system startup: sudo launchctl load -w ${plistdir}/${plist} " livecheck.type regex livecheck.url http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/ livecheck.version ${svn.revision} livecheck.regex (\[0-9\]+)