mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
This is not ideal but fixing the code properly requires extensive work and the developer has been unresponsive to a pull request with an initial partial set of fixes. See: https://trac.macports.org/ticket/68759
51 lines
1.8 KiB
Tcl
51 lines
1.8 KiB
Tcl
# -*- 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
|
|
|
|
name agrep
|
|
version 2.04
|
|
revision 1
|
|
conflicts glimpse tre
|
|
|
|
description agrep is similar to egrep.
|
|
long_description agrep is similar to egrep \(or grep or fgrep\), \
|
|
but it is much more general \(and usually faster\).
|
|
|
|
maintainers nomaintainer
|
|
categories sysutils
|
|
license Noncommercial
|
|
platforms darwin
|
|
homepage http://netbsd.org
|
|
master_sites ftp://ftp.cs.arizona.edu/agrep/
|
|
|
|
checksums rmd160 818f69f751943ddd8d6b2410b95bac1667985d0a \
|
|
sha256 31275a2fee28fb8966e1978d26fe8113b61ce49b39e68ddf4cad3964db72d5f8
|
|
|
|
extract.suffix .tar.Z
|
|
|
|
# https://github.com/Wikinaut/agrep/issues/20
|
|
supported_archs i386 ppc ppc64 x86_64
|
|
configure.cflags-append \
|
|
-Wno-error=implicit-function-declaration
|
|
|
|
patchfiles return_types.patch warnings.patch
|
|
|
|
use_configure no
|
|
build.type bsd
|
|
build.target ""
|
|
build.args CC="${configure.cc}" \
|
|
CFLAGS="${configure.cflags} ${configure.cc_archflags} -std=gnu89"
|
|
|
|
destroot {
|
|
xinstall ${worksrcpath}/agrep ${destroot}${prefix}/bin/
|
|
xinstall -m 644 ${worksrcpath}/agrep.1 ${destroot}${prefix}/share/man/man1/
|
|
xinstall -d ${destroot}${prefix}/share/doc/${name}
|
|
xinstall -m 644 -W ${worksrcpath} COPYRIGHT README agrep.algorithms \
|
|
agrep.chronicle contribution.list \
|
|
${destroot}${prefix}/share/doc/${name}
|
|
}
|
|
|
|
livecheck.type regex
|
|
livecheck.url [lindex ${master_sites} 0]
|
|
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}
|