source: trunk/dports/databases/couchdb/Portfile @ 69779

Last change on this file since 69779 was 69779, checked in by jwa@…, 10 years ago

update to 1.0.0, closing #25672

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
RevLine 
[31356]1# $Id: Portfile 69779 2010-07-16 11:14:07Z jwa@macports.org $
[31283]2
3PortSystem 1.0
4
[32482]5name            couchdb
[69779]6version         1.0.0
[32482]7
8categories      databases
9platforms       darwin
10
[48948]11description     CouchDB is a document database server
[66380]12maintainers     jwa
[48948]13long_description  ${description} with a restful HTTP API, capable of \
14        storing arbitrary JSON documents, building powerful data views, \
15        defined in JavaScript, and processed in parallel using Map/Reduce. \
16        It leaves out SQL and transactions for simplicity's sake, to \
17        improve scalability and to relax users' lives.
[32482]18
[47309]19homepage        http://couchdb.apache.org/
[37999]20master_sites    apache
[48948]21master_sites.mirror_subdir      ${name}/${version}/
22distname        apache-${name}-${version}
[31283]23
[69779]24checksums           md5     71e89c4b21c62417f2f413d74a38f079 \
25                    sha1    72fd5a4679f73f9e55414caf0fab696b320f0ec3 \
26                    rmd160  d32a5e16f505cb428ac573bad2c842409ea86244
[65949]27
[31283]28depends_lib     port:automake \
29    port:autoconf \
30    port:libtool \
31    port:help2man \
32    port:icu \
[37999]33    port:spidermonkey \
[61600]34    port:curl \
[31283]35    port:erlang
36
[32482]37set dbgroup couchdb
38set dbuser couchdb
39set logdir ${prefix}/var/log/couchdb
40set dbdir ${prefix}/var/lib/couchdb
[47694]41set plistdir /Library/LaunchDaemons
[65218]42startupitem.uniquename org.apache.couchdb
[32482]43
[47694]44post-destroot {
[32482]45    addgroup ${dbgroup}
46    adduser ${dbuser} gid=[existsgroup ${dbgroup}]
[47309]47    xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d \
48        ${destroot}${dbdir} \
[47694]49        ${destroot}${logdir} \
50        ${destroot}${plistdir}
[47309]51    destroot.keepdirs-append \
52        ${destroot}${dbdir} \
53        ${destroot}${logdir}
[47694]54    set plist org.apache.couchdb.plist
[48980]55    system "cd ${destroot}/Library/LaunchDaemons && ln -sf ${prefix}/Library/LaunchDaemons/${plist}"
[60066]56# the following patches can be removed after next version
57    reinplace "s;`/opt/local/bin/icu-config --invoke`;;" ${destroot}/${prefix}/bin/couchdb
58    reinplace "s;^.*DYLD_LIBRARY_PATH.*$;;g" ${destroot}/${prefix}/Library/LaunchDaemons/org.apache.couchdb.plist
[31283]59}
60
[48958]61post-activate {
[59981]62    ui_msg "########################################################################"
63    ui_msg "# Run the following command to install the CouchDB launchd"
64    ui_msg "# startup item in order to start and re-start service automatically:"
65    ui_msg "#"
66    ui_msg "# sudo launchctl load -w /Library/LaunchDaemons/org.apache.couchdb.plist"
67    ui_msg "########################################################################"
[48958]68}
69
[57375]70livecheck.type  regex
[47694]71livecheck.url   http://couchdb.apache.org/downloads.html
[69779]72livecheck.regex apache-${name}-(\[0-9.\]+\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.