source: trunk/dports/databases/couchdb-devel/Portfile @ 57375

Last change on this file since 57375 was 57375, checked in by ryandesign@…, 11 years ago

Change deprecated livecheck.check to livecheck.type
See http://lists.macosforge.org/pipermail/macports-dev/2009-August/009699.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                couchdb-devel
6svn.tag             799093
7version             0.10.0r${svn.tag}
8
9categories          databases
10platforms           darwin
11
12description         CouchDB is a document database server
13maintainers         jwa febeling
14long_description  ${description} with a restful HTTP API, capable of \
15        storing arbitrary JSON documents, building powerful data views, \
16        defined in JavaScript, and processed in parallel using Map/Reduce. \
17        It leaves out SQL and transactions for simplicity's sake, to \
18        improve scalability and to relax users' lives.
19
20homepage            http://couchdb.apache.org/
21master_sites        ${homepage}
22
23distname            couchdb-${version}
24fetch.type          svn
25svn.url             http://svn.apache.org/repos/asf/couchdb/trunk
26worksrcdir          trunk
27
28depends_lib     port:automake \
29    port:autoconf \
30    port:libtool \
31    port:help2man \
32    port:icu \
33    port:spidermonkey \
34    port:erlang
35
36pre-configure {
37    system "cd ${worksrcpath}; ./bootstrap"
38}
39
40set dbgroup couchdb
41set dbuser couchdb
42set logdir ${prefix}/var/log/couchdb
43set dbdir ${prefix}/var/lib/couchdb
44set plistdir /Library/LaunchDaemons
45
46post-destroot {
47    addgroup ${dbgroup}
48    adduser ${dbuser} gid=[existsgroup ${dbgroup}]
49    xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d \
50        ${destroot}${dbdir} \
51        ${destroot}${logdir} \
52        ${destroot}${plistdir}
53    destroot.keepdirs-append \
54        ${destroot}${dbdir} \
55        ${destroot}${logdir}
56    set plist org.apache.couchdb.plist
57    system "cd ${destroot}/Library/LaunchDaemons && ln -sf ${prefix}/Library/LaunchDaemons/${plist}"
58}
59
60post-activate {
61        ui_msg "########################################################################"
62        ui_msg "# Changes in CouchDB r753448 make older database files incompatible."
63        ui_msg "# See http://wiki.apache.org/couchdb/BreakingChanges for details"
64        ui_msg "#"
65        ui_msg "# Run the following command to install the CouchDB launchd"
66        ui_msg "# startup item in order to start and re-start service automatically:"
67        ui_msg "#"
68        ui_msg "# sudo launchctl load -w /Library/LaunchDaemons/org.apache.couchdb.plist"
69        ui_msg "########################################################################"
70}
71
72livecheck.type  regex
73livecheck.url   http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/
74livecheck.version       ${svn.tag}
75livecheck.regex  (\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.