Skip to content
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

Package lib3mf #40307

Closed
wants to merge 2 commits into from
Closed

Package lib3mf #40307

wants to merge 2 commits into from

Conversation

enderger
Copy link

@enderger enderger commented Nov 2, 2022

Testing the changes

  • I tested the changes in this PR: YES

New package

@classabbyamp classabbyamp added the new-package This PR adds a new package label Nov 2, 2022
@enderger
Copy link
Author

enderger commented Nov 2, 2022

Should be ready to merge, I just used the OpenSCAD build to successfully compile a decently complicated design into 3mf.

srcpkgs/lib3mf/template Outdated Show resolved Hide resolved
@enderger
Copy link
Author

enderger commented Nov 2, 2022

Probably should have ran the linter...

@enderger
Copy link
Author

enderger commented Nov 2, 2022

Just fixed the indentation and rebuilt, the only change was the indentation so it should be fine if the rest of the checks pass.

@enderger
Copy link
Author

enderger commented Nov 2, 2022

@paper42 - Sorry for any confusion, I pushed another commit during the CI run so it does actually need to run again. This time, I've ensured that the linter passes and the project compiles, so CI should pass this time.

configure_args="-DUSE_INCLUDED_LIBZIP=OFF -DUSE_INCLUDED_ZLIB=OFF
-DUSE_INCLUDED_GTEST=OFF -DUSE_INCLUDED_SSL=OFF
-DCMAKE_INSTALL_INCLUDEDIR='include/$pkgname' -DCMAKE_INSTALL_PREFIX=/usr
$([ "$XBPS_CHECK_PKGS" ] || echo '-DLIB3MF_TESTS=OFF')"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would be better as an if block below:

if [ -z "$XBPS_CHECK_PKGS" ]; then
	configure_args+=" -DLIB3MF_TESTS=OFF"
fi

however, I don't think it will affect the final build if the tests are always built

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests have dependencies, so they won't compile correctly by default AFAIK.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that can be added to make_depends

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely sure what the point of check dependencies are then, but if it's more idiomatic I'll merge them.

srcpkgs/lib3mf/template Outdated Show resolved Hide resolved
srcpkgs/lib3mf/template Show resolved Hide resolved
Comment on lines 23 to 25
build_options="3mf"
desc_option_png="Enable support for 3MF models"
build_options_default="3mf"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why make this a build option?

also, these variables should go before the pre_patch() function

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not having it is the behavior beforehand and the library is optional, so I figured it qualified as an optional feature.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the positioning

@enderger
Copy link
Author

enderger commented Nov 3, 2022

Alright, I had to move the symlinking to pre_install for the development package to allow it to build.

@github-actions
Copy link

github-actions bot commented Feb 1, 2023

Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.

@github-actions github-actions bot added the Stale label Feb 1, 2023
@github-actions github-actions bot closed this Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-package This PR adds a new package Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants