svn commit: r566752 - in head: . editors editors/mg editors/mg-static

Tobias Kortkamp tobik at FreeBSD.org
Sun Feb 28 09:34:37 UTC 2021


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 at 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 at FreeBSD.org
-COMMENT?=	Small, fast Emacs-like editor
+MAINTAINER=	tobik at 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>


More information about the svn-ports-all mailing list