Created attachment 151587 [details] shar file with new port Overview: The attached patch adds math/cminpack to our ports collection. This is for the last available version (1.3.4) From the website: "Minpack includes software for solving nonlinear equations and nonlinear least squares problems." It has no external dependencies (written in C). The need: Besides being useful by itself, it is a required dependency of the new version of cad/openvsp. Logs: Attached poudriere logs for {8.4,9.3,10.1}amd64
Created attachment 151588 [details] poudriere log on 8.4-RELEASE amd64
Created attachment 151589 [details] poudriere log on 9.3-RELEASE amd64
Created attachment 151590 [details] poudriere log on 10.1-RELEASE amd64
X ${MV} ${STAGEDIR}${PREFIX}/lib/pkgconfig/cminpack.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/ X ${MKDIR} ${STAGEDIR}${PREFIX}/share/cmake/Modules/ X ${MV} ${STAGEDIR}${LOCALBASE}/share/cmake/Modules/FindCMinpack.cmake ${STAGEDIR}${PREFIX}/share/cmake/Modules/ It would be preferable to avoid this by patching/using REINPLACE_CMD to modify responsible CmakeLists.txt file. X.if ${PORT_OPTIONS:MEXAMPLES} X ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} X (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} "*.[ch] testdata" ${STAGEDIR}${EXAMPLESDIR}) X.endif Optional installation is deprecated with staging unless it's very heavy on resources but it's not an issue here. X@dir %%PORTEXAMPLES%%%%EXAMPLESDIR%%/testdata X@dir lib/pkgconfig X@dir share/cmake/Modules X@dir share/cmake @dir is not equivalent to deprecated @dirrm, should be only used for empty dirs on dirs with permissions other then default. See /usr/ports/CHANGES entry 20140922 for details.
(In reply to Pawel Pekala from comment #4) Attached new shar file. I changed the first two things you pointed out (thank you!). About @dir, shouldn't I use it since it refers to a directory out of PREFIX? Cheers.
Created attachment 152856 [details] New shar file
You misunderstood my advice about examples installation, what I meant was that this conditional construct is not needed: X.if ${PORT_OPTIONS:MEXAMPLES} <good installation commands now removed> X.endif Out of prefix files/directories begin with root '/' so your directories are all installed with PREFIX, example of out of prefix dir would be: @dir /var/run/some_file.
(In reply to Pawel Pekala from comment #7) I fixed the examples issue. Sorry, I misunderstood what you said. On the other issue... I read the CHANGES entry you pointed out, but if I remove those @dir entries in the plist file, I got errors from the QA scripts: ===> Checking for items in STAGEDIR missing from pkg-plist Error: Orphaned: @dir lib/pkgconfig Error: Orphaned: @dir /usr/local/share/cmake/Modules Error: Orphaned: @dir /usr/local/share/cmake and from my poudriere installations: ====> Running Q/A tests (stage-qa) ====> Checking for pkg-plist issues (check-plist) ===> Parsing plist ===> Checking for items in STAGEDIR missing from pkg-plist Error: Orphaned: @dir lib/pkgconfig ===> Checking for items in pkg-plist which are not in STAGEDIR ===> Error: Plist issues found. *** Error code 1 Note: I didn't update a new shar file.
Created attachment 153287 [details] shar file with new port This patch should address all the issues recorder in the log so far.
Created attachment 153288 [details] new poudriere log on 8.4-RELEASE-amd64
Created attachment 153289 [details] poudriere log on 9.3-RELEASE-amd64
Created attachment 153290 [details] new poudriere log on 10.1-RELEASE-amd64
(In reply to fernando.apesteguia from comment #8) OK. I think I got it. New shar file and new poudriere logs.
A commit references this bug: Author: pawel Date: Mon Feb 23 20:24:34 UTC 2015 New revision: 379703 URL: https://svnweb.freebsd.org/changeset/ports/379703 Log: Minpack includes software for solving nonlinear equations and nonlinear least squares problems. Five algorithmic paths each include a core subroutine and an easy-to-use driver. The algorithms proceed either from an analytic specification of the Jacobian matrix or directly from the problem functions. The paths include facilities for systems of equations with a banded Jacobian matrix, for least squares problems with a large amount of data, and for checking the consistency of the Jacobian matrix with the functions WWW: http://devernay.free.fr/hacks/cminpack/ PR: 196697 Submitted by: Fernando Apesteguia <fernando.apesteguia@gmail.com> Changes: head/math/Makefile head/math/cminpack/ head/math/cminpack/Makefile head/math/cminpack/distinfo head/math/cminpack/files/ head/math/cminpack/files/patch-CMakeLists.txt head/math/cminpack/files/patch-cmake_CMakeLists.txt head/math/cminpack/pkg-descr head/math/cminpack/pkg-plist