-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d60175a
commit 23b5ed0
Showing
1 changed file
with
38 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |