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 request: solvespace, template file included, needs fixing #45898

Closed
michalszmidt opened this issue Sep 3, 2023 · 0 comments
Closed
Labels
request Package request

Comments

@michalszmidt
Copy link

Package name

solvespace

Package homepage

https://solvespace.com/

Description

My 3 cents:
It's just easier to get started comparing to advanced CADs, really good for quick 3d printing.

From their website:
SOLVESPACE is a free (GPLv3) parametric 3d CAD tool. Applications include:

  • modeling 3d parts — draw with extrudes, revolves, helixes and Boolean (union / difference / intersection) operations
  • modeling 2d parts — draw the part as a single section, and export DXF, PDF, SVG; use 3d assembly to verify fit
  • 3d-printed parts — export the STL or other triangle mesh expected by most 3d printers
  • preparing CAM data — export 2d vector art for a waterjet machine or laser cutter; or generate STEP or STL, for import into third-party CAM software for machining
  • mechanism design — use the constraint solver to simulate planar or spatial linkages, with pin, ball, or slide joints
  • plane and solid geometry — replace hand-solved trigonometry and spreadsheets with a live dimensioned drawing_

Current work
Uses cmake as build system if compiled from release (doesn't contain .git directory in tree) needs patch, that sets GIT_COMMIT_HASH to one from commit and comments out some other script, see below). I tried to xbps-src to handle that but without success, please help.

patch was done using regular diff not git diff.

It's my first contribution here, forgive mistakes.

pkgname=solvespace
version=3.1
revision=1
archs="x86_64*"
build_style=cmake
configure_args="-DCMAKE_BUILD_TYPE=Release -DENABLE_OPENMP=ON"
makedepends="base-devel git zlib-devel libpng-devel cairo-devel freetype-devel json-c-devel fontconfig-devel gtkmm-devel pangomm-devel libspnav-devel MesaLib-devel glu-devel libgomp-devel eigen mimalloc-devel"
depends="zlib libpng cairo freetype json-c fontconfig gtkmm pangomm libspnav glu libgomp eigen mimalloc"
short_desc="Free parametric 3d CAD tool. CLI and GUI"
maintainer="Orphan <orphan@voidlinux.org>"
license="GPL-3.0"
homepage="https://solvespace.com"
distfiles="https://github.com/solvespace/solvespace/releases/download/v${version}/solvespace-${version}.tar.xz"
checksum=34a273ce642d0c77b8f101463730ed4eade7d90cfabfe486f3e7cbf494ff132a

patch

--- a/CMakeLists.txt	2023-09-03 21:54:08.706827662 +0000
+++ b/CMakeLists.txt	2023-09-03 22:02:20.616113196 +0000
@@ -34,9 +34,9 @@
 # NOTE TO PACKAGERS: The embedded git commit hash is critical for rapid bug triage when the builds
 # can come from a variety of sources. If you are mirroring the sources or otherwise build when
 # the .git directory is not present, please comment the following line:
-include(GetGitCommitHash)
+# include(GetGitCommitHash)
 # and instead uncomment the following, adding the complete git hash of the checkout you are using:
-# set(GIT_COMMIT_HASH 0000000000000000000000000000000000000000)
+set(GIT_COMMIT_HASH 70bde63cb32a7f049fa56cbdf924e2695fcb2916)
 
 string(SUBSTRING "${GIT_COMMIT_HASH}" 0 8 solvespace_GIT_HASH)
 project(solvespace

Does the requested package meet the package requirements?

Compiled

Is the requested package released?

Yes

@michalszmidt michalszmidt added the request Package request label Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Package request
Projects
None yet
Development

No branches or pull requests

1 participant