Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jun 2013 12:38:12 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r321886 - head/sysutils/ataidle
Message-ID:  <201306271238.r5RCcCB8032951@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Thu Jun 27 12:38:11 2013
New Revision: 321886
URL: http://svnweb.freebsd.org/changeset/ports/321886

Log:
  sysutils/ataidle: minor fixes
  
  - Trim Makefile header
  - Add DOCS option
  - NOPORTDOCS -> PORTOPTIONS:MDOCS

Modified:
  head/sysutils/ataidle/Makefile

Modified: head/sysutils/ataidle/Makefile
==============================================================================
--- head/sysutils/ataidle/Makefile	Thu Jun 27 12:36:31 2013	(r321885)
+++ head/sysutils/ataidle/Makefile	Thu Jun 27 12:38:11 2013	(r321886)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	ataidle
-# Date created:		2004-01-11
-# Whom:			Bruce Cran <bruce@cran.org.uk>
-#
+# Created by: Bruce Cran <bruce@cran.org.uk>
 # $FreeBSD$
-#
 
 PORTNAME=	ataidle
 PORTVERSION=	2.7.2
@@ -18,12 +14,16 @@ MAN8=		ataidle.8
 PORTDOCS=	COPYING Changelog README
 PLIST_FILES=	sbin/ataidle
 
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/ataidle ${PREFIX}/sbin
 	${INSTALL_MAN} ${WRKSRC}/ataidle.8 ${MAN8PREFIX}/man/man8
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>



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