Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Feb 2021 09:34:36 +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: r566752 - in head: . editors editors/mg editors/mg-static
Message-ID:  <202102280934.11S9YaiQ087133@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sun Feb 28 09:34:36 2021
New Revision: 566752
URL: https://svnweb.freebsd.org/changeset/ports/566752

Log:
  editors/mg: Make mg-static a flavor

Deleted:
  head/editors/mg-static/
Modified:
  head/MOVED
  head/editors/Makefile
  head/editors/mg/Makefile

Modified: head/MOVED
==============================================================================
--- head/MOVED	Sun Feb 28 09:24:04 2021	(r566751)
+++ head/MOVED	Sun Feb 28 09:34:36 2021	(r566752)
@@ -16172,3 +16172,4 @@ sysutils/uefi-edk2-bhyve-devel|sysutils/uefi-edk2-bhyv
 graphics/py-graph-core|graphics/py-pygraph|2021-02-19|Is outdated and broken with python3, use graphics/py-pygraph instead
 devel/allegro-devel|devel/allegro5|2021-02-20|Rename to better match upstream name
 www/py-djangorestframework311||2021-02-26|Removed: Used as a transitional package for www/seahub, please use www/py-djangorestframework instead
+editors/mg-static|editors/mg@static|2021-02-28|Flavored

Modified: head/editors/Makefile
==============================================================================
--- head/editors/Makefile	Sun Feb 28 09:24:04 2021	(r566751)
+++ head/editors/Makefile	Sun Feb 28 09:34:36 2021	(r566752)
@@ -193,7 +193,6 @@
     SUBDIR += madedit
     SUBDIR += marker
     SUBDIR += mg
-    SUBDIR += mg-static
     SUBDIR += micro
     SUBDIR += mined
     SUBDIR += mle

Modified: head/editors/mg/Makefile
==============================================================================
--- head/editors/mg/Makefile	Sun Feb 28 09:24:04 2021	(r566751)
+++ head/editors/mg/Makefile	Sun Feb 28 09:34:36 2021	(r566752)
@@ -3,25 +3,44 @@
 
 PORTNAME=	mg
 PORTVERSION=	6.8.1
-PORTEPOCH?=	1
+PORTEPOCH=	1
 CATEGORIES=	editors
 MASTER_SITES=	https://github.com/ibara/mg/releases/download/mg-${PORTVERSION}/
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT?=	Small, fast Emacs-like editor
+MAINTAINER=	tobik@FreeBSD.org
+COMMENT=	Small, fast Emacs-like editor
 
 LICENSE=	PD
 
+FLAVORS=	dynamic static
+FLAVOR?=	${FLAVORS:[1]}
+
+static_PKGNAMESUFFIX=	-static
+.if ${FLAVOR} == static
+COMMENT+=		(rescue(8) version)
+.endif
+
 USES=		ncurses
 HAS_CONFIGURE=	yes
-PLIST_FILES?=	bin/mg \
+.if ${FLAVOR} == static
+CONFIGURE_ARGS=	--enable-static
+PLIST_FILES=	/rescue/mg
+.else
+PLIST_FILES=	bin/mg \
 		man/man1/mg.1.gz
 PORTDOCS=	README-Mg README.md tutorial
 
 OPTIONS_DEFINE=	DOCS
+.endif
 
+.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 <bsd.port.mk>



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