source: trunk/dports/perl/p5-mogilefs-server/Portfile

Last change on this file was 154393, checked in by mojca@…, 11 months ago

p5-*: remove subports for perl5.22 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 154393 2016-10-28 22:10:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7perl5.branches      5.24
8perl5.setup         MogileFS-Server 2.72
9license             {Artistic-1 GPL}
10categories          perl net sysutils
11platforms           darwin
12maintainers         nomaintainer
13
14description         MogileFS (distributed filesystem) server
15long_description    ${description}
16
17homepage            https://code.google.com/p/mogilefs/
18#                   http://www.mogilefs.org, http://danga.com/mogilefs/, https://github.com/mogilefs/
19
20checksums           rmd160  1a274d9262b3b1c38df694d522ca7e6d3c07caa0 \
21                    sha256  d7d5a45d50127bf62e451c6d86eb247103b01c46662898ae4e18daa08be8e0bf
22
23if {${perl5.major} != ""} {
24#
25# requires one of
26#   p5-dbd-sqlite
27#   p5-dbd-mysql
28#   p5-dbd-pg
29# depending on database to be used
30# add variants to select ?
31# default configuration is MySQL
32
33depends_lib-append \
34            port:p${perl5.major}-danga-socket \
35            port:p${perl5.major}-dbd-mysql \
36            port:p${perl5.major}-dbi \
37            port:p${perl5.major}-io-aio \
38            port:p${perl5.major}-mogilefs-client \
39            port:p${perl5.major}-mogilefs-utils \
40            port:p${perl5.major}-net-netmask \
41            port:p${perl5.major}-perlbal \
42            port:p${perl5.major}-sys-syscall
43
44    post-patch {
45            eval reinplace "s|/usr/bin/perl|${perl5.bin}|" [glob ${worksrcpath}/mog*]
46    }
47
48# add perl5.bindir to PATH so mogadm can be found
49    test.env-append     PATH="$env(PATH):${perl5.bindir}"
50
51# test configuration for MySQL, see TESTING for others
52    test.args-append    MOGTEST_DBUSER=test \
53                        MOGTEST_DBNAME=test \
54                        MOGTEST_DBTYPE=MySQL
55}
Note: See TracBrowser for help on using the repository browser.