Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sgrep2: Fix build on Apple Silicon #26809

Merged
merged 1 commit into from
Dec 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 23 additions & 9 deletions textproc/sgrep2/Portfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
PortSystem 1.0
# -*- 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

Check warning on line 1 in textproc/sgrep2/Portfile

View workflow job for this annotation

GitHub Actions / macos-14

port lint sgrep2: Warning: no license set

Check warning on line 1 in textproc/sgrep2/Portfile

View workflow job for this annotation

GitHub Actions / macos-15

port lint sgrep2: Warning: no license set

Check warning on line 1 in textproc/sgrep2/Portfile

View workflow job for this annotation

GitHub Actions / macos-13

port lint sgrep2: Warning: no license set

PortSystem 1.0

name sgrep2
version 1.94a
revision 0
revision 1
checksums rmd160 d75f644fc4ba9b0eb916f8097bf58ebe4b73154c \
sha256 d5b16478e3ab44735e24283d2d895d2c9c80139c95228df3bdb2ac446395faf9 \
size 193267

categories textproc
platforms darwin
maintainers nomaintainer
description structured grep is a tool for searching SGML, XML and \
HTML files
Expand All @@ -18,17 +19,30 @@
criteria.

homepage https://www.cs.helsinki.fi/u/jjaakkol/sgrep.html
master_sites freebsd
distname sgrep-${version}
master_sites debian:s/sgrep

distname sgrep_${version}.orig
worksrcdir sgrep-${version}

patchfiles implicit.patch

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

test.run yes
test.target check

livecheck.type regex
livecheck.url https://www.cs.helsinki.fi/u/jjaakkol/sgrep/download.html
livecheck.regex {sgrep-([0-9a-z.]+)\.tar}
platform darwin arm {
depends_build-append \
port:automake

# Workaround ancient configuration files not detecting Apple Silicon (aarch64)
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}
}
}
}