svn commit: r319209 - head/sysutils/ledit
Boris Samorodov
bsam at FreeBSD.org
Mon May 27 11:14:57 UTC 2013
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 at lri.fr>
-#
+# Created by: Marwan Burelle <marwan.burelle at 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>
More information about the svn-ports-head
mailing list