commit:     629bc57e66c8eee5e59170485e200f108af203ed
Author:     Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 13 19:50:51 2020 +0000
Commit:     Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
CommitDate: Sun Dec 13 20:23:45 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=629bc57e

dev-libs/miniz: new ebuild

Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/18642
Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>

 dev-libs/miniz/Manifest           |  1 +
 dev-libs/miniz/metadata.xml       | 20 ++++++++++++++++++++
 dev-libs/miniz/miniz-2.1.0.ebuild | 29 +++++++++++++++++++++++++++++
 3 files changed, 50 insertions(+)

diff --git a/dev-libs/miniz/Manifest b/dev-libs/miniz/Manifest
new file mode 100644
index 00000000000..c7204638ad3
--- /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 00000000000..8cf9d7cdd9d
--- /dev/null
+++ b/dev-libs/miniz/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo 3D Printer Project</name>
+       </maintainer>
+       <longdescription>
+               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.
+       </longdescription>
+       <upstream>
+               <remote-id type="github">richgel999/miniz</remote-id>
+       </upstream>
+</pkgmetadata>

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 00000000000..1141b3f020c
--- /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
+}

Reply via email to