Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jun 2008 11:00:02 GMT
From:      Matthias Andree <matthias.andree@gmx.de>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/124184: [MAINTAINER] archivers/lzo2: reduce self-test
Message-ID:  <200806021100.m52B02Jv092078@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/124184; it has been noted by GNATS.

From: Matthias Andree <matthias.andree@gmx.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: freebsd-ports-bugs@freebsd.org,miwi@freebsd.org
Subject: Re: ports/124184: [MAINTAINER] archivers/lzo2: reduce self-test
Date: Mon,  2 Jun 2008 12:56:41 +0200 (CEST)

 verbosity, add documentation
 
 New patch below to heed EXAMPLESDIR, NOPORTEXAMPLES and thereabouts.
 
 --- 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-02 12:47: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,21 @@
  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}
  .endif
 +.if !defined(NOPORTEXAMPLES)
 +	${MKDIR} ${EXAMPLESDIR}
 +	${INSTALL_DATA}	${WRKSRC}/examples/[a-z]*.[ch] ${EXAMPLESDIR}/
 +.endif
  
  .include <bsd.port.mk>
 diff -ruN --exclude=CVS /usr/ports/archivers/lzo2/Makefile~ /usr/home/emma/ports/archivers/lzo2/Makefile~
 --- /usr/ports/archivers/lzo2/Makefile~	1970-01-01 01:00:00.000000000 +0100
 +++ /usr/home/emma/ports/archivers/lzo2/Makefile~	2008-06-02 11:54:54.000000000 +0200
 @@ -0,0 +1,45 @@
 +# New ports collection makefile for:	lzo
 +# Date created:				21 Feb 1998
 +# Whom:					giffunip@asme.org
 +#
 +# $FreeBSD: ports/archivers/lzo2/Makefile,v 1.41 2008/05/30 15:39:24 miwi Exp $
 +#
 +
 +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/ \
 +		http://ftp.uni-koeln.de/util/arc/
 +MASTER_SITE_SUBDIR=	libs/compression
 +DISTNAME=	lzo-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
 +
 +MAINTAINER=	matthias.andree@gmx.de
 +COMMENT=	Portable speedy, lossless data compression library
 +
 +USE_AUTOTOOLS=	libtool:15
 +GNU_CONFIGURE=	yes
 +CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
 +CONFIGURE_ARGS=	--enable-shared
 +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}
 +.endif
 +.if !defined(NOPORTEXAMPLES)
 +	${MKDIR} ${EXAMPLESDIR}/examples
 +	${INSTALL_DATA}	${WRKSRC}/examples/[a-z]*.[ch] ${EXAMPLESDIR}/
 +.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-02 11:52:19.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-02 11:54:17.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
 +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dict.c
 +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lzopack.c
 +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/overlap.c
 +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/portab.h
 +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/portab_a.h
 +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/precomp.c
 +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/precomp2.c
 +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/simple.c
 +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
  %%PORTDOCS%%@dirrm %%DOCSDIR%%
 -@dirrm include/lzo
 --- lzo2-2.03_1.patch ends here ---
 



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