svn commit: r423265 - in head/math/libranlip: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Tue Oct 4 15:16:00 UTC 2016
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 at 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 <bsd.port.mk>
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
More information about the svn-ports-head
mailing list