summaryrefslogtreecommitdiff
path: root/app-misc/i2bits/i2bits-0.1.0-r2.ebuild
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <mmk@levelnine.at>2024-05-31 16:25:15 +0200
committerConrad Kostecki <conikost@gentoo.org>2024-06-23 21:48:48 +0200
commitf7b88537dd7155af39ec67794518d2d169d70a39 (patch)
treeddcc1cd9793a480c3b894af90e3002c8ac2bc5fe /app-misc/i2bits/i2bits-0.1.0-r2.ebuild
parent5ecb3853933f916f505f30d8f0dd6c6c10ab2859 (diff)
downloadgentoo-f7b88537dd7155af39ec67794518d2d169d70a39.tar.gz
gentoo-f7b88537dd7155af39ec67794518d2d169d70a39.tar.bz2
gentoo-f7b88537dd7155af39ec67794518d2d169d70a39.zip
app-misc/i2bits: fix UnusedInherits, SRC_URI
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/36921 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-misc/i2bits/i2bits-0.1.0-r2.ebuild')
-rw-r--r--app-misc/i2bits/i2bits-0.1.0-r2.ebuild24
1 files changed, 24 insertions, 0 deletions
diff --git a/app-misc/i2bits/i2bits-0.1.0-r2.ebuild b/app-misc/i2bits/i2bits-0.1.0-r2.ebuild
new file mode 100644
index 000000000000..174e9897fc84
--- /dev/null
+++ b/app-misc/i2bits/i2bits-0.1.0-r2.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+COMMIT="4c613505b2cb"
+DESCRIPTION="Utility to convert hex or dec to binary format"
+HOMEPAGE="https://bitbucket.org/PascalRD/i2bits/"
+SRC_URI="https://bitbucket.org/PascalRD/i2bits/get/${COMMIT}.tar.gz -> ${P}-bb.tar.gz"
+S="${WORKDIR}/PascalRD-${PN}-${COMMIT}"
+
+LICENSE="WTFPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+src_prepare() {
+ sed -e "s/^set(CMAKE_C_FLAGS.*/set(CMAKE_C_FLAGS \"${CFLAGS}\")/" \
+ -e "1s/^/project(${PN})\n/" \
+ -i CMakeLists.txt || die "can't patch CMakeLists.txt"
+
+ cmake_src_prepare
+}