From d4fa38fed47f9a0fd884cc125f5adb36273b3d80 Mon Sep 17 00:00:00 2001 From: commitmaniac <201806046+commitmaniac@users.noreply.github.com> Date: Sat, 7 Mar 2026 22:31:00 -0500 Subject: [PATCH] lookat: Update to 2.1.0 Fixes: https://trac.macports.org/ticket/70241 --- sysutils/lookat/Portfile | 27 +++++++++++----------- sysutils/lookat/files/getline.c.patch | 33 --------------------------- 2 files changed, 14 insertions(+), 46 deletions(-) delete mode 100644 sysutils/lookat/files/getline.c.patch diff --git a/sysutils/lookat/Portfile b/sysutils/lookat/Portfile index c08ce95f598..237646405d3 100644 --- a/sysutils/lookat/Portfile +++ b/sysutils/lookat/Portfile @@ -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} +} diff --git a/sysutils/lookat/files/getline.c.patch b/sysutils/lookat/files/getline.c.patch deleted file mode 100644 index a4c24dee739..00000000000 --- a/sysutils/lookat/files/getline.c.patch +++ /dev/null @@ -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 - #if __FreeBSD_version <= 800066 -@@ -196,6 +202,8 @@ - } - #endif - -+#endif -+ - #endif /* ifndef __NetBSD__ */ - #endif /* ifndef __OpenBSD__ */ -