From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EA0C615815E for ; Thu, 1 Feb 2024 13:05:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7C40BE2A5F; Thu, 1 Feb 2024 13:05:15 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A5DCFE2A5E for ; Thu, 1 Feb 2024 13:05:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1A55E343217 for ; Thu, 1 Feb 2024 13:05:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 66B9613AA for ; Thu, 1 Feb 2024 13:05:11 +0000 (UTC) From: "Alexey Shvetsov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexey Shvetsov" Message-ID: <1706792534.5fbfd251026407e1f93c7542e3828bafce981a52.alexxy@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/heatshrink/, dev-libs/heatshrink/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/heatshrink/Manifest dev-libs/heatshrink/files/heatshrink-0.4.1-cmake.patch dev-libs/heatshrink/heatshrink-0.4.1.ebuild dev-libs/heatshrink/metadata.xml X-VCS-Directories: dev-libs/heatshrink/files/ dev-libs/heatshrink/ X-VCS-Committer: alexxy X-VCS-Committer-Name: Alexey Shvetsov X-VCS-Revision: 5fbfd251026407e1f93c7542e3828bafce981a52 X-VCS-Branch: master Date: Thu, 1 Feb 2024 13:05:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 43fd614c-7c97-4f71-8ca2-eb4929ca3573 X-Archives-Hash: f700849931a2124e054431f355ed5b75 commit: 5fbfd251026407e1f93c7542e3828bafce981a52 Author: Alexey Shvetsov gentoo org> AuthorDate: Thu Feb 1 12:14:01 2024 +0000 Commit: Alexey Shvetsov gentoo org> CommitDate: Thu Feb 1 13:02:14 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fbfd251 dev-libs/heatshrink: new package, add 0.4.1 Signed-off-by: Alexey Shvetsov gentoo.org> dev-libs/heatshrink/Manifest | 1 + .../heatshrink/files/heatshrink-0.4.1-cmake.patch | 108 +++++++++++++++++++++ dev-libs/heatshrink/heatshrink-0.4.1.ebuild | 16 +++ dev-libs/heatshrink/metadata.xml | 16 +++ 4 files changed, 141 insertions(+) diff --git a/dev-libs/heatshrink/Manifest b/dev-libs/heatshrink/Manifest new file mode 100644 index 000000000000..b2379309357b --- /dev/null +++ b/dev-libs/heatshrink/Manifest @@ -0,0 +1 @@ +DIST heatshrink-0.4.1.tar.gz 36945 BLAKE2B 526e3f88ddaec8116e5eef1a73a4450454ca808545dfe4a36069be8a0d771ca92c850c51f9b3c3e73f244454ba17d03da8fb0be4849728300c7eb8181e39651e SHA512 bb9610b963da0762b1ac21d0907f3801b525431abff495b66cadc244a2b2b334441de2b14442b722bfeb56cb4459fe4021eae0d0454f9e26a80e6efa11f079d2 diff --git a/dev-libs/heatshrink/files/heatshrink-0.4.1-cmake.patch b/dev-libs/heatshrink/files/heatshrink-0.4.1-cmake.patch new file mode 100644 index 000000000000..3230949b84bf --- /dev/null +++ b/dev-libs/heatshrink/files/heatshrink-0.4.1-cmake.patch @@ -0,0 +1,108 @@ +diff -urN heatshrink-0.4.1.orig/CMakeLists.txt heatshrink-0.4.1/CMakeLists.txt +--- heatshrink-0.4.1.orig/CMakeLists.txt 1970-01-01 03:00:00.000000000 +0300 ++++ heatshrink-0.4.1/CMakeLists.txt 2024-02-01 15:11:32.356696150 +0300 +@@ -0,0 +1,93 @@ ++cmake_minimum_required(VERSION 3.10) ++ ++project(heatshrink LANGUAGES C VERSION 0.4.1) ++ ++set(CMAKE_C_STANDARD 99) ++set(CMAKE_C_STANDARD_REQUIRED ON) ++set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) ++ ++add_library(${PROJECT_NAME} heatshrink_decoder.c heatshrink_encoder.c) ++add_library(${PROJECT_NAME}_dynalloc heatshrink_decoder.c heatshrink_encoder.c) ++ ++find_library(MATH_LIBRARY m) # Business as usual ++if(MATH_LIBRARY) ++ target_link_libraries(${PROJECT_NAME} PUBLIC ${MATH_LIBRARY}) ++endif() ++ ++target_include_directories(${PROJECT_NAME} PUBLIC $) ++target_include_directories(${PROJECT_NAME}_dynalloc PUBLIC $) ++ ++target_compile_definitions(${PROJECT_NAME} PUBLIC HEATSHRINK_DYNAMIC_ALLOC=0) ++target_compile_definitions(${PROJECT_NAME}_dynalloc PUBLIC HEATSHRINK_DYNAMIC_ALLOC=1) ++ ++if (UNIX) ++ add_executable(${PROJECT_NAME}_cmd heatshrink.c) ++ target_link_libraries(${PROJECT_NAME}_cmd ${PROJECT_NAME}_dynalloc) ++ set_target_properties(${PROJECT_NAME}_cmd PROPERTIES OUTPUT_NAME ${PROJECT_NAME}) ++endif () ++ ++foreach (tgt ${PROJECT_NAME} ${PROJECT_NAME}_dynalloc) ++ set_target_properties(${tgt} ++ PROPERTIES ++ VERSION ${PROJECT_VERSION} ++ SOVERSION ${PROJECT_VERSION}) ++endforeach() ++ ++# Installation and export: ++ ++include(CMakePackageConfigHelpers) ++ ++write_basic_package_version_file( ++ "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake" ++ VERSION ${PROJECT_VERSION} ++ COMPATIBILITY AnyNewerVersion ++) ++ ++set(_exported_targets ${PROJECT_NAME} ${PROJECT_NAME}_dynalloc) ++if (UNIX) ++ list(APPEND _exported_targets ${PROJECT_NAME}_cmd) ++endif () ++ ++install(TARGETS ${_exported_targets} ++ EXPORT ${PROJECT_NAME}Targets ++) ++ ++export(EXPORT ${PROJECT_NAME}Targets ++ FILE "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake" ++ NAMESPACE ${PROJECT_NAME}:: ++) ++ ++include(GNUInstallDirs) ++set(ConfigPackageLocation ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}) ++ ++configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in ++ "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake" ++ INSTALL_DESTINATION ${ConfigPackageLocation} ++) ++ ++install( ++ FILES ++ heatshrink_common.h ++ heatshrink_config.h ++ heatshrink_encoder.h ++ heatshrink_decoder.h ++ DESTINATION ++ include/${PROJECT_NAME} ++ ) ++ ++install(EXPORT ${PROJECT_NAME}Targets ++ FILE ++ ${PROJECT_NAME}Targets.cmake ++ NAMESPACE ++ ${PROJECT_NAME}:: ++ DESTINATION ++ ${ConfigPackageLocation} ++) ++ ++install( ++ FILES ++ "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake" ++ "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake" ++ DESTINATION ++ ${ConfigPackageLocation} ++) +\ В конце файла нет новой строки +diff -urN heatshrink-0.4.1.orig/Config.cmake.in heatshrink-0.4.1/Config.cmake.in +--- heatshrink-0.4.1.orig/Config.cmake.in 1970-01-01 03:00:00.000000000 +0300 ++++ heatshrink-0.4.1/Config.cmake.in 2024-02-01 15:11:32.356696150 +0300 +@@ -0,0 +1,5 @@ ++@PACKAGE_INIT@ ++ ++if (EXISTS ${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake) ++ include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake") ++endif () +\ В конце файла нет новой строки diff --git a/dev-libs/heatshrink/heatshrink-0.4.1.ebuild b/dev-libs/heatshrink/heatshrink-0.4.1.ebuild new file mode 100644 index 000000000000..172cf6a7e44c --- /dev/null +++ b/dev-libs/heatshrink/heatshrink-0.4.1.ebuild @@ -0,0 +1,16 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="A data compression/decompression library for embedded/real-time systems" +HOMEPAGE="https://github.com/atomicobject/heatshrink" +SRC_URI="https://github.com/atomicobject/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +PATCHES=( "${FILESDIR}/${P}-cmake.patch" ) diff --git a/dev-libs/heatshrink/metadata.xml b/dev-libs/heatshrink/metadata.xml new file mode 100644 index 000000000000..df9f753c622a --- /dev/null +++ b/dev-libs/heatshrink/metadata.xml @@ -0,0 +1,16 @@ + + + + + 3dprint@gentoo.org + Gentoo 3D Printer Project + + + alexxy@gentoo.org + Alexey Shvetsov + + + https://github.com/atomicobject/heatshrink/issues + atomicobject/heatshrink + +