Ticket #33924: couchdb-Portfile.patch

File couchdb-Portfile.patch, 4.0 KB (added by deric@…, 13 years ago)
  • Portfile

     
     1# -*- 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
    12# $Id$
    23
    34PortSystem 1.0
     
    23
    3 name            couchdb
    4 version         1.1.1
     4name        couchdb
     5version     1.2.0
    56
    6 categories      databases
    7 platforms       darwin
     7categories  databases
     8platforms   darwin
    89
    9 description     CouchDB is a document database server
    10 maintainers     jwa
    11 long_description  ${description} with a restful HTTP API, capable of \
    12         storing arbitrary JSON documents, building powerful data views, \
    13         defined in JavaScript, and processed in parallel using Map/Reduce. \
    14         It leaves out SQL and transactions for simplicity's sake, to \
    15         improve scalability and to relax users' lives.
     10description         CouchDB is a document database server
     11maintainers         jwa
     12long_description    ${description} with a restful HTTP API, capable of \
     13                    storing arbitrary JSON documents, building powerful data views, \
     14                    defined in JavaScript, and processed in parallel using Map/Reduce. \
     15                    It leaves out SQL and transactions for simplicity's sake, to \
     16                    improve scalability and to relax users' lives.
    1617
    17 homepage        http://couchdb.apache.org/
    18 master_sites    apache
    19 master_sites.mirror_subdir      ${name}/${version}/
    20 distname        apache-${name}-${version}
     18homepage        http://couchdb.apache.org/
     19master_sites    apache
     20master_sites.mirror_subdir  ${name}/releases/${version}
     21distname        apache-${name}-${version}
    2122
    22 checksums           md5     cd126219b9cb69a4c521abd6960807a6 \
    23                     sha1    c901676663279338095642462bafa2d0667df98b \
    24                     rmd160  e61acf6649dbcfdd4834cc5f0920f38fd0d4ba76
     23checksums           rmd160  c96da6e285201f001431c57ee84cc04e2e244115 \
     24                    sha256  0f254ddea2471dbc4d3c6cd1fa61e4782c75475fb325024e10f68bf1aa8d5c37
    2525
    26 depends_lib     port:automake \
    27     port:autoconf \
    28     port:libtool \
    29     port:help2man \
    30     port:icu \
    31     port:spidermonkey \
    32     port:curl \
    33     port:erlang
     26depends_lib port:automake \
     27            port:autoconf \
     28            port:libtool \
     29            port:help2man \
     30            port:icu \
     31            port:spidermonkey \
     32            port:erlang
    3433
    35 patchfiles          patch-configure.diff
     34patchfiles  patch-configure.diff
    3635
     
    4746
    4847configure.args   --with-js-include=${prefix}/include/js \
    4948                 --with-erlang=${prefix}/lib/erlang/usr/include \
    50     --enable-js-trunk
     49                 --enable-js-trunk
    5150
    5251# erlang is not universal
    5352universal_variant   no
     
    5655set dbuser couchdb
    5756set logdir ${prefix}/var/log/couchdb
    5857set dbdir ${prefix}/var/lib/couchdb
     58set rundir ${prefix}/var/run/couchdb
    5959set plistdir /Library/LaunchDaemons
    6060startupitem.uniquename org.apache.couchdb
    6161set plist ${startupitem.uniquename}.plist
     
    6464    addgroup ${dbgroup}
    6565    adduser ${dbuser} gid=[existsgroup ${dbgroup}]
    6666    xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d \
    67         ${destroot}${dbdir} \
    68         ${destroot}${logdir} \
    69         ${destroot}${plistdir}
     67    ${destroot}${dbdir} \
     68    ${destroot}${logdir} \
     69    ${destroot}${plistdir} \
     70    ${destroot}${rundir}
    7071    destroot.keepdirs-append \
    7172        ${destroot}${dbdir} \
    72         ${destroot}${logdir}
     73        ${destroot}${logdir} \
     74        ${destroot}${rundir}
     75       
    7376    system "cd ${destroot}${plistdir} && ln -sf ${prefix}${plistdir}/${plist}"
    7477# the following patches can be removed after next version
    7578    reinplace "s;`${prefix}/bin/icu-config --invoke`;;" ${destroot}${prefix}/bin/couchdb
     
    8588    ui_msg "########################################################################"
    8689}
    8790
    88 livecheck.type  regex
    89 livecheck.url   http://couchdb.apache.org/downloads.html
    90 livecheck.regex apache-${name}-(\[0-9.\]+\[0-9\]+)
     91livecheck.type  regex
     92livecheck.url   http://couchdb.apache.org/downloads.html
     93livecheck.regex apache-${name}-(\[0-9.\]+\[0-9\]+)