From owner-svn-ports-head@freebsd.org Tue Oct 4 15:16:00 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A1111AF3A5B; Tue, 4 Oct 2016 15:16:00 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6515A65D; Tue, 4 Oct 2016 15:16:00 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u94FFxv6019323; Tue, 4 Oct 2016 15:15:59 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u94FFxj6019321; Tue, 4 Oct 2016 15:15:59 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201610041515.u94FFxj6019321@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Tue, 4 Oct 2016 15:15:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r423265 - in head/math/libranlip: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2016 15:16:00 -0000 Author: amdmi3 Date: Tue Oct 4 15:15:59 2016 New Revision: 423265 URL: https://svnweb.freebsd.org/changeset/ports/423265 Log: - Add LICENSE - Switch to options helpers - Switch to new test framework - Regenerate patches Modified: head/math/libranlip/Makefile head/math/libranlip/files/patch-examples__makefile Modified: head/math/libranlip/Makefile ============================================================================== --- head/math/libranlip/Makefile Tue Oct 4 15:11:41 2016 (r423264) +++ head/math/libranlip/Makefile Tue Oct 4 15:15:59 2016 (r423265) @@ -11,11 +11,14 @@ MASTER_SITES= LOCAL/bf \ MAINTAINER= ports@FreeBSD.org COMMENT= Random variate generator for Lipschitz-continuous densities +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING + USES= libtool GNU_CONFIGURE= yes USE_LDCONFIG= yes -INFO= ranlip +INFO= ranlip PLIST_FILES= include/ranlip.h include/ranlipdist.h include/ranlipproc.h lib/libranlip.so.1.0.0 \ lib/libranlip.so.1 lib/libranlip.so lib/libranlip.a PORTDOCS= ranlip.ps @@ -25,17 +28,22 @@ TESTPROGS= static_example static_example OPTIONS_DEFINE= DOCS EXAMPLES post-install: - ${MKDIR} ${STAGEDIR}${DOCSDIR} + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libranlip.so + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/docs/ranlip.ps ${STAGEDIR}${DOCSDIR} - ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + +post-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for _file in ${PORTEXAMPLES} ${INSTALL_DATA} ${WRKSRC}/examples/${_file} ${STAGEDIR}${EXAMPLESDIR} .endfor -test: build - @(cd ${WRKSRC}/examples; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} all) +do-test: + @(cd ${WRKSRC}/examples && ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} all) .for _prog in ${TESTPROGS} - @(cd ${WRKSRC}/examples && ./${_prog}) + (cd ${WRKSRC}/examples && ${SETENV} LD_LIBRARY_PATH="${STAGEDIR}${PREFIX}/lib" ./${_prog}) .endfor .include Modified: head/math/libranlip/files/patch-examples__makefile ============================================================================== --- head/math/libranlip/files/patch-examples__makefile Tue Oct 4 15:11:41 2016 (r423264) +++ head/math/libranlip/files/patch-examples__makefile Tue Oct 4 15:15:59 2016 (r423265) @@ -1,5 +1,5 @@ ---- examples/makefile.orig 2004-05-19 05:53:57.000000000 -0400 -+++ examples/makefile 2010-02-06 20:58:35.000000000 -0500 +--- examples/makefile.orig 2004-05-19 09:53:57 UTC ++++ examples/makefile @@ -11,7 +11,7 @@ # distribution of RANLIP assuming different installations of the library. this # include the following examples for both static and shared linking. @@ -28,7 +28,7 @@ # Object file fo the example OBJ = ranliptest.o -@@ -38,68 +35,68 @@ +@@ -38,68 +35,68 @@ OBJ3 = ranliptestproc.o # LIB_PATH used to store the path in which the library files were installed. # The commented out assignment is for when the library is installed into the