Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 May 2013 11:14:56 +0000 (UTC)
From:      Boris Samorodov <bsam@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r319209 - head/sysutils/ledit
Message-ID:  <201305271114.r4RBEu7d059199@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bsam
Date: Mon May 27 11:14:56 2013
New Revision: 319209
URL: http://svnweb.freebsd.org/changeset/ports/319209

Log:
  . trim Makefile headres;
  . NOPORTDOCS -> PORT_OPTIONS:MDOCS;
  . seems that nothing requires .pre. and .post. includes.

Modified:
  head/sysutils/ledit/Makefile

Modified: head/sysutils/ledit/Makefile
==============================================================================
--- head/sysutils/ledit/Makefile	Mon May 27 11:07:49 2013	(r319208)
+++ head/sysutils/ledit/Makefile	Mon May 27 11:14:56 2013	(r319209)
@@ -1,10 +1,5 @@
-# ex:ts=8
-# Ports collection makefile for:	ledit
-# Date created:			Feb 8, 2005
-# Whom:				Marwan Burelle <marwan.burelle@lri.fr>
-#
+# Created by: Marwan Burelle <marwan.burelle@lri.fr>
 # $FreeBSD$
-#
 
 PORTNAME=	ledit
 PORTVERSION=	2.03
@@ -31,8 +26,7 @@ MAKE_JOBS_UNSAFE=	yes
 
 MAN1=		ledit.1
 PORTDOCS=	CHANGES LICENSE README
-
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE=	DOCS
 
 do-configure:
 	${REINPLACE_CMD} -e '/^BINDIR=/s;/usr/local;${PREFIX};' \
@@ -40,12 +34,12 @@ do-configure:
 			-e '/^MANDIR=/s;/usr/local;${PREFIX};' \
 			${WRKSRC}/Makefile
 
+.include <bsd.port.options.mk>
+
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-. for f in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-. endfor
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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