-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opencv3/opencv4: add/update python subports; refine file layouts for consistency #9823
opencv3/opencv4: add/update python subports; refine file layouts for consistency #9823
Conversation
… consistency with opencv4 See: https://trac.macports.org/ticket/62011 See: https://trac.macports.org/ticket/49670
Notifying maintainers: |
Maintainers: Since port 'py-pytorch' is included, there's a good change the CI jobs may timeout and fail. Hopefully not, but having just gone through this with another PR... there's a good chance that will happen. |
see the cmake PG options that are meant to be used instead of setting the args directly, such as
|
Unfortunately that only covers a few of the umpteen CMake flags needed for these ports. But that type of cleanup will be looked at when opencv3 and opencv4 are finally merged together. |
Added use of opencv/opencv4: eliminate portfile duplication, via subports |
Would you also please add a commit for macports-ports/python/py-imutils/Portfile Line 34 in 2b2006b
|
Ah, that might help too... :-) Done. |
Alas, the last CI build failed due to timeout, for port |
Ken, are you okay with deferring cleanup via use of portgroup |
Well, here's the deal. The cmake 1.1. PortGroup adds a whole bunch of:
When you also add:
the cmake 1.1 PortGroup has no clue you did that, so it adds it's own things as well. Now -- the cmake 1.1 PortGroup puts it's thingamabobs in configure.pre_args, and you put yours in configure.args, so if we're lucky, yours come after, and trash the earlier ones added by the PortGroup. But this is just plain ugly, right? SO I would prefer if you take 5 minutes, and for args that the cmake PortGroup controls with those options I linked to, just set them that way instead, which is just better, cleaner, shorter, nicer, etc. If there is also some additional arg you really want to set that there is no cmake PortGroup option for, then add those by hand in the configure.args, and you won't be competing with the cmake portgroup. |
Ken, cmake-related changes completed. While it only eliminated a few of the configure arguments, it also gave me the opportunity to clean up path copy-paste... which was long-overdue anyway. Take a look, and let me know what you think. |
…ify via cmake portgroup when possible See: https://trac.macports.org/ticket/62011
a8dfbbd
to
5f1d975
Compare
Thanks Ken! |
Description
Note to Maintainers:
Type(s)
Tested on
macOS 10.8.5 12F2560
Xcode 5.1.1 5B1008
macOS 10.10.5 14F2511
Xcode 6.4 6E35b
macOS 10.11.6 15G22010
Xcode 7.3.1 7D1014
macOS 10.12.6 16G2136
Xcode 9.2 9C40b
macOS 10.13.6 17G14019
Xcode 10.1 10B61
macOS 10.14.6 18G103
Xcode 11.3.1 11C505
Verification
Have you
port lint
?sudo port test
?sudo port -vst install
?