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
Line 
1# $Id: Portfile 69779 2010-07-16 11:14:07Z jwa@macports.org $
2
3PortSystem 1.0
4
5name            couchdb
6version         1.0.0
7
8categories      databases
9platforms       darwin
10
11description     CouchDB is a document database server
12maintainers     jwa
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.
18
19homepage        http://couchdb.apache.org/
20master_sites    apache
21master_sites.mirror_subdir      ${name}/${version}/
22distname        apache-${name}-${version}
23
24checksums           md5     71e89c4b21c62417f2f413d74a38f079 \
25                    sha1    72fd5a4679f73f9e55414caf0fab696b320f0ec3 \
26                    rmd160  d32a5e16f505cb428ac573bad2c842409ea86244
27
28depends_lib     port:automake \
29    port:autoconf \
30    port:libtool \
31    port:help2man \
32    port:icu \
33    port:spidermonkey \
34    port:curl \
35    port:erlang
36
37set dbgroup couchdb
38set dbuser couchdb
39set logdir ${prefix}/var/log/couchdb
40set dbdir ${prefix}/var/lib/couchdb
41set plistdir /Library/LaunchDaemons
42startupitem.uniquename org.apache.couchdb
43
44post-destroot {
45    addgroup ${dbgroup}
46    adduser ${dbuser} gid=[existsgroup ${dbgroup}]
47    xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d \
48        ${destroot}${dbdir} \
49        ${destroot}${logdir} \
50        ${destroot}${plistdir}
51    destroot.keepdirs-append \
52        ${destroot}${dbdir} \
53        ${destroot}${logdir}
54    set plist org.apache.couchdb.plist
55    system "cd ${destroot}/Library/LaunchDaemons && ln -sf ${prefix}/Library/LaunchDaemons/${plist}"
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
59}
60
61post-activate {
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 "########################################################################"
68}
69
70livecheck.type  regex
71livecheck.url   http://couchdb.apache.org/downloads.html
72livecheck.regex apache-${name}-(\[0-9.\]+\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.