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 35D5C158095 for ; Thu, 11 Aug 2022 13:45:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 273BAE0876; Thu, 11 Aug 2022 13:45:14 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 84026E0876 for ; Thu, 11 Aug 2022 13:45:13 +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 8272F3410B0 for ; Thu, 11 Aug 2022 13:45:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E092F56D for ; Thu, 11 Aug 2022 13:45:10 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1659897343.aa2a03e20ed8ca53a75840fc390771bc9422f238.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: media-gfx/heatshrink/files/, media-gfx/heatshrink/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-gfx/heatshrink/Manifest media-gfx/heatshrink/files/Makefile.patch media-gfx/heatshrink/heatshrink-0.4.1.ebuild X-VCS-Directories: media-gfx/heatshrink/files/ media-gfx/heatshrink/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: aa2a03e20ed8ca53a75840fc390771bc9422f238 X-VCS-Branch: master Date: Thu, 11 Aug 2022 13:45:10 +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: 52e0c9e2-d41d-4aaf-becf-12c66354037d X-Archives-Hash: 824c33c9e54a5523ec64194e7edf4d9e commit: aa2a03e20ed8ca53a75840fc390771bc9422f238 Author: Thibaud CANALE thican net> AuthorDate: Sun Aug 7 18:35:43 2022 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Sun Aug 7 18:35:43 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=aa2a03e2 media-gfx/heatshrink: new package, add 0.4.1 Signed-off-by: Thibaud CANALE thican.net> media-gfx/heatshrink/Manifest | 1 + media-gfx/heatshrink/files/Makefile.patch | 23 ++++++++++++++++++++++ media-gfx/heatshrink/heatshrink-0.4.1.ebuild | 29 ++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+) diff --git a/media-gfx/heatshrink/Manifest b/media-gfx/heatshrink/Manifest new file mode 100644 index 000000000..b23793093 --- /dev/null +++ b/media-gfx/heatshrink/Manifest @@ -0,0 +1 @@ +DIST heatshrink-0.4.1.tar.gz 36945 BLAKE2B 526e3f88ddaec8116e5eef1a73a4450454ca808545dfe4a36069be8a0d771ca92c850c51f9b3c3e73f244454ba17d03da8fb0be4849728300c7eb8181e39651e SHA512 bb9610b963da0762b1ac21d0907f3801b525431abff495b66cadc244a2b2b334441de2b14442b722bfeb56cb4459fe4021eae0d0454f9e26a80e6efa11f079d2 diff --git a/media-gfx/heatshrink/files/Makefile.patch b/media-gfx/heatshrink/files/Makefile.patch new file mode 100644 index 000000000..a858ec0c1 --- /dev/null +++ b/media-gfx/heatshrink/files/Makefile.patch @@ -0,0 +1,23 @@ +diff --git a/Makefile b/Makefile +index d0c4dbe6..5cd8977a 100644 +--- a/Makefile ++++ b/Makefile +@@ -12,7 +12,8 @@ WARN += -Wmissing-declarations + #THEFT_INC= -I${THEFT_PATH}/include/ + #LDFLAGS += -L${THEFT_PATH}/lib -ltheft + +-CFLAGS += -std=c99 -g ${WARN} ${THEFT_INC} ${OPTIMIZE} ++MY_CFLAGS := -std=c99 ${WARN} ${THEFT_INC} ${OPTIMIZE} ${CFLAGS} ++CFLAGS := ${MY_CFLAGS} + + all: heatshrink test_runners libraries + +@@ -66,8 +67,6 @@ RM ?= rm + + install: libraries heatshrink + ${INSTALL} -c heatshrink ${PREFIX}/bin/ +- ${INSTALL} -c libheatshrink_static.a ${PREFIX}/lib/ +- ${INSTALL} -c libheatshrink_dynamic.a ${PREFIX}/lib/ + ${INSTALL} -c heatshrink_common.h ${PREFIX}/include/ + ${INSTALL} -c heatshrink_config.h ${PREFIX}/include/ + ${INSTALL} -c heatshrink_encoder.h ${PREFIX}/include/ diff --git a/media-gfx/heatshrink/heatshrink-0.4.1.ebuild b/media-gfx/heatshrink/heatshrink-0.4.1.ebuild new file mode 100644 index 000000000..9c7bffdf4 --- /dev/null +++ b/media-gfx/heatshrink/heatshrink-0.4.1.ebuild @@ -0,0 +1,29 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="data compression library for embedded/real-time systems" +HOMEPAGE="https://github.com/atomicobject/heatshrink" + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/atomicobject/${PN}.git" +else + inherit verify-sig + SRC_URI="https://github.com/atomicobject/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="ISC" +SLOT="0" + +PATCHES=( + "${FILESDIR}/Makefile.patch" +) + +src_install() { + local MY_ED="${ED}/usr" + mkdir "${MY_ED%/}"{,/bin,/include} || die + emake PREFIX="${MY_ED%/}/" install +}