diff --git a/dev-libs/miniz/Manifest b/dev-libs/miniz/Manifest new file mode 100644 index 0000000000000..c7204638ad309 --- /dev/null +++ b/dev-libs/miniz/Manifest @@ -0,0 +1 @@ +DIST miniz-2.1.0.tar.gz 104502 BLAKE2B 9a7b3818b454809cdfec523d98f13bef3a52e27b6d3857d289438978d12997e38c71aa97fffe060a6b765f8fbbdd8fe8cebced4a45d9f1f040dd3e39cf2a8055 SHA512 e0aba16afdf230d1e54d0a9cedd336b0b158b02744839f0547e14ee47a97fc1a6668f3a181bd46e969b01b158af18dc8ed3c0a4210b3b620242338a2788806b3 diff --git a/dev-libs/miniz/metadata.xml b/dev-libs/miniz/metadata.xml new file mode 100644 index 0000000000000..8cf9d7cdd9de9 --- /dev/null +++ b/dev-libs/miniz/metadata.xml @@ -0,0 +1,20 @@ + + + + + 3dprint@gentoo.org + Gentoo 3D Printer Project + + + Miniz is a lossless, high performance data compression library in a single source file that implements the zlib + (RFC 1950) and Deflate (RFC 1951) compressed data format specification standards. It supports the most commonly + used functions exported by the zlib library, but is a completely independent implementation so zlib's licensing + requirements do not apply. Miniz also contains simple to use functions for writing .PNG format image files and + reading/writing/appending .ZIP format archives. Miniz's compression speed has been tuned to be comparable to + zlib's, and it also has a specialized real-time compressor function designed to compare well against + fastlz/minilzo. + + + richgel999/miniz + + diff --git a/dev-libs/miniz/miniz-2.1.0.ebuild b/dev-libs/miniz/miniz-2.1.0.ebuild new file mode 100644 index 0000000000000..1141b3f020ce0 --- /dev/null +++ b/dev-libs/miniz/miniz-2.1.0.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="A mesh slicer to generate G-code for fused-filament-fabrication (3D printers)" +HOMEPAGE="https://github.com/richgel999/miniz" +SRC_URI="https://github.com/richgel999/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DOCS=( ChangeLog.md LICENSE readme.md ) + +src_prepare() { + sed -i -e 's/DESTINATION lib/DESTINATION ${CMAKE_INSTALL_LIBDIR}/' CMakeLists.txt + + cmake_src_prepare +} + +src_configure() { + CMAKE_BUILD_TYPE=Release + + cmake_src_configure +}