# -*- 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

PortSystem          1.0
PortGroup           perl5 1.0

name                imageindex

version             1.1
revision            8
platforms           any
supported_archs     noarch
categories          graphics
license             GPL-2
maintainers         {khindenburg @kurthindenburg} openmaintainer
description         generates static HTML galleries of images

long_description    {*}${description}

homepage            http://www.edwinh.org/imageindex/
master_sites        http://www.edwinh.org/imageindex/release/

checksums           rmd160  cffde483a8dddcef7f415c38b8ee3a9487444ecb \
                    sha256  78f3d92a334e9b8a970cb07a452eb19485f3971485a3c400b4a680007964f66c \
                    size    58073

perl5.require_variant   yes
perl5.conflict_variants yes
perl5.branches          5.28 5.30 5.32 5.34
perl5.default_branch    5.34
perl5.create_variants   ${perl5.branches}

depends_lib         port:p${perl5.major}-perlmagick
depends_run         port:p${perl5.major}-image-info

patch.pre_args-replace  -p0 -p1
patchfiles          fix-dotfiles.patch \
                    make-charset-configurable-pod.patch \
                    fix-javascript.patch \
                    make-charset-configurable.patch \
                    fix_deprecated.patch

use_configure       no

build.args          PREFIX=${prefix} PERLPATH=${perl5.bin}

destroot.cmd        make install
destroot.args       PREFIX=${destroot}${prefix} PERLPATH=${perl5.bin}

livecheck.type      regex
livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
