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

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

drop maintainership

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 66380 2010-04-10 20:29:38Z febeling@macports.org $
2
3PortSystem 1.0
4
5name            couchdb
6version         0.11.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     c1784e3850da01dc37dad20c5b1a85f8 \
25                    sha1    b5b84e1d8a082960df09df7e4eda664b5e6c59d7 \
26                    rmd160  cd52e0f41a67b1cba9792e2ac11c74cad5c6a1a9
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 "# Changes in CouchDB 0.10.0 make 0.9.1 database files incompatible."
64    ui_msg "# See http://wiki.apache.org/couchdb/BreakingChanges for details"
65    ui_msg "#"
66    ui_msg "# Run the following command to install the CouchDB launchd"
67    ui_msg "# startup item in order to start and re-start service automatically:"
68    ui_msg "#"
69    ui_msg "# sudo launchctl load -w /Library/LaunchDaemons/org.apache.couchdb.plist"
70    ui_msg "########################################################################"
71}
72
73livecheck.type  regex
74livecheck.url   http://couchdb.apache.org/downloads.html
75livecheck.regex apache-${name}-(0.\[0-9\]+.\[0-9\])
Note: See TracBrowser for help on using the repository browser.