source: trunk/dports/php/php-unit/Portfile

Last change on this file was 108700, checked in by ryandesign@…, 4 years ago

set svn:keywords to Id

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
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
2# $Id: Portfile 108700 2013-07-31 04:29:24Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               php 1.1
6
7name                    php-unit
8set real_name           phpunit
9set cap_name            PHPUnit
10version                 3.7.22
11categories-append       devel
12maintainers             nomaintainer
13supported_archs         noarch
14license                 BSD
15
16homepage                https://github.com/sebastianbergmann/phpunit
17master_sites            http://pear.phpunit.de/get/
18distname                ${cap_name}-${version}
19extract.suffix          .tgz
20platforms               darwin freebsd
21
22checksums               rmd160  3ff9547dfa6cb2f473790d062c96f0ca2302cdc1 \
23                        sha256  0c7499926910400893d0f1d591fd397ce327bbe2090106bb4cca911c1a51da27
24
25description             unit testing for PHP
26long_description \
27    PHPUnit  is a member of the  xUnit family of testing frameworks \
28    and provides both a framework that makes the writing of tests easy \
29    as well as the functionality to easily run the tests and analyse \
30    their results.
31
32php.branches            5.3 5.4 5.5
33
34php.build_dirs
35
36if {$name ne $subport} {
37    depends_lib         port:${php}-file-iterator \
38                        port:${php}-code-coverage port:${php}-timer \
39                        port:${php}-unit-mock-objects
40
41    destroot {
42        reinplace "s|@php_bin@|${prefix}/bin/php|" ${worksrcpath}/${real_name}.php
43        reinplace "s|@php_dir@|${prefix}/lib/php|" ${worksrcpath}/${real_name}.php
44        reinplace "s|@php_bin@|${prefix}/bin/php|" ${worksrcpath}/${cap_name}/Util/PHP.php
45
46        reinplace "s|#!/usr/bin/env php|#!${prefix}/bin/php|" ${worksrcpath}/${real_name}.php
47        xinstall -m 755 ${worksrcpath}/${real_name}.php ${destroot}${prefix}/bin/${real_name}
48
49        xinstall -d ${destroot}${prefix}/lib/php
50        file copy ${worksrcpath}/${cap_name} ${destroot}${prefix}/lib/php/${cap_name}
51
52        set docdir ${destroot}${prefix}/share/doc/${name}
53        xinstall -d ${docdir}
54        xinstall -m 644 -W ${worksrcpath} README.md ${docdir}
55    }
56
57    livecheck.type      none
58} else {
59    livecheck.type      regex
60    livecheck.url       ${homepage}/tags
61    livecheck.regex     archive/(\[0-9.\]+)\\.tar
62}
Note: See TracBrowser for help on using the repository browser.