From f90a215a8d391b2836d4ea793d4b41d6857a2869 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Sat, 26 Nov 2022 22:54:07 +0100 Subject: [PATCH] Add dev tools --- dev-util/general-tools/Manifest | 2 ++ .../general-tools/general-tools-1.0.3.ebuild | 33 +++++++++++++++++ dev-util/hex2bin/Manifest | 3 ++ dev-util/hex2bin/files/hex2bin-gcc10.patch | 17 +++++++++ dev-util/hex2bin/hex2bin-2.5.ebuild | 36 +++++++++++++++++++ sci-electronics/logisim-evolution/Manifest | 2 ++ .../logisim-evolution-3.8.0.ebuild | 35 ++++++++++++++++++ 7 files changed, 128 insertions(+) create mode 100644 dev-util/general-tools/Manifest create mode 100644 dev-util/general-tools/general-tools-1.0.3.ebuild create mode 100644 dev-util/hex2bin/Manifest create mode 100644 dev-util/hex2bin/files/hex2bin-gcc10.patch create mode 100644 dev-util/hex2bin/hex2bin-2.5.ebuild create mode 100644 sci-electronics/logisim-evolution/logisim-evolution-3.8.0.ebuild diff --git a/dev-util/general-tools/Manifest b/dev-util/general-tools/Manifest new file mode 100644 index 00000000..26707fb1 --- /dev/null +++ b/dev-util/general-tools/Manifest @@ -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 diff --git a/dev-util/general-tools/general-tools-1.0.3.ebuild b/dev-util/general-tools/general-tools-1.0.3.ebuild new file mode 100644 index 00000000..ed177b49 --- /dev/null +++ b/dev-util/general-tools/general-tools-1.0.3.ebuild @@ -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" +} diff --git a/dev-util/hex2bin/Manifest b/dev-util/hex2bin/Manifest new file mode 100644 index 00000000..85cd2b3d --- /dev/null +++ b/dev-util/hex2bin/Manifest @@ -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 diff --git a/dev-util/hex2bin/files/hex2bin-gcc10.patch b/dev-util/hex2bin/files/hex2bin-gcc10.patch new file mode 100644 index 00000000..133e88b3 --- /dev/null +++ b/dev-util/hex2bin/files/hex2bin-gcc10.patch @@ -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 diff --git a/dev-util/hex2bin/hex2bin-2.5.ebuild b/dev-util/hex2bin/hex2bin-2.5.ebuild new file mode 100644 index 00000000..6ade60ff --- /dev/null +++ b/dev-util/hex2bin/hex2bin-2.5.ebuild @@ -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 +} diff --git a/sci-electronics/logisim-evolution/Manifest b/sci-electronics/logisim-evolution/Manifest index 19b710a9..68f15150 100644 --- a/sci-electronics/logisim-evolution/Manifest +++ b/sci-electronics/logisim-evolution/Manifest @@ -1,5 +1,7 @@ DIST logisim-evolution-3.7.2-all.jar 26002479 BLAKE2B 48ab8515669445ef87469f8809449fcd66d80027c33f2cf28a809b3b021fbb9126af97b6e5ecd6d1b0d01f7dacfba24e440d99a25ac1909bf3d91c2c0b8131c2 SHA512 514ace8cd7259eee34c930983da0b09a1e5efebe4305bc81b4885df7bcd283e1db2405668c5b5a88286ea3b9d4fc31d84efefb85ea728baf1dc4e1944a8171e2 +DIST logisim-evolution-3.8.0-all.jar 26342945 BLAKE2B 13245365aa95e771a7f0fd52be4a4551473192ecadf45cc2e1958cabe5082ba1613c901893f1a80ec387ddc4753110837efc4ea71f1d32dbc7facee8e349ecce SHA512 f852a57b6468674cf09f8076902aec4dfeaed10a73d509c6e53927857f84bfc89cf02f290118ca8bfc492e4f6a8bcaac515f7adafbb48f9e1ab435ec006c6591 DIST logisim-evolution-icon.svg 136043 BLAKE2B dddc9bd9a13a1954f179adaf93e0858c49a7c0f94a4d760208dd6891cc5d5910cb1912abedec95efe3fe7e3d5bec3592cdba7d749c0562bcf8cdcbd8802319a2 SHA512 28e8380db30df11d13f2fd3268d777e2dd9ae9c1d0ce01a46d47438ebb864bb8f3a97fbf52ecbc90551d53bbf45b70b0d9d0330d8e04ca982e495ed16fbf84a4 EBUILD logisim-evolution-3.7.2.ebuild 1157 BLAKE2B 37a9d45eb4a89ae41c3575e09a9031287adb9fa280ee619653861b46269c4adee5d896f55ac31eafd87d42cca4ea834a27babfc8e1829deca4fd333ea57bfb45 SHA512 e6ae15d6ddfdf1602f46adb45f74a6673271b6c0f9a9096873087d78d37c76a1336a0f19942533261e7ff9813873d84eb4f164bc6c2a6ac2c5cb510b3f2a3028 +EBUILD logisim-evolution-3.8.0.ebuild 1157 BLAKE2B 37a9d45eb4a89ae41c3575e09a9031287adb9fa280ee619653861b46269c4adee5d896f55ac31eafd87d42cca4ea834a27babfc8e1829deca4fd333ea57bfb45 SHA512 e6ae15d6ddfdf1602f46adb45f74a6673271b6c0f9a9096873087d78d37c76a1336a0f19942533261e7ff9813873d84eb4f164bc6c2a6ac2c5cb510b3f2a3028 MISC ChangeLog 284 BLAKE2B 2518d14bc3aeaa8695abaf4f28dd0a453f6aa124480117a00a00c67be95064f9d542531b2a54fd0fc635bc885e3dc320b3471ab93a858fde8cd06552a041d09d SHA512 7fa66fdadcbf7a410e1e7d2b07004267a23b1581772a300f315efc866c64de2fb3c65eafce3532479ab2b46c27eec86864789a5d15811c5def50c9b4b981f2f5 MISC metadata.xml 411 BLAKE2B 6bd76e3591b8a2d88277f9ebfbd5951a7458a266adf5818533a1d829a770db62e1de41a4cb4f29206ed5eb381c6f4bfdc04973c4c65bd72496b7e31b6c85880f SHA512 df1f54923628bff824dc8835c96902bd07d4462472b9b8f356abb0b9b81875d78fa96e511290739ecc5423eadc8b2579a65b2f31f9c2c6a73c8d3413c0603d98 diff --git a/sci-electronics/logisim-evolution/logisim-evolution-3.8.0.ebuild b/sci-electronics/logisim-evolution/logisim-evolution-3.8.0.ebuild new file mode 100644 index 00000000..6236b1eb --- /dev/null +++ b/sci-electronics/logisim-evolution/logisim-evolution-3.8.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils java-pkg-2 java-ant-2 desktop + +DESCRIPTION="Digital logic designer and simulator." +HOMEPAGE="https://github.com/logisim-evolution/logisim-evolution" +#SRC_URI="https://github.com/logisim-evolution/logisim-evolution/archive/v${PV}.tar.gz" +SRC_URI="https://github.com/logisim-evolution/logisim-evolution/releases/download/v${PV}/logisim-evolution-${PV}-all.jar + https://github.com/logisim-evolution/logisim-evolution/blob/master/artwork/logisim-evolution-icon.svg" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="java nls" + +DEPEND=">=virtual/jre-11:*" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${P}" + +src_unpack() { + mkdir -p "${S}" + cp "${DISTDIR}"/logisim-evolution-${PV}-all.jar "${S}"/logisim-evolution.jar +} + +src_install() { + java-pkg_newjar logisim-evolution.jar ${PN}.jar + java-pkg_dojar logisim-evolution.jar + java-pkg_dolauncher logisim-evolution -jar logisim-evolution.jar + newicon "${DISTDIR}"/logisim-evolution-icon.svg ${PN}.svg + make_desktop_entry ${PN} "Logisim Evolution" ${PN} "Science;Electricity;ComputerScience" +}