Ticket #37702: couchdb.37702.1.patch

File couchdb.37702.1.patch, 5.3 KB (added by jeff@…, 11 years ago)
  • Portfile

     
    11# -*- 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
    22# $Id$
    33
    4 PortSystem      1.0
    5 PortGroup       active_variants 1.1
     4PortSystem              1.0
     5PortGroup               active_variants 1.1
    66
    7 name            couchdb
    8 conflicts       couchdb-devel
    9 version         1.2.1
    10 revision        2
    11 categories      databases
    12 platforms       darwin
    13 license         Apache-2
     7name                    couchdb
     8conflicts               couchdb-devel
     9version                 1.2.1
     10revision                2
    1411
    15 description     CouchDB is a document database server
    16 maintainers     jsnider.net:jeff \
    17                 openmaintainer
    18 long_description  ${description} with a restful HTTP API, capable of \
    19     storing arbitrary JSON documents, building powerful data views, \
    20     defined in JavaScript, and processed in parallel using Map/Reduce. \
    21     It leaves out SQL and transactions for simplicity's sake, to \
    22     improve scalability and to relax users' lives.
     12categories              databases
     13platforms               darwin
    2314
    24 homepage        http://couchdb.apache.org/
    25 master_sites    apache
     15description             CouchDB is a document database server
     16maintainers             jsnider.net:jeff \
     17                        openmaintainer
     18long_description        ${description} with a restful HTTP API, capable of \
     19                        storing arbitrary JSON documents, building powerful data views, \
     20                        defined in JavaScript, and processed in parallel using Map/Reduce. \
     21                        It leaves out SQL and transactions for simplicity's sake, to \
     22                        improve scalability and to relax users' lives.
     23homepage                http://couchdb.apache.org/
     24license                 Apache-2
     25
     26master_sites            apache
    2627master_sites.mirror_subdir ${name}/${version}/
    27 distname        apache-${name}-${version}
     28distname                apache-${name}-${version}
    2829
    29 checksums       rmd160  b89604089565c1f909046329c7e9d5faf84f036f \
    30                 sha256  b54e643f3ca5f046cfd2f329a001efeaae8a3094365fa6c1cb5dcf68c1b25ccd
     30checksums               rmd160  b89604089565c1f909046329c7e9d5faf84f036f \
     31                        sha256  b54e643f3ca5f046cfd2f329a001efeaae8a3094365fa6c1cb5dcf68c1b25ccd
    3132
    32 depends_lib     port:automake \
    33                 port:autoconf \
    34                 port:libtool \
    35                 port:help2man \
    36                 port:icu \
    37                 port:spidermonkey \
    38                 port:erlang
     33depends_lib             port:automake \
     34                        port:autoconf \
     35                        port:libtool \
     36                        port:help2man \
     37                        port:icu \
     38                        port:spidermonkey \
     39                        port:erlang
    3940
    4041# erlang is not universal
    41 universal_variant no
     42universal_variant       no
    4243
    43 patchfiles      patch-configure.diff \
    44                 patch-etc-launchd-org.apache.couchdb.plist.tpl.in.diff \
    45                 patch-src-couchdb-priv-Makefile.in.diff \
    46                 patch-parameterized-modules-r16b-bug.38395.patch
     44patchfiles              patch-configure.diff \
     45                        patch-etc-launchd-org.apache.couchdb.plist.tpl.in.diff \
     46                        patch-src-couchdb-priv-Makefile.in.diff \
     47                        patch-parameterized-modules-r16b-bug.38395.patch
    4748
    4849require_active_variants erlang ssl
    4950
    50 configure.args  --with-js-include=${prefix}/include/js \
    51                 --with-erlang=${prefix}/lib/erlang/usr/include \
    52                 --enable-js-trunk
     51configure.args          --with-js-include=${prefix}/include/js \
     52                        --with-erlang=${prefix}/lib/erlang/usr/include \
     53                        --enable-js-trunk
    5354
    54 set dbgroup couchdb
    55 set dbuser couchdb
    56 set logdir ${prefix}/var/log/couchdb
    57 set dbdir ${prefix}/var/lib/couchdb
    58 set confdir ${prefix}/etc/couchdb
    59 set rundir ${prefix}/var/run/couchdb
    60 set plistdir /Library/LaunchDaemons
    61 startupitem.uniquename org.apache.couchdb
    62 set plist ${startupitem.uniquename}.plist
     55set dbgroup             couchdb
     56set dbuser              couchdb
     57set logdir              ${prefix}/var/log/couchdb
     58set dbdir               ${prefix}/var/lib/couchdb
     59set confdir             ${prefix}/etc/couchdb
     60set rundir              ${prefix}/var/run/couchdb
     61set plistdir            /Library/LaunchDaemons
     62startupitem.uniquename  org.apache.couchdb
     63set plist               ${startupitem.uniquename}.plist
    6364
    64 add_users       ${dbuser} group=${dbgroup}
     65add_users               ${dbuser} group=${dbgroup}
    6566
    6667post-destroot {
    6768    move ${destroot}${confdir}/local.ini ${destroot}${confdir}/local.ini.sample
     
    8384    }
    8485}
    8586
     87
    8688notes "
    8789Run the following command to load the CouchDB launchd plist\
    8890in order to start the service now and at system startup:
    8991
    90 sudo launchctl load -w ${plistdir}/${plist}
     92sudo port load couchdb
    9193"
    9294
    93 livecheck.type  regex
    94 livecheck.url   http://couchdb.apache.org/downloads.html
    95 livecheck.regex apache-${name}-(\[0-9.\]+\[0-9\]+)
     95livecheck.type          regex
     96livecheck.url           http://couchdb.apache.org/downloads.html
     97livecheck.regex         apache-${name}-(\[0-9.\]+\[0-9\]+)
     98
     99