public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: media-gfx/heatshrink/files/, media-gfx/heatshrink/
@ 2022-08-07 18:36 Thibaud CANALE
  0 siblings, 0 replies; only message in thread
From: Thibaud CANALE @ 2022-08-07 18:36 UTC (permalink / raw
  To: gentoo-commits

commit:     aa2a03e20ed8ca53a75840fc390771bc9422f238
Author:     Thibaud CANALE <thican <AT> thican <DOT> net>
AuthorDate: Sun Aug  7 18:35:43 2022 +0000
Commit:     Thibaud CANALE <thican <AT> thican <DOT> net>
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 <AT> 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
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-07 18:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-07 18:36 [gentoo-commits] repo/proj/guru:dev commit in: media-gfx/heatshrink/files/, media-gfx/heatshrink/ Thibaud CANALE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox