svn commit: r324079 - head/sysutils/wmtop
Alexey Dokuchaev
danfe at FreeBSD.org
Thu Aug 1 01:54:25 UTC 2013
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 at 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/
More information about the svn-ports-head
mailing list