Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 May 2013 08:44:40 +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: r319099 - head/sysutils/seatools
Message-ID:  <201305260844.r4Q8ieFA034256@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bsam
Date: Sun May 26 08:44:40 2013
New Revision: 319099
URL: http://svnweb.freebsd.org/changeset/ports/319099

Log:
  . trim Makefile headers;
  . remove pkg-plist file;
  . use options for DOCS;
  . mute mkdir;
  . install DOCS at do-install stage rather then post-install;
  . remove check for unsupported OSVERSION.

Deleted:
  head/sysutils/seatools/pkg-plist
Modified:
  head/sysutils/seatools/Makefile

Modified: head/sysutils/seatools/Makefile
==============================================================================
--- head/sysutils/seatools/Makefile	Sun May 26 08:38:26 2013	(r319098)
+++ head/sysutils/seatools/Makefile	Sun May 26 08:44:40 2013	(r319099)
@@ -1,9 +1,5 @@
-# Ports collection makefile for:	linux-seatools
-# Date created:		 		08 Apr 2007
-# Whom:					Boris Samorodov <bsam@FreeBSD.org>
-#
+# Created by: Boris Samorodov <bsam@FreeBSD.org>
 # $FreeBSD$
-#
 
 PORTNAME=		seatools
 PORTVERSION=		2.54
@@ -22,33 +18,28 @@ RESTRICTED=		The distfile should be down
 ONLY_FOR_ARCHS=		i386 amd64
 USE_LINUX=		yes
 
+PLIST_FILES=		sbin/st
+PORTDOCS=		sthelp.txt
+
+OPTIONS_DEFINE=		DOCS
+
 do-build:
 	@${BRANDELF} -t Linux ${WRKSRC}/st
 
+.include <bsd.port.options.mk>
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/st ${PREFIX}/sbin/st
-
-post-install:
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_MAN} ${WRKSRC}/sthelp.txt ${DOCSDIR}/sthelp.txt
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/sthelp.txt ${DOCSDIR}/sthelp.txt
 .endif
 
 .include <bsd.port.pre.mk>
 
-.if defined(NOPORTDOCS)
-PLIST_SUB+=		PORTDOCS="@comment "
-.else
-PLIST_SUB+=		PORTDOCS=
-.endif
-
 .if (!exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}))
 IGNORE=	please access ${DOWNLOAD_URL} with a web browser, fill the web form.\
 Please place the downloaded ${DISTNAME}${EXTRACT_SUFX} in ${DISTDIR}
 .endif
 
-.if ${OSVERSION} < 700037
-IGNORE=			needs CAM sg
-.endif
-
 .include <bsd.port.post.mk>



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