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,2 @@
DIST general-tools-1.0.3.tar.xz 100600 BLAKE2B a5610147d1ddcbab815db13fad1d125aa1adaa03a1efc8bc8b78e30b089369276baf224377a7a8027797533217cbe4dddc588bc467c64e13322d0aa326a1379b SHA512 68dfb4b89073c615a9a7e9cdc4bc780c27eccb5e52df3a9e6f0da0b4a8a01807b0f5db584dc53ff2a2ad4b086728cfbfa794155d2576deec930e115e0fe215c2
EBUILD general-tools-1.0.3.ebuild 721 BLAKE2B fedf2f941a47da751fc5b2387f1e191866c1b97482b8438d86d8e66becba3dc0a28c51b25a27bb9e961aa6b919c665b4b0393a5fc341386b831244908fc9479f SHA512 eda33e5d20bc0a3adcf168ac79d062b2436f6e3e5a82626cbbf9eb4bbfedae8144913410241dca2d9afc340156673d7d1dd9b0ac26af801658e1ff3a8d64962c

View File

@@ -0,0 +1,33 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
inherit eutils autotools
DESCRIPTION="Gneral tools for Embedded Dev"
HOMEPAGE="https://github.com/devkitPro/general-tools"
SRC_URI="https://github.com/devkitPro/general-tools/releases/download/v${PV}/general-tools-${PV}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm ~ppc sparc x86"
IUSE=""
RDEPEND=""
DEPEND=""
#src_prepare() {
# eapply_user
# eautoreconf
#}
#src_configure() {
# LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)" econf --enable-shared --with-pic \
# $(use_enable static) \
# $(use_enable nls)
#}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
}

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
}