Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Oct 2018 14:23:56 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r481035 - in head/editors/mg: . files
Message-ID:  <201810011423.w91ENuf2045278@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Mon Oct  1 14:23:56 2018
New Revision: 481035
URL: https://svnweb.freebsd.org/changeset/ports/481035

Log:
  editors/mg: Update to 20180927
  
  This brings mg up to what will be in OpenBSD 6.4.
  
  Simplify port by moving to Brian Callahan's portable mg release.
  It has a configure script to detect OS features and it hopefully
  won't break building mg on FreeBSD for no reason.
  
  MFH:		2018Q4

Deleted:
  head/editors/mg/files/
Modified:
  head/editors/mg/Makefile
  head/editors/mg/distinfo
  head/editors/mg/pkg-descr

Modified: head/editors/mg/Makefile
==============================================================================
--- head/editors/mg/Makefile	Mon Oct  1 14:22:37 2018	(r481034)
+++ head/editors/mg/Makefile	Mon Oct  1 14:23:56 2018	(r481035)
@@ -2,8 +2,9 @@
 # $FreeBSD$
 
 PORTNAME=	mg
-PORTVERSION=	20180408
+PORTVERSION=	20180927
 CATEGORIES=	editors
+MASTER_SITES=	https://github.com/ibara/mg/releases/download/mg-${PORTVERSION}/
 
 MAINTAINER=	tobik@FreeBSD.org
 COMMENT=	Small, fast Emacs-like editor
@@ -11,30 +12,12 @@ COMMENT=	Small, fast Emacs-like editor
 LICENSE=	PD
 
 USES=		ncurses
-USE_GITHUB=	yes
-GH_ACCOUNT=	hboetes
+HAS_CONFIGURE=	yes
+CONFIGURE_ARGS=	--prefix=${PREFIX}
 PLIST_FILES=	bin/mg man/man1/mg.1.gz
-PORTDOCS=	README tutorial
+PORTDOCS=	README-Mg README.md tutorial
 
 OPTIONS_DEFINE=	DOCS
-
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} != FreeBSD || ${OSVERSION} < 1100072
-EXTRA_PATCHES=	${FILESDIR}/extra-patch-def.h
-
-post-patch:
-	${CP} ${FILESDIR}/reallocarray.c ${WRKSRC}
-	@${REINPLACE_CMD} 's| tags.c| tags.c reallocarray.c|' ${WRKSRC}/Makefile
-.endif
-
-pre-configure:
-	@${REINPLACE_CMD} 's|-lcurses|-lncurses|' ${WRKSRC}/Makefile
-	@${REINPLACE_CMD} 's|__dead|__dead2|' ${WRKSRC}/main.c
-
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
-	${INSTALL_MAN}  ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
 
 post-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}

Modified: head/editors/mg/distinfo
==============================================================================
--- head/editors/mg/distinfo	Mon Oct  1 14:22:37 2018	(r481034)
+++ head/editors/mg/distinfo	Mon Oct  1 14:23:56 2018	(r481035)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1526285944
-SHA256 (hboetes-mg-20180408_GH0.tar.gz) = 85c1d47500fd042e427b670c630c228668bcc4f532a280f9ecce3d302229bbe4
-SIZE (hboetes-mg-20180408_GH0.tar.gz) = 141988
+TIMESTAMP = 1538400869
+SHA256 (mg-20180927.tar.gz) = 99b2fd2cf9d6474153d6c5769c818dd5514c147b8a8ad660a5e114bc1ebd504d
+SIZE (mg-20180927.tar.gz) = 156632

Modified: head/editors/mg/pkg-descr
==============================================================================
--- head/editors/mg/pkg-descr	Mon Oct  1 14:22:37 2018	(r481034)
+++ head/editors/mg/pkg-descr	Mon Oct  1 14:23:56 2018	(r481035)
@@ -3,4 +3,4 @@ editor maintained by the OpenBSD Project.  It is inten
 who can't, or don't want to, run the real GNU Emacs, or are not
 familiar with the vi(1) editor.
 
-WWW: https://github.com/hboetes/mg
+WWW: https://github.com/ibara/mg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810011423.w91ENuf2045278>