Skip to content

Commit

Permalink
sgrep: Update to 1.94a
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealKeto committed Nov 26, 2024
1 parent d60175a commit 23b5ed0
Showing 1 changed file with 38 additions and 24 deletions.
62 changes: 38 additions & 24 deletions textproc/sgrep/Portfile
Original file line number Diff line number Diff line change
@@ -1,31 +1,45 @@
# -*- 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 sgrep
version 0.99
version 1.94a
revision 0
categories textproc
license GPL-2+
platforms darwin
maintainers nomaintainer
description structured grep is a tool for searching SGML, XML and HTML files
long_description sgrep (structured grep) is a tool for searching and \
indexing text, SGML, XML and HTML files and filtering text streams \
using structural criteria.

homepage http://www.cs.helsinki.fi/u/jjaakkol/sgrep.html
master_sites ftp://ftp.cs.helsinki.fi/pub/Software/Local/Sgrep/ freebsd
checksums md5 af09a90c4f1929bfae4818c8962a8907

use_configure no

build.args BINDIR=${prefix}/bin LIBDIR=${prefix}/lib \
MANFILE=${prefix}/share/man/man1/sgrep.1 \
RCFILE=${prefix}/etc/sgreprc

destroot.destdir BINDIR=${destroot}${prefix}/bin \
LIBDIR=${destroot}${prefix}/lib \
MANFILE=${destroot}${prefix}/share/man/man1/sgrep.1 \
RCFILE=${destroot}${prefix}/etc/sgreprc
post-destroot {
xinstall -m 644 ${worksrcpath}/sample.sgreprc \
${destroot}${prefix}/etc/sgreprc.sample

description Search and index SGML, XML, and HTML
long_description ${name} (structured grep) is a tool for searching and \
indexing text, SGML, XML, and HTML files, filtering using \
structural critera.

homepage https://www.cs.helsinki.fi/u/jjaakkol/sgrep.html
master_sites debian:s/${name}

checksums rmd160 d75f644fc4ba9b0eb916f8097bf58ebe4b73154c \
sha256 d5b16478e3ab44735e24283d2d895d2c9c80139c95228df3bdb2ac446395faf9 \
size 193267

distname ${name}_${version}.orig
worksrcdir ${name}-${version}

configure.args-append --mandir=${prefix}/share/man \
--datadir=${prefix}/share/${name}

platform darwin arm {
depends_build-append \
port:automake

# Workaround ancient configuration files not detecting Apple Sillicon (aarch64 macos)
post-extract {
set automake_ver 1.17
foreach file {config.guess config.sub} {
delete ${worksrcpath}/${file}
copy ${prefix}/share/automake-${automake_ver}/${file} ${worksrcpath}/${file}
}
}

configure.cflags-append \
-Wno-implicit-function-declaration
}

0 comments on commit 23b5ed0

Please sign in to comment.