ports/161593: Update port: math/xplot

KATO Tsuguru tkato432 at yahoo.com
Fri Oct 14 18:50:07 UTC 2011


>Number:         161593
>Category:       ports
>Synopsis:       Update port: math/xplot
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 14 18:50:05 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Add USE_PERL5_RUN
- Support PORTDOCS/PLIST_FILES
- Add WWW: line

Remove file:
pkg-plist

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/math/xplot/Makefile math/xplot/Makefile
--- /usr/ports/math/xplot/Makefile	2008-04-29 18:34:54.000000000 +0900
+++ math/xplot/Makefile	2011-09-16 18:25:50.000000000 +0900
@@ -7,30 +7,32 @@
 
 PORTNAME=	xplot
 PORTVERSION=	0.90.7.1
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	math graphics net
 MASTER_SITES=	http://www.xplot.org/xplot/
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	X11 plotting package
 
+USE_XORG=	x11
+USE_PERL5_RUN=	yes
 GNU_CONFIGURE=	yes
 
-#XPLOT_DEMOS=	demo.0 demo.1 demo.2 demo.3 demo.4 demo.5 demo.6 demo.7
-
-USE_XORG=	x11
 MAN1=		tcpdump2xplot.1 xplot.1
+PORTDOCS=	README README.tcp_plots
+PLIST_FILES=	bin/tcpdump2xplot bin/tcpdump2xplot.pl bin/xplot
+
+post-patch:
+	@${REINPLACE_CMD} -e \
+		'/INSTALL/s|2xplot$$|2xplot.pl|' ${WRKSRC}/Makefile.in
 
 post-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/tcpdump2xplot.pl ${PREFIX}/bin
+	${LN} -sf tcpdump2xplot.pl ${PREFIX}/bin/tcpdump2xplot
 .if !defined(NOPORTDOCS)
-	${MKDIR} ${PREFIX}/share/doc/xplot
-	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xplot
-	${INSTALL_DATA} ${WRKSRC}/README.tcp_plots ${PREFIX}/share/doc/xplot
+	@${MKDIR} ${DOCSDIR}
+.for doc in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
+.endfor
 .endif
-#	${MKDIR} ${PREFIX}/share/examples/xplot
-#.for i in ${XPLOT_DEMOS}
-#	${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/examples/xplot
-#.endfor
 
 .include <bsd.port.mk>
diff -urN /usr/ports/math/xplot/pkg-descr math/xplot/pkg-descr
--- /usr/ports/math/xplot/pkg-descr	2001-02-01 08:28:04.000000000 +0900
+++ math/xplot/pkg-descr	2011-09-16 18:18:37.000000000 +0900
@@ -1,2 +1,3 @@
-An X11 graphing utility.  Commonly used to display TCP
-traces.
+An X11 graphing utility.  Commonly used to display TCP traces.
+
+WWW: http://www.xplot.org/
diff -urN /usr/ports/math/xplot/pkg-plist math/xplot/pkg-plist
--- /usr/ports/math/xplot/pkg-plist	2008-08-29 00:38:50.000000000 +0900
+++ math/xplot/pkg-plist	1970-01-01 09:00:00.000000000 +0900
@@ -1,6 +0,0 @@
-bin/xplot
-bin/tcpdump2xplot
-bin/tcpdump2xplot.pl
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/README.tcp_plots
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list