diff options
Diffstat (limited to 'media-gfx/solvespace')
-rw-r--r-- | media-gfx/solvespace/Manifest | 4 | ||||
-rw-r--r-- | media-gfx/solvespace/solvespace-3.0.ebuild | 84 |
2 files changed, 88 insertions, 0 deletions
diff --git a/media-gfx/solvespace/Manifest b/media-gfx/solvespace/Manifest index 62c2ae13bf76..9f024a5190ed 100644 --- a/media-gfx/solvespace/Manifest +++ b/media-gfx/solvespace/Manifest @@ -1,5 +1,9 @@ AUX solvespace-2.3-gcc11-missing-limits-inc.patch 490 BLAKE2B f06ccd75f0973a782c01fa3f4c61c0fa8512471ee9f04140040ebf7552424c0a67d602b39a72449cb00ee7019bd6f47f8c25b7d27cf098e8c6670ec18105a3c2 SHA512 d56d529956ec37f4e84924b570cc90082f7d806ddb35297ad8e9854a50b19e15ab5d62e9a18cfdcfef2f90ca6ac669b96ee32be265a9fba79f3cfc34e186bf78 +DIST libdxfrw-0.6.3-0b7b7b709d9299565db603f878214656ef5e9ddf.tar.gz 691804 BLAKE2B 84c90a591fac71144e9e13aace7c1a00dfc1bd6f27b0bcde6b60541f5b5d3ccc04ae1c759f60cb467445cc884840d04bf4613b5cc553fbbf6951cac33a084d50 SHA512 9ab498aa7f369be79d800e8ca5ec55fa54be79d0778937b81d4c8da776b3419cb8a75400b54b205efc338da32e2e781afd0bed1bd8efed1a0b212dc8682a2615 DIST libdxfrw-0.6.3-87ff1082f49b1286a033ac8f38fe8dde0975bb8b.tar.gz 691867 BLAKE2B bd3414930efe8cc1185a20f889dda3ec8ea46e40d3a1a4c24975683fc444161acdff576a1f40c34203e523e88bacf3841c50928340e7865650a113e65375f930 SHA512 0f8e2561887fbc5101787f0d7818328864b5c4a679ef539fcdbda8c124ab4a808663f9ba645d397f154596eab1eb7c6f0bdf3883bf6975392863e01bada3a1f0 +DIST mimalloc-2.0.1-dc6bce256d4f3ce87761f9337977dff3d8b1776c.tar.gz 912721 BLAKE2B 0129b7650303be9bd82e9a99f6a81cc5aacf93c4e2d36813520d59b61410c00c2b84979b9aa901dc9f67a88110115882987b4eceebe880c548adbab4a328c415 SHA512 bf1770ae0225207aa072a103cb13671ac8a759aeb8e81dec6b1bf4192dc87c927153c34a4d6c42075d021cdb4a294a2863e9f70eed386912ccc0699120bd967e DIST solvespace-2.3.tar.gz 2115940 BLAKE2B 67e2d81e0a609d0344a6f28d33a78609b01c7105785f93aa1124f0592fe0e31d4846e6dd406339b2ef2c5f3961f91302a73c5391fe2e0f435e78c3a97ed67612 SHA512 9d22e467337591cd9a4935124d18733b8337f5785ab5738f4a94300f283ffe7d313569e379ae77e509d14182ffde8c9db7beaebb46ea7c0507c6b05010fe1a56 +DIST solvespace-3.0.tar.gz 2734860 BLAKE2B 2efc9d98723c60abdb1c76ac086c40ff2f9b8bc9c315978731493d115fa55a080176ef48d930e3b503c0de0604dbfd2bc3bd99a581f359eb07a23034d09f84bf SHA512 b07b41fac1d67c5350082600a2f09e3fa611a1273e0c93ff93d11a7a1dbf550ff33465686eaff04fdb8350d1fe854ab0301d8723ef31cc65c687ba59cb89187f EBUILD solvespace-2.3.ebuild 1628 BLAKE2B 2763c9e29f727a538d7a3260579002e9ec9f572722c325e474a8404781173b31f69268f886d146d658ebcc62a2ce54e2cc6e35b03eec45e74c200c97ee6901f2 SHA512 57c8916c7a47cba610c7d31f94bce30e399945246c663f9341bf0bd6649488f631676b900f6ea5ab64643a4860d682166f369c52aa91e9f4a0f0901e95f63c18 +EBUILD solvespace-3.0.ebuild 2270 BLAKE2B b81c6f7a928eba221c9fa70a4ce8906593a1e21bdd72e4c12d57c1aee075e84967243746bb85f4d553227c95fb7c218a5d40b6d22ee3d5571496686b76dbaf43 SHA512 8da0d687b1393fec5c0e36cf8fc9910974370eed29eaf846477d5f65396b746869b006e7f0425fe4cdba85791156227fad3c24a28bb3477b1ce002b1cb2c8ea5 MISC metadata.xml 1285 BLAKE2B 334458d57d900cc6ceff7f5f45452eed1a501ca0b4349f6b12a9b3ffcead7e82ba7af35e5afaf262858f95deaafce6d011f6e94e8848a5d9a82ada0699643d11 SHA512 eabafc95662dfc2f842ed84b909fcb547630ddb5cbcb3fca12cc73a3eaa120e6292c105c7aff7a7d32fc2582161f39b11070122cd83f9296d211f02e389ad4e1 diff --git a/media-gfx/solvespace/solvespace-3.0.ebuild b/media-gfx/solvespace/solvespace-3.0.ebuild new file mode 100644 index 000000000000..3aec8b3130f2 --- /dev/null +++ b/media-gfx/solvespace/solvespace-3.0.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +DXFRW_COMMIT="0b7b7b709d9299565db603f878214656ef5e9ddf" +#DXFRW_COMMIT="87ff1082f49b1286a033ac8f38fe8dde0975bb8b" +DXFRW_PV="0.6.3" +DXFRW_P="libdxfrw-${DXFRW_PV}-${DXFRW_COMMIT}" + +MIMALLOC_COMMIT="dc6bce256d4f3ce87761f9337977dff3d8b1776c" +MIMALLOC_PV="2.0.1" +MIMALLOC_P="mimalloc-${MIMALLOC_PV}-${MIMALLOC_COMMIT}" + +inherit cmake xdg-utils + +DESCRIPTION="Parametric 2d/3d CAD" +HOMEPAGE="http://solvespace.com" +SRC_URI="https://github.com/solvespace/solvespace/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/solvespace/libdxfrw/archive/${DXFRW_COMMIT}.tar.gz -> ${DXFRW_P}.tar.gz + https://github.com/microsoft/mimalloc/archive/${MIMALLOC_COMMIT}.tar.gz -> ${MIMALLOC_P}.tar.gz" + +IUSE="openmp" +KEYWORDS="~amd64 ~x86" +LICENSE="GPL-3" +SLOT="0" + +RDEPEND="dev-cpp/atkmm:= + dev-cpp/glibmm:= + dev-cpp/gtkmm:3.0= + dev-cpp/pangomm:1.4 + dev-libs/glib:2 + dev-libs/json-c:= + dev-libs/libsigc++:= + media-libs/fontconfig + media-libs/freetype:2 + media-libs/libglvnd + media-libs/libpng:0= + sys-libs/zlib + virtual/opengl + x11-libs/cairo + x11-libs/gtk+:3" + +DEPEND="${RDEPEND} + virtual/pkgconfig" + +# NOTE: please keep commit hash actually when version up +GIT_COMMIT_HASH="0e0b0252e23dd5bd4ae82ababcc54c44aee036d6" + +pkg_pretend() { + if use openmp ; then + tc-has-openmp || die "Please switch to an openmp compatible compiler" + fi +} + +src_prepare() { + rm -r "extlib/libdxfrw" || die "rm extlib/libdxfrw failed" + mv "${WORKDIR}/libdxfrw-${DXFRW_COMMIT}" "extlib/libdxfrw" || die "move libdxfrw-${DXFRW_COMMIT} failed" + rm -rf "extlib/mimalloc" || die "rm extlib/mimalloc failed" + mv "${WORKDIR}/mimalloc-${MIMALLOC_COMMIT}" "extlib/mimalloc" || die "move mimalloc-${MIMALLOC_COMMIT} failed" + sed -i '/include(GetGitCommitHash)/d' CMakeLists.txt || die 'remove GetGitCommitHash by sed failed' + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DGIT_COMMIT_HASH="${GIT_COMMIT_HASH}" + ) + if ! use openmp ; then + mycmakeargs+=("-DENABLE_OPENMP=OFF") + else + mycmakeargs+=("-DENABLE_OPENMP=ON") + fi + cmake_src_configure +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update +} |