Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Aug 2013 01:54:24 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r324079 - head/sysutils/wmtop
Message-ID:  <201308010154.r711sOZZ095112@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Thu Aug  1 01:54:24 2013
New Revision: 324079
URL: http://svnweb.freebsd.org/changeset/ports/324079

Log:
  - Unbreak parallel (-jX) builds by switching to GNU make
  - Define LICENSE (GPLv2) and do not spam portdocs with COPYING
  - Remove non-working URL from master sites, improve pkg-descr
  - Tidy up post-patch and do-install targets, convert NOPORTDOCS

Modified:
  head/sysutils/wmtop/Makefile
  head/sysutils/wmtop/pkg-descr

Modified: head/sysutils/wmtop/Makefile
==============================================================================
--- head/sysutils/wmtop/Makefile	Wed Jul 31 23:00:51 2013	(r324078)
+++ head/sysutils/wmtop/Makefile	Thu Aug  1 01:54:24 2013	(r324079)
@@ -5,38 +5,36 @@ PORTNAME=	wmtop
 PORTVERSION=	0.84
 PORTREVISION=	3
 CATEGORIES=	sysutils windowmaker
-MASTER_SITES=	http://ftp1.sourceforge.net/wmtop/ \
-		SF		
+MASTER_SITES=	SF
 
 MAINTAINER=	uqs@FreeBSD.org
-COMMENT=	Windowmaker dock app to display top 3 CPU consuming processes
+COMMENT=	Dockapp to display top three CPU consuming processes
 
+LICENSE=	GPLv2
+
+USES=		gmake			# gmake is needed for -jX builds
 USE_XORG=	xpm x11
 USE_CSTD=	gnu89
 ALL_TARGET=	freebsd
-MAKE_JOBS_UNSAFE=	yes
 
 MAN1=		wmtop.1
+PORTDOCS=	BUGS CHANGES README TODO
 PLIST_FILES=	bin/wmtop
 
-.if !defined(NOPORTDOCS)
-PORTDOCS=	BUGS CHANGES COPYING README TODO
-.endif
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
 
 post-patch:
-	${REINPLACE_CMD} -e 's/^\(LIBS.*\)/\1 -lkvm/' ${WRKSRC}/Makefile
-	${REINPLACE_CMD} -e 's/^\(FLAGS.*\)/\1 -DNO_PROCFS/' ${WRKSRC}/Makefile
+	@${REINPLACE_CMD} -e 's/^\(LIBS.*\)/\1 -lkvm/ ; \
+		s/^\(FLAGS.*\)/\1 -DNO_PROCFS/' ${WRKSRC}/Makefile
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/wmtop ${PREFIX}/bin/
-	${INSTALL_MAN} ${WRKSRC}/wmtop.1 ${PREFIX}/man/man1
-.if !defined(NOPORTDOCS)
-	@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 555 \
-		${PREFIX}/share/doc/${PORTNAME}
-.for file in BUGS CHANGES COPYING README TODO
-	@${INSTALL_DATA} ${WRKSRC}/${file} \
-		${PREFIX}/share/doc/${PORTNAME}
-.endfor
-.endif # !NOPORTDOCS
+	${INSTALL_PROGRAM} ${WRKSRC}/wmtop ${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/wmtop.1 ${MANPREFIX}/man/man1
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
+.endif
 
 .include <bsd.port.mk>

Modified: head/sysutils/wmtop/pkg-descr
==============================================================================
--- head/sysutils/wmtop/pkg-descr	Wed Jul 31 23:00:51 2013	(r324078)
+++ head/sysutils/wmtop/pkg-descr	Thu Aug  1 01:54:24 2013	(r324079)
@@ -1,6 +1,5 @@
-This is a port of wmtop which is a Windowmaker dock app which
-monitors the top 3 processes (in terms of CPU usage). You can
-configure which processes are displayed and it can be used as an
-application launcher.
+This is port of wmtop, a Windowmaker dockapp which monitors the top three
+processes (in terms of CPU usage).  You can configure which processes are
+displayed, and it can also be used as an application launcher.
 
 WWW: http://wmtop.sourceforge.net/



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