diff --git a/editors/mg/Makefile b/editors/mg/Makefile index a2d846277840..8b34f3985b7d 100644 --- a/editors/mg/Makefile +++ b/editors/mg/Makefile @@ -1,40 +1,45 @@ PORTNAME= mg -DISTVERSION= 20240405 +DISTVERSION= 20241008 PORTEPOCH= 1 CATEGORIES= editors -MASTER_SITES= https://hydrus.org.uk/downloads/ +MASTER_SITES= https://hydrus.org.uk/downloads/ MAINTAINER= cdr.nil@gmail.com COMMENT= Small, fast Emacs-like editor WWW= https://man.openbsd.org/mg LICENSE= PD -USES= ncurses uidfix -MAKE_ARGS+= BINDIR=${PREFIX}/bin MANDIR=${PREFIX}/share/man/man \ - NCURSESLIB=${NCURSESLIB} NCURSESINC=${NCURSESINC} -FLAVORS= dynamic static -FLAVOR?= ${FLAVORS:[1]} +FLAVORS= dynamic static +FLAVOR?= ${FLAVORS:[1]} static_PKGNAMESUFFIX= -static + +USES= ncurses uidfix + .if ${FLAVOR} == static COMMENT+= (rescue(8) version) -MAKE_ARGS+= NO_SHARED=yes +MAKE_ARGS+= NO_SHARED=yes PLIST_FILES= /rescue/mg .else PLIST_FILES= bin/mg \ share/man/man1/mg.1.gz PORTDOCS= README tutorial OPTIONS_DEFINE= DOCS .endif +MAKE_ARGS+= BINDIR=${PREFIX}/bin \ + MANDIR=${PREFIX}/share/man/man \ + NCURSESINC=${NCURSESINC} \ + NCURSESLIB=${NCURSESLIB} + .if ${FLAVOR} == static do-install: @${MKDIR} ${STAGEDIR}/rescue ${INSTALL_PROGRAM} ${WRKSRC}/mg ${STAGEDIR}/rescue .else post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .endif .include diff --git a/editors/mg/distinfo b/editors/mg/distinfo index 9bfb9834cce3..cc1097eb12b9 100644 --- a/editors/mg/distinfo +++ b/editors/mg/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1712395301 -SHA256 (mg-20240405.tar.gz) = abda55c6c53e8316324d56a9851865ada13f9cd82295f3757de7cb4b83bead57 -SIZE (mg-20240405.tar.gz) = 156768 +TIMESTAMP = 1728587995 +SHA256 (mg-20241008.tar.gz) = 56a1caf883ab968dd4c6a2d13cf56232d392e834b9cfaf2dd2f4d3b6cf26db75 +SIZE (mg-20241008.tar.gz) = 154865 diff --git a/editors/mg/files/patch-version.c b/editors/mg/files/patch-version.c new file mode 100644 index 000000000000..9c4d4ca3136d --- /dev/null +++ b/editors/mg/files/patch-version.c @@ -0,0 +1,11 @@ +--- version.c.orig 2024-10-10 16:12:07 UTC ++++ version.c +@@ -13,7 +13,7 @@ + + #include "def.h" + +-const char version[] = "Mg 2a"; ++const char version[] = "Mg 2a (20241008)"; + + /* + * Display the version. All this does