Add dev tools

This commit is contained in:
Mario Fetka
2022-11-26 22:54:07 +01:00
parent 80c8429421
commit f90a215a8d
7 changed files with 128 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
AUX hex2bin-gcc10.patch 442 BLAKE2B c06ae4ed2df4f84dff9ced4cf2651be807ff3931cceb222856fb2017a33baf09c27521f7787be113eaa90a4ee47684ab634d4e447310b5e75e75d39b8e1751b2 SHA512 78ea0ae3ad9fb2d6fc26d3e2faf42c7941fb35d6e9aeb2b92786c15861b5fe620ede00687aee7cc5e032eb390e731cf07aea4c64d9bd061e08551e2f829be715
DIST Hex2bin-2.5.tar.bz2 114893 BLAKE2B 6d990bdabd01e828e701af7aeedc4f7ab919e339be829ff43e178e9ec3903ea1384ce4cec40c08192aee06ead8d62a7d84aac12e9a92b1a757658614b95fff14 SHA512 3496824ad8f1961ede17ddd631ac30123de6f5da1f116409b45cc4f13c773967c6276d6a784396122ed5adda7368601f07f370763aca3e8c93149b386c66d397
EBUILD hex2bin-2.5.ebuild 824 BLAKE2B acdec63e3b3a8f3418f1d63315bc58c4f01ebff566a3d8dd773052a2229614ab2c1e9b3b87bc78f7acb627e9bfed0d4f59dcdd94e08faa5ba74c3828ac585b6f SHA512 b87dabba1f7afa928dd3c9188594098ba8ca5af8ee22dcafda0a3e0b0d1f428bc932cc55db2859d710e42427591ab937830039452de74e3f845b9965155db9a5

View File

@@ -0,0 +1,17 @@
--- Hex2bin-2.5/Makefile.orig 2022-11-26 21:28:39.060476310 +0100
+++ Hex2bin-2.5/Makefile 2022-11-26 21:30:59.302317881 +0100
@@ -1,10 +1,11 @@
# Makefile hex2bin/mot2bin
-
-CPFLAGS = -std=c99 -O2 -Wall -pedantic
+CC=gcc
+CFLAGS= -fcommon
+CPFLAGS = -std=c99 -O2 -Wall -pedantic $(CFLAGS)
# Compile
%.o : %.c
- gcc -c $(CPFLAGS) $< -o $@
+ $(CC) -c $(CPFLAGS) $< -o $@
#WIN64_GCC = x86_64-w64-mingw32-gcc
WINDOWS = i686-w64-mingw32

View File

@@ -0,0 +1,36 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="7"
inherit eutils toolchain-funcs multilib
DESCRIPTION="Converts Motorola and Intel hex files to binary"
HOMEPAGE="https://sourceforge.net/projects/hex2bin/"
SRC_URI="https://sourceforge.net/projects/${PN}/files/${PN}/Hex2bin-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="doc"
DEPEND=""
RDEPEND=""
PATCHES=(
"${FILESDIR}/hex2bin-gcc10.patch"
)
S="${WORKDIR}"/Hex2bin-${PV}
src_compile() {
emake CC="$(tc-getCC)" AR="$(tc-getAR)" INSTALL_DIR=${EPREFIX}/usr || die "src build fail"
}
src_install() {
#emake CC="$(tc-getCC)" AR="$(tc-getAR)" INSTALL_DIR=${D}/${EPREFIX}/usr || die "src install failed"
dobin hex2bin
dobin mot2bin
doman hex2bin.1
}