Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  1 Jun 2008 11:27:53 +0200 (CEST)
From:      Matthias Andree <matthias.andree@gmx.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/124184: [MAINTAINER] archivers/lzo2: reduce self-test verbosity, add documentation
Message-ID:  <20080601092753.A8554C609@merlin.emma.line.org>
Resent-Message-ID: <200806010930.m519U2sp030851@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         124184
>Category:       ports
>Synopsis:       [MAINTAINER] archivers/lzo2: reduce self-test verbosity, add documentation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 01 09:30:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Andree
>Release:        FreeBSD 6.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD merlin.emma.line.org 6.3-STABLE FreeBSD 6.3-STABLE #32: Sat May 24 05:33:59 CEST 2008
>Description:
- reduce self-test verbosity (requested by Chuck Swiger)
- add some documentation and example source files
- bump PORTREVISION

Added file(s):
- files/patch-silence-lzotest.c

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- lzo2-2.03_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/archivers/lzo2/Makefile /usr/home/emma/ports/archivers/lzo2/Makefile
--- /usr/ports/archivers/lzo2/Makefile	2008-05-30 17:39:24.000000000 +0200
+++ /usr/home/emma/ports/archivers/lzo2/Makefile	2008-06-01 11:14:54.000000000 +0200
@@ -7,6 +7,7 @@
 
 PORTNAME=	lzo2
 PORTVERSION=	2.03
+PORTREVISION=	1
 CATEGORIES=	archivers devel
 MASTER_SITES=	http://www.oberhumer.com/opensource/lzo/download/ \
 		http://fresh.t-systems-sfr.com/unix/src/misc/ \
@@ -24,12 +25,19 @@
 USE_LDCONFIG=	yes
 
 post-build:
+	@${ECHO_MSG} "===>  Running self-tests for ${PKGNAME} (can take a few minutes, without output)"
 	cd ${WRKSRC} && ${MAKE} test
 
 post-install:
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}
+	cd ${WRKSRC} && ${REINPLACE_CMD} -e 's,doc/,,' NEWS README
+.for i in AUTHORS BUGS COPYING NEWS README THANKS
+	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
+.endfor
 	${INSTALL_DATA}	${WRKSRC}/doc/* ${DOCSDIR}
+	${MKDIR} ${DOCSDIR}/examples
+	${INSTALL_DATA}	${WRKSRC}/examples/[a-z]*.[ch] ${DOCSDIR}/examples/
 .endif
 
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/archivers/lzo2/files/patch-silence-lzotest.c /usr/home/emma/ports/archivers/lzo2/files/patch-silence-lzotest.c
--- /usr/ports/archivers/lzo2/files/patch-silence-lzotest.c	1970-01-01 01:00:00.000000000 +0100
+++ /usr/home/emma/ports/archivers/lzo2/files/patch-silence-lzotest.c	2008-06-01 10:12:59.000000000 +0200
@@ -0,0 +1,27 @@
+This test reduces the lzotest verbosity so that it doesn't print anything
+on success.
+
+--- lzotest/lzotest.c.orig	2008-06-01 10:01:36.000000000 +0200
++++ lzotest/lzotest.c	2008-06-01 10:03:10.000000000 +0200
+@@ -226,7 +226,7 @@
+ 
+ struct corpus_entry_t;
+ 
+-int opt_verbose = 2;
++int opt_verbose = 1;
+ 
+ long opt_c_loops = 0;
+ long opt_d_loops = 0;
+@@ -1910,10 +1910,12 @@
+ #elif defined(LZOTEST_USE_DYNLOAD)
+ #  include "dynload/init.ch"
+ #else
++#if 0
+     printf("\nLZO real-time data compression library (v%s, %s).\n",
+            lzo_version_string(), lzo_version_date());
+     printf("Copyright (C) 1996-2008 Markus Franz Xaver Johannes Oberhumer\nAll Rights Reserved.\n\n");
++#endif
+ #endif
+ 
+ 
+ /*
diff -ruN --exclude=CVS /usr/ports/archivers/lzo2/pkg-plist /usr/home/emma/ports/archivers/lzo2/pkg-plist
--- /usr/ports/archivers/lzo2/pkg-plist	2006-02-23 11:34:20.000000000 +0100
+++ /usr/home/emma/ports/archivers/lzo2/pkg-plist	2008-06-01 11:12:39.000000000 +0200
@@ -11,13 +11,28 @@
 include/lzo/lzoconf.h
 include/lzo/lzodefs.h
 include/lzo/lzoutil.h
+@dirrm include/lzo
 lib/liblzo2.a
 lib/liblzo2.la
 lib/liblzo2.so
 lib/liblzo2.so.2
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/BUGS
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
 %%PORTDOCS%%%%DOCSDIR%%/LZO.FAQ
 %%PORTDOCS%%%%DOCSDIR%%/LZO.TXT
 %%PORTDOCS%%%%DOCSDIR%%/LZOAPI.TXT
 %%PORTDOCS%%%%DOCSDIR%%/LZOTEST.TXT
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/THANKS
+%%PORTDOCS%%%%DOCSDIR%%/examples/dict.c
+%%PORTDOCS%%%%DOCSDIR%%/examples/lzopack.c
+%%PORTDOCS%%%%DOCSDIR%%/examples/overlap.c
+%%PORTDOCS%%%%DOCSDIR%%/examples/portab.h
+%%PORTDOCS%%%%DOCSDIR%%/examples/portab_a.h
+%%PORTDOCS%%%%DOCSDIR%%/examples/precomp.c
+%%PORTDOCS%%%%DOCSDIR%%/examples/precomp2.c
+%%PORTDOCS%%%%DOCSDIR%%/examples/simple.c
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/examples
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm include/lzo
--- lzo2-2.03_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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