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

github.setup                    jacobgorm edelta 0.10b
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from             tarball
revision                        0
checksums                       rmd160  1a7b676fe53b8ae079afd95109d4c98c82840ae7 \
                                sha256  86d60b8726d37d5486b0d8030492a99b2f4ce1266ad50a99edb07ee6d529815e \
                                size    16670

categories                      archivers
maintainers                     {ryandesign @ryandesign} openmaintainer
license                         GPL-2

description                     EDelta is a fast XDelta-style binary differ

long_description                EDelta is a fast (linear time) XDelta-style \
                                binary differ, but optimized for executables \
                                that have a very systematic way of changing \
                                between versions.

master_sites                    macports_distfiles

depends_lib                     port:zlib

use_configure                   no

post-configure {
    reinplace "s|<development version>|${version}|g" ${worksrcpath}/version.h
}

configure.ldflags-append        -lz

build.target                    ${name}
build.args                      CC=${configure.cc} \
                                CFLAGS="${configure.cflags}" \
                                CPPFLAGS="${configure.cppflags}" \
                                LDFLAGS="${configure.ldflags}"

destroot {
    xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        COPYING \
        ${docdir}
}

# No tags and no activity since the project was imported into GitHub.
livecheck.type                  none
