Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Dec 2013 09:51:52 +0000 (UTC)
From:      Johan van Selst <johans@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337949 - head/editors/manedit
Message-ID:  <201312290951.rBT9pqvZ058838@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: johans
Date: Sun Dec 29 09:51:52 2013
New Revision: 337949
URL: http://svnweb.freebsd.org/changeset/ports/337949

Log:
  - Enable STAGE support
  - Strip installed binary
  - Bump PORTREVISION

Modified:
  head/editors/manedit/Makefile
  head/editors/manedit/pkg-plist

Modified: head/editors/manedit/Makefile
==============================================================================
--- head/editors/manedit/Makefile	Sun Dec 29 09:42:39 2013	(r337948)
+++ head/editors/manedit/Makefile	Sun Dec 29 09:51:52 2013	(r337949)
@@ -3,11 +3,12 @@
 
 PORTNAME=	manedit
 PORTVERSION=	1.2.1
+PORTREVISION=	1
 CATEGORIES=	editors
 MASTER_SITES=	http://wolfsinger.com/~wolfpack/packages/
 
 MAINTAINER=	johans@FreeBSD.org
-COMMENT=	A UNIX manual page editor and viewer
+COMMENT=	UNIX manual page editor and viewer
 
 WRKSRC=		${WRKDIR}/${DISTNAME}/${PORTNAME}
 
@@ -15,16 +16,21 @@ MAKEFILE=	Makefile.FreeBSD
 USE_BZIP2=	yes
 USE_GNOME=	gtk12
 
-MAN1=		manedit.1
+MAKE_ARGS=	STAGEDIR="$(STAGEDIR)"
 
-NO_STAGE=	yes
 pre-configure:
 	@${CP} ${FILESDIR}/mntent* ${WRKSRC}
 
 post-patch:
 	@${REINPLACE_CMD} -e '/-o $$(BIN)/s/(CC)/(CXX)/' ${WRKSRC}/${MAKEFILE}
-	@${REINPLACE_CMD} -e '/^MAN/s/.bz2//' ${WRKSRC}/Makefile.install.FreeBSD
+	@${REINPLACE_CMD} -e '/^MAN/s/.bz2//' \
+		-e 's/(PREFIX)/(STAGEDIR)$$&/' \
+		-e '/@echo/s/^/#/' \
+		${WRKSRC}/Makefile.install.FreeBSD
 	@${REINPLACE_CMD} -e '/^SRC_C =/s//& mntent_compat.c/' \
 		${WRKSRC}/Makefile.srclist
 
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/manedit
+
 .include <bsd.port.mk>

Modified: head/editors/manedit/pkg-plist
==============================================================================
--- head/editors/manedit/pkg-plist	Sun Dec 29 09:42:39 2013	(r337948)
+++ head/editors/manedit/pkg-plist	Sun Dec 29 09:51:52 2013	(r337949)
@@ -1,6 +1,7 @@
 bin/manedit
 bin/manview
 bin/manwrap
+man/man1/manedit.1.gz
 %%DATADIR%%/help/index.html
 %%DATADIR%%/help/manedit_heading.gif
 %%DATADIR%%/help/tutorial.html



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