Bug 220433 - [NEW PORT] cad/calculix-ccx: Three-Dimensional Structural Finite Element Program
Summary: [NEW PORT] cad/calculix-ccx: Three-Dimensional Structural Finite Element Program
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Pedro F. Giffuni
URL:
Keywords: feature, needs-qa
Depends on:
Blocks: 220434
  Show dependency treegraph
 
Reported: 2017-07-02 17:25 UTC by Pedro F. Giffuni
Modified: 2017-08-15 00:31 UTC (History)
1 user (show)

See Also:


Attachments
calculix-ccx as a shar file (140.80 KB, application/x-shar)
2017-07-02 17:25 UTC, Pedro F. Giffuni
no flags Details
calculix-cxx port as a diff for easier reading (140.58 KB, patch)
2017-07-02 17:26 UTC, Pedro F. Giffuni
no flags Details | Diff
Updated version (140.51 KB, patch)
2017-08-13 23:04 UTC, Pedro F. Giffuni
no flags Details | Diff
Updated version: take 2 (140.51 KB, patch)
2017-08-14 01:03 UTC, Pedro F. Giffuni
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro F. Giffuni freebsd_committer freebsd_triage 2017-07-02 17:25:11 UTC
Created attachment 184010 [details]
calculix-ccx as a shar file

Break up the cad/calculix port in the two parts that compose it.

The command-line tool for analyzing mechanical structures has it's own requirements in that it uses OpenMP and a Fortran compiler. Having it independent is much more useful and eases the maintainance.

And independent PR with the GraphiX part will be submitted shortly.
Comment 1 Pedro F. Giffuni freebsd_committer freebsd_triage 2017-07-02 17:26:30 UTC
Created attachment 184011 [details]
calculix-cxx port as a diff for easier reading
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2017-07-12 23:59:14 UTC
Given this and other related bugs split up an existing port into separate (new) ports, I'd consider bundling them up into a single changeset/issue/review, as they will need to be committed at once/together/atomically
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2017-07-13 00:00:15 UTC
Minor nit: I'd tweak each new ports COMMENT so that its clear which part of the whole each port provides
Comment 4 Gerald Pfeifer freebsd_committer freebsd_triage 2017-08-13 22:48:32 UTC
Thank you, Pedro!

I know realize you were looking for a ports committer to review/approve,
which I am happy to help with:


Could you use ${DIST_PS} in
EXTRACT_ONLY+=  ${DIST_HTM} ccx_${PORTVERSION}.ps${EXTRACT_SUFX} ?

Why do you have
  +     @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
  +     @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
twice?

I personally would have found a comment on the use of EXTRACT_ONLY
helpful; it took me a bit to understand why you had to use that. ;-)

Can you combine the two blocks starting with
  +.if ${PORT_OPTIONS:MEXAMPLES}
and
  +.if empty(PORT_OPTIONS:MEXAMPLES)
?

And there should be a tab before METIS in OPTIONS_SINGLE= METIS.

I suggest you add a comment on why ALL_TARGET is set empty.


In pkg-descr it's "can be built" (instead of "build"), but better even
use active form such as "Build, calculate, and post-process Calc..."?

(Note the Oxford comma before "and post-process" in either case.)

And omit the trailing / in the URL.


Approved by: gerald with the changes above (and suggestions at least
considered).

Thank you!
Comment 5 Pedro F. Giffuni freebsd_committer freebsd_triage 2017-08-13 23:04:57 UTC
Created attachment 185374 [details]
Updated version

OK, I applied you feedback, huge thanks!

Most was leftover cruft from the older "merged" port.
Comment 6 Gerald Pfeifer freebsd_committer freebsd_triage 2017-08-13 23:16:06 UTC
You're very welcome, Pedro!


One area where I may not have been clear enough.  If we look at

+.if ${PORT_OPTIONS:MEXAMPLES}
+DISTFILES+=	${DIST_EXAMPLES}
+EXTRACT_ONLY+=	${DIST_EXAMPLES}
+.endif

and

+.if empty(PORT_OPTIONS:MEXAMPLES)
+PLIST_SUB=	PORTEXAMPLES="@comment "
+.else
+PLIST_SUB=	PORTEXAMPLES=""
+.endif

can these two be merged into just one?
Comment 7 Pedro F. Giffuni freebsd_committer freebsd_triage 2017-08-14 00:54:11 UTC
(In reply to Gerald Pfeifer from comment #6)
Yes.. I am resting that ... and an issue I just noticed with a perl shebang.
Comment 8 Pedro F. Giffuni freebsd_committer freebsd_triage 2017-08-14 01:03:43 UTC
Created attachment 185380 [details]
Updated version: take 2

Update.

Note: the uses a date.pl script which requires some investigation for reproducibility purposes. I should also add a build dependency to perl, however it appears we have never had issues is perl is not found so I will defer that to a future revision.
Comment 9 Pedro F. Giffuni freebsd_committer freebsd_triage 2017-08-15 00:31:00 UTC
Committed as part of r447973.