lookat: Update to 2.1.0

Fixes: https://trac.macports.org/ticket/70241
This commit is contained in:
commitmaniac
2026-03-07 22:31:00 -05:00
committed by Herby Gillot
parent 021e49e45a
commit d4fa38fed4
2 changed files with 14 additions and 46 deletions
+14 -13
View File
@@ -3,24 +3,25 @@
PortSystem 1.0
name lookat
version 1.4.4
version 2.1.0
revision 0
checksums rmd160 1e63e45bec5ae51c170f743c6340747045e84e31 \
sha256 86513ec90ad13c4bc4a1510fb9e177fd5cf581b3d41415964cb0736571cad9c2 \
size 279634
checksums rmd160 adc6a7484418c4a6e38a731fcaa83d993482ae60 \
sha256 19ebc746ac70680eacad5c52079c6710b345fb43aa861e14f8c12cccea17453d \
size 312928
description A program to view textfiles and man-pages.
long_description ${description}
description A program to view textfiles and man-pages
long_description {*}${description}.
maintainers nomaintainer
categories sysutils
license GPL-2+
platforms darwin
homepage http://www.wagemakers.be/english/programs/lookat
master_sites http://www.wagemakers.be/downloads/lookat/
livecheck.name ${name}_bekijk
distname ${livecheck.name}-${version}
homepage https://www.wagemakers.be/english/programs/lookat/
master_sites nongnu
distname ${name}_bekijk-${version}
depends_lib port:ncurses
depends_lib-append port:ncurses
patchfiles getline.c.patch
post-destroot {
xinstall -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 ${worksrcpath}/COPYING ${destroot}${prefix}/share/doc/${name}
}
-33
View File
@@ -1,33 +0,0 @@
Don't define getline and getdelim if they are already defined
(e.g. on Mac OS X 10.7 and later).
--- getline.c.orig 2015-12-28 00:38:39.000000000 -0600
+++ getline.c 2019-11-04 09:39:32.000000000 -0600
@@ -169,6 +169,8 @@
#ifndef __OpenBSD__
#ifndef __NetBSD__
+#ifndef HAVE_GETLINE
+
int
getline (lineptr, n, stream)
char **lineptr;
@@ -178,6 +180,10 @@
return getstr (lineptr, n, stream, '\n', 0);
}
+#endif
+
+#ifndef HAVE_GETDELIM
+
#if defined(__FreeBSD__)
#include <osreldate.h>
#if __FreeBSD_version <= 800066
@@ -196,6 +202,8 @@
}
#endif
+#endif
+
#endif /* ifndef __NetBSD__ */
#endif /* ifndef __OpenBSD__ */