source: trunk/dports/www/spidereyeballs/Portfile

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

spidereyeballs: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 151853 2016-08-23 12:22:06Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7name                spidereyeballs
8version             0.21
9revision            5
10perl5.branches      5.24
11categories          www
12platforms           darwin
13supported_archs     noarch
14maintainers         nomaintainer
15license             {Artistic-1 GPL}
16
17description         an image gallery generator
18long_description    The spidereyeballs program is a HTML image gallery \
19                    generator. It can operate at the command line or \
20                    under mod_perl
21
22homepage            http://www.spidereyeballs.com/
23master_sites        sourceforge:project/spidereyeballs/spidereyeballs/${version}
24distname            Spidy-${version}
25
26checksums           sha1    90e3cf5514bc81d9d83675256f8b3f71c34407d8 \
27                    rmd160  70a083c68b9e42c1b295ed6153935f30e3796088 \
28                    sha256  b7d9a4e7451a6c0d29ea21d5afea466a183bff85d22011cb1545e6e33eddc62c
29
30depends_lib         port:perl${perl5.major} \
31                    port:p${perl5.major}-html-template \
32                    port:p${perl5.major}-image-size \
33                    port:p${perl5.major}-xml-parser
34depends_run         port:ImageMagick
35
36# TODO: these are depends_test
37depends_run-append \
38                    port:p${perl5.major}-libwww-perl \
39                    port:p${perl5.major}-xml-treebuilder
40
41post-patch {
42    # TODO: autogenerate the list of files
43    reinplace "s|/usr/bin/perl|${perl5.bin}|g" \
44        ${worksrcpath}/spider \
45        ${worksrcpath}/spider.cgi \
46        ${worksrcpath}/t/000loader.t \
47        ${worksrcpath}/t/010sizes.t \
48        ${worksrcpath}/t/020pattern.t \
49        ${worksrcpath}/t/021templates.t \
50        ${worksrcpath}/t/030quick.t \
51        ${worksrcpath}/t/040urls.t \
52        ${worksrcpath}/t/050fixed.t \
53        ${worksrcpath}/t/060relative.t
54}
55
56configure.cmd       ${perl5.bin}
57configure.pre_args  Makefile.PL
58configure.args      --prefix=${prefix}
59destroot.target     install
60
61post-destroot {
62    delete [glob ${destroot}${prefix}/lib/perl5/*/*/perllocal.pod]
63}
64
65# many tests fail
66test.run            yes
Note: See TracBrowser for help on using the repository browser.