pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/misc/mtm



Module Name:    pkgsrc
Committed By:   ktnb
Date:           Thu Jul 18 13:25:36 UTC 2024

Added Files:
        pkgsrc/misc/mtm: DESCR Makefile PLIST distinfo
        pkgsrc/misc/mtm/patches: patch-Makefile patch-config.def.h

Log Message:
mtm: added 1.2.1

mtm is the Micro Terminal Multiplexer, a terminal multiplexer.
It has four major features/principles: simplicity,
compatibility, size, and stability.

There are only a few commands, two of which are hardly ever used.
There are no modes, no dozens of commands, no crazy feature list.
mtm emulates a classic ANSI text terminal. That means it should
work out of the box on essentially all terminfo/termcap-based
systems (even pretty old ones), without needing to install a new
termcap entry. mtm is small; the entire project is around 1000
lines of code. mtm is "finished" as it is now.You don't need to
worry about it changing on you unexpectedly.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/misc/mtm/DESCR pkgsrc/misc/mtm/Makefile \
    pkgsrc/misc/mtm/PLIST pkgsrc/misc/mtm/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/misc/mtm/patches/patch-Makefile \
    pkgsrc/misc/mtm/patches/patch-config.def.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/misc/mtm/DESCR
diff -u /dev/null pkgsrc/misc/mtm/DESCR:1.1
--- /dev/null   Thu Jul 18 13:25:36 2024
+++ pkgsrc/misc/mtm/DESCR       Thu Jul 18 13:25:36 2024
@@ -0,0 +1,12 @@
+mtm is the Micro Terminal Multiplexer, a terminal multiplexer.
+It has four major features/principles: simplicity,
+compatibility, size, and stability.
+
+There are only a few commands, two of which are hardly ever used.
+There are no modes, no dozens of commands, no crazy feature list.
+mtm emulates a classic ANSI text terminal. That means it should
+work out of the box on essentially all terminfo/termcap-based
+systems (even pretty old ones), without needing to install a new
+termcap entry. mtm is small; the entire project is around 1000
+lines of code. mtm is "finished" as it is now.You don't need to
+worry about it changing on you unexpectedly.
Index: pkgsrc/misc/mtm/Makefile
diff -u /dev/null pkgsrc/misc/mtm/Makefile:1.1
--- /dev/null   Thu Jul 18 13:25:36 2024
+++ pkgsrc/misc/mtm/Makefile    Thu Jul 18 13:25:36 2024
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2024/07/18 13:25:36 ktnb Exp $
+
+DISTNAME=      mtm-1.2.1
+CATEGORIES=    misc
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=deadpixi/}
+GITHUB_TAG=    ${PKGVERSION_NOREV}
+
+MAINTAINER=    ktnb%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/deadpixi/mtm/
+COMMENT=       The Micro Terminal Multiplexer
+LICENSE=       gnu-gpl-v3
+
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1 share/mtm/terminfo
+
+LDFLAGS+=      ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.ncurses}/lib
+LDFLAGS+=      -L${BUILDLINK_PREFIX.ncurses}/lib
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/mtm ${DESTDIR}/${PREFIX}/bin && \
+       ${INSTALL_MAN} ${WRKSRC}/mtm.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_DATA} ${WRKSRC}/mtm.ti ${DESTDIR}${PREFIX}/share/mtm/terminfo
+
+# needs ncurses: wgetscrreg
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/misc/mtm/PLIST
diff -u /dev/null pkgsrc/misc/mtm/PLIST:1.1
--- /dev/null   Thu Jul 18 13:25:36 2024
+++ pkgsrc/misc/mtm/PLIST       Thu Jul 18 13:25:36 2024
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2024/07/18 13:25:36 ktnb Exp $
+bin/mtm
+man/man1/mtm.1
+share/mtm/terminfo/mtm.ti
Index: pkgsrc/misc/mtm/distinfo
diff -u /dev/null pkgsrc/misc/mtm/distinfo:1.1
--- /dev/null   Thu Jul 18 13:25:36 2024
+++ pkgsrc/misc/mtm/distinfo    Thu Jul 18 13:25:36 2024
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2024/07/18 13:25:36 ktnb Exp $
+
+BLAKE2s (mtm-1.2.1.tar.gz) = 916de695bc4f3a810e1492b01f09ff5ed7e8c7746c6e18cc3beb255afad53c6d
+SHA512 (mtm-1.2.1.tar.gz) = 74e5230c6ea65c87d580516b7b62edeb4f273c1a36662bac84af41ca47e4ce252e393132dfe8c700441d6b74c19d6d560fbc503815c12f9d1cbdda2e19a9a9e2
+Size (mtm-1.2.1.tar.gz) = 383409 bytes
+SHA1 (patch-Makefile) = ea0867132594ee7a3b7d32ba5efb2a7fe07c0ec0
+SHA1 (patch-config.def.h) = 2487e1981733a7bc555e4a2808c24960c1829fb6

Index: pkgsrc/misc/mtm/patches/patch-Makefile
diff -u /dev/null pkgsrc/misc/mtm/patches/patch-Makefile:1.1
--- /dev/null   Thu Jul 18 13:25:36 2024
+++ pkgsrc/misc/mtm/patches/patch-Makefile      Thu Jul 18 13:25:36 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile,v 1.1 2024/07/18 13:25:36 ktnb Exp $
+
+Use LDFLAGS. https://github.com/deadpixi/mtm/pull/35
+
+--- Makefile.orig      2024-07-03 04:33:05.333529850 +0000
++++ Makefile
+@@ -11,7 +11,7 @@ LIBS      ?= -l$(CURSESLIB) -lutil
+ all: mtm
+ 
+ mtm: vtparser.c mtm.c pair.c config.h
+-      $(CC) $(CFLAGS) $(FEATURES) -o $@ $(HEADERS) vtparser.c mtm.c pair.c $(LIBPATH) $(LIBS)
++      $(CC) $(LDFLAGS) $(CFLAGS) $(FEATURES) -o $@ $(HEADERS) vtparser.c mtm.c pair.c $(LIBPATH) $(LIBS)
+       strip mtm
+ 
+ config.h: config.def.h
Index: pkgsrc/misc/mtm/patches/patch-config.def.h
diff -u /dev/null pkgsrc/misc/mtm/patches/patch-config.def.h:1.1
--- /dev/null   Thu Jul 18 13:25:36 2024
+++ pkgsrc/misc/mtm/patches/patch-config.def.h  Thu Jul 18 13:25:36 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-config.def.h,v 1.1 2024/07/18 13:25:36 ktnb Exp $
+
+NetBSD also uses util.h. https://github.com/deadpixi/mtm/pull/78
+
+--- config.def.h.orig  2024-07-18 00:58:43.999974063 +0000
++++ config.def.h
+@@ -71,7 +71,7 @@
+ 
+ /* Includes needed to make forkpty(3) work. */
+ #ifndef FORKPTY_INCLUDE_H
+-    #if defined(__APPLE__) || defined(__OpenBSD__)
++    #if defined(__APPLE__) || defined(__OpenBSD__) || defined(__NetBSD__)
+         #define FORKPTY_INCLUDE_H <util.h>
+     #elif defined(__FreeBSD__)
+         #define FORKPTY_INCLUDE_H <libutil.h>



Home | Main Index | Thread Index | Old Index