Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: simulide-0.4.13
@ 2020-10-28 18:02 Logarithmus
  2020-10-28 18:19 ` [PR REVIEW] " ericonr
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: Logarithmus @ 2020-10-28 18:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 717 bytes --]

There is a new pull request by Logarithmus against master on the void-packages repository

https://github.com/Logarithmus/void-packages simulide
https://github.com/void-linux/void-packages/pull/25945

New package: simulide-0.4.13
Real time electronic circuit simulator with PIC, AVR and Arduino simulation.
It bundles some older versions of `simavr` and `gpsim`. I tried to make it use up-to-date version, which are installed system-wide, but turns out there's plenty of fixing needed to do it. So I postponed it for the future.
P. S. I'm not the author of this tool, I just use it for my university MCU programming course.

A patch file from https://github.com/void-linux/void-packages/pull/25945.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-simulide-25945.patch --]
[-- Type: text/x-diff, Size: 3988 bytes --]

From 31a7ef2ed77987c6dfd389803782dbb3d5b83f54 Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Wed, 28 Oct 2020 20:30:48 +0300
Subject: [PATCH] New package: simulide-0.4.13

---
 srcpkgs/gpsim/template                 | 27 --------------------------
 srcpkgs/gpsim/update                   |  1 -
 srcpkgs/simulide/patches/00-glib.patch | 24 +++++++++++++++++++++++
 srcpkgs/simulide/template              | 24 +++++++++++++++++++++++
 4 files changed, 48 insertions(+), 28 deletions(-)
 delete mode 100644 srcpkgs/gpsim/template
 delete mode 100644 srcpkgs/gpsim/update
 create mode 100644 srcpkgs/simulide/patches/00-glib.patch
 create mode 100644 srcpkgs/simulide/template

diff --git a/srcpkgs/gpsim/template b/srcpkgs/gpsim/template
deleted file mode 100644
index 1778e73658e..00000000000
--- a/srcpkgs/gpsim/template
+++ /dev/null
@@ -1,27 +0,0 @@
-# Template file for 'gpsim'
-pkgname=gpsim
-version=0.31.0
-revision=1
-build_style=gnu-configure
-hostmakedepends="pkg-config"
-makedepends="gtk+-devel popt-devel readline-devel"
-short_desc="Full-featured software simulator for Microchip PIC mictocontrollers"
-maintainer="Robert Lowry <bobertlo@gmail.com>"
-license="GPL-2.0-or-later"
-homepage="http://gpsim.sourceforge.net/"
-distfiles="https://sourceforge.net/projects/gpsim/files/gpsim/${version}/gpsim-${version}.tar.gz"
-checksum=110ee6be3a5d02b32803a91e480cbfc9d423ef72e0830703fc0bc97b9569923f
-
-pre_configure() {
-	vsed -i -e 's/#include "error.h"//' src/modules.cc
-}
-
-gpsim-devel_package() {
-	short_desc+=" - development files"
-	depends="gpsim-${version}_${revision} gtk+-devel popt-devel readline-devel"
-	pkg_install() {
-		vmove usr/include/gpsim
-		vmove "usr/lib/*.a"
-		vmove "usr/lib/*.so"
-	}
-}
diff --git a/srcpkgs/gpsim/update b/srcpkgs/gpsim/update
deleted file mode 100644
index 5f1f1d7029c..00000000000
--- a/srcpkgs/gpsim/update
+++ /dev/null
@@ -1 +0,0 @@
-ignore="0.x.y"
diff --git a/srcpkgs/simulide/patches/00-glib.patch b/srcpkgs/simulide/patches/00-glib.patch
new file mode 100644
index 00000000000..f70ef7c02d9
--- /dev/null
+++ b/srcpkgs/simulide/patches/00-glib.patch
@@ -0,0 +1,24 @@
+--- SimulIDE.pro 2020-08-13 22:39:49.000000000 +0300
++++ SimulIDE.pro 2020-10-22 03:08:27.819023767 +0300
+@@ -103,7 +103,9 @@
+     ../src/gpsim/*.h \
+     ../src/gpsim/devices/*.h \
+     ../src/gpsim/modules/*.h \
+-    ../src/gpsim/registers/*.h
++    ../src/gpsim/registers/*.h \
++     /usr/include/glib-2.0/glib.h \
++     /usr/lib/glib-2.0/include/glibconfig.h
+
+ INCLUDEPATH += ../src \
+     ../src/gui \
+@@ -140,7 +140,9 @@
+     ../src/gpsim \
+     ../src/gpsim/devices \
+     ../src/gpsim/modules \
+-    ../src/gpsim/registers
++    ../src/gpsim/registers \
++     /usr/include/glib-2.0 \
++     /usr/lib/glib-2.0/include
+
+ TRANSLATIONS +=  \
+     ../resources/translations/simulide.ts \
diff --git a/srcpkgs/simulide/template b/srcpkgs/simulide/template
new file mode 100644
index 00000000000..53f1e3fda58
--- /dev/null
+++ b/srcpkgs/simulide/template
@@ -0,0 +1,24 @@
+# Template file for 'simulide'
+pkgname=simulide
+version=0.4.13
+_pkgname=SimulIDE
+_rev=SR5
+revision=1
+wrksrc=${pkgname}_${version}-${_rev}_Sources
+build_wrksrc=build_XX
+build_style=qmake
+hostmakedepends="qt5-qmake qt5-host-tools pkg-config"
+makedepends="qt5-devel qt5-svg-devel qt5-multimedia-devel qt5-serialport-devel qt5-script-devel elfutils-devel"
+short_desc="Real Time Electronic Circuit Simulator with PIC, AVR and Arduino simulation"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="GPL-3.0-or-later"
+homepage="https://simulide.com"
+distfiles="https://mailfence.com/pub/docs/santigoro/web/${_pkgname}_${version}/${_pkgname}_${version}-${_rev}_Sources.tar.gz"
+checksum=b55b03e507882b8b68a25e5155dcac6020ba273be93bdf689612a0be67056d43
+nopie_files="/usr/bin/simulide"
+
+do_install() {
+	mv release/${_pkgname}_${version}-${_rev}/usr ./
+	vbin usr/bin/simulide
+	mv usr/share ${DESTDIR}/usr/
+}

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR REVIEW] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
@ 2020-10-28 18:19 ` ericonr
  2020-10-28 18:19 ` ericonr
                   ` (21 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: ericonr @ 2020-10-28 18:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 193 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/25945#discussion_r513665985

Comment:
I'm pretty sure this breaks cross compilation.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR REVIEW] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
  2020-10-28 18:19 ` [PR REVIEW] " ericonr
@ 2020-10-28 18:19 ` ericonr
  2020-10-28 18:27 ` [PR PATCH] [Updated] " Logarithmus
                   ` (20 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: ericonr @ 2020-10-28 18:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 168 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/25945#discussion_r513666178

Comment:
Why was this removed?

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
  2020-10-28 18:19 ` [PR REVIEW] " ericonr
  2020-10-28 18:19 ` ericonr
@ 2020-10-28 18:27 ` Logarithmus
  2020-10-28 18:31 ` [PR REVIEW] " Logarithmus
                   ` (19 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Logarithmus @ 2020-10-28 18:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

There is an updated pull request by Logarithmus against master on the void-packages repository

https://github.com/Logarithmus/void-packages simulide
https://github.com/void-linux/void-packages/pull/25945

New package: simulide-0.4.13
Real time electronic circuit simulator with PIC, AVR and Arduino simulation.
It bundles some older versions of `simavr` and `gpsim`. I tried to make it use up-to-date versions, which are installed system-wide, but turns out there's plenty of fixing needed to do it. So I postponed it for the future.
P. S. I'm not the author of this tool, I just use it for my university MCU programming course.

A patch file from https://github.com/void-linux/void-packages/pull/25945.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-simulide-25945.patch --]
[-- Type: text/x-diff, Size: 2536 bytes --]

From ec437f22ebb70977e0cab521c209483e87631a08 Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Wed, 28 Oct 2020 20:30:48 +0300
Subject: [PATCH] New package: simulide-0.4.13

---
 srcpkgs/simulide/patches/00-glib.patch | 24 ++++++++++++++++++++++++
 srcpkgs/simulide/template              | 24 ++++++++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 100644 srcpkgs/simulide/patches/00-glib.patch
 create mode 100644 srcpkgs/simulide/template

diff --git a/srcpkgs/simulide/patches/00-glib.patch b/srcpkgs/simulide/patches/00-glib.patch
new file mode 100644
index 00000000000..f70ef7c02d9
--- /dev/null
+++ b/srcpkgs/simulide/patches/00-glib.patch
@@ -0,0 +1,24 @@
+--- SimulIDE.pro 2020-08-13 22:39:49.000000000 +0300
++++ SimulIDE.pro 2020-10-22 03:08:27.819023767 +0300
+@@ -103,7 +103,9 @@
+     ../src/gpsim/*.h \
+     ../src/gpsim/devices/*.h \
+     ../src/gpsim/modules/*.h \
+-    ../src/gpsim/registers/*.h
++    ../src/gpsim/registers/*.h \
++     /usr/include/glib-2.0/glib.h \
++     /usr/lib/glib-2.0/include/glibconfig.h
+
+ INCLUDEPATH += ../src \
+     ../src/gui \
+@@ -140,7 +140,9 @@
+     ../src/gpsim \
+     ../src/gpsim/devices \
+     ../src/gpsim/modules \
+-    ../src/gpsim/registers
++    ../src/gpsim/registers \
++     /usr/include/glib-2.0 \
++     /usr/lib/glib-2.0/include
+
+ TRANSLATIONS +=  \
+     ../resources/translations/simulide.ts \
diff --git a/srcpkgs/simulide/template b/srcpkgs/simulide/template
new file mode 100644
index 00000000000..53f1e3fda58
--- /dev/null
+++ b/srcpkgs/simulide/template
@@ -0,0 +1,24 @@
+# Template file for 'simulide'
+pkgname=simulide
+version=0.4.13
+_pkgname=SimulIDE
+_rev=SR5
+revision=1
+wrksrc=${pkgname}_${version}-${_rev}_Sources
+build_wrksrc=build_XX
+build_style=qmake
+hostmakedepends="qt5-qmake qt5-host-tools pkg-config"
+makedepends="qt5-devel qt5-svg-devel qt5-multimedia-devel qt5-serialport-devel qt5-script-devel elfutils-devel"
+short_desc="Real Time Electronic Circuit Simulator with PIC, AVR and Arduino simulation"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="GPL-3.0-or-later"
+homepage="https://simulide.com"
+distfiles="https://mailfence.com/pub/docs/santigoro/web/${_pkgname}_${version}/${_pkgname}_${version}-${_rev}_Sources.tar.gz"
+checksum=b55b03e507882b8b68a25e5155dcac6020ba273be93bdf689612a0be67056d43
+nopie_files="/usr/bin/simulide"
+
+do_install() {
+	mv release/${_pkgname}_${version}-${_rev}/usr ./
+	vbin usr/bin/simulide
+	mv usr/share ${DESTDIR}/usr/
+}

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR REVIEW] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (2 preceding siblings ...)
  2020-10-28 18:27 ` [PR PATCH] [Updated] " Logarithmus
@ 2020-10-28 18:31 ` Logarithmus
  2020-10-28 18:31 ` Logarithmus
                   ` (18 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Logarithmus @ 2020-10-28 18:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 322 bytes --]

New review comment by Logarithmus on void-packages repository

https://github.com/void-linux/void-packages/pull/25945#discussion_r513673397

Comment:
As I said, I was trying to use `gpsim` and `simavr` version provided by Void repo.
By a mistake, I removed `gpsim` entirely instead of reverting to `master`.
TLDR; Fixed

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR REVIEW] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (3 preceding siblings ...)
  2020-10-28 18:31 ` [PR REVIEW] " Logarithmus
@ 2020-10-28 18:31 ` Logarithmus
  2020-10-28 18:32 ` Logarithmus
                   ` (17 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Logarithmus @ 2020-10-28 18:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 326 bytes --]

New review comment by Logarithmus on void-packages repository

https://github.com/void-linux/void-packages/pull/25945#discussion_r513673397

Comment:
As I said, I was trying to use `gpsim` and `simavr` version provided by Void repo.
By a mistake, I removed `gpsim` entirely instead of reverting to `master`.
**TLDR;** Fixed

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR REVIEW] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (4 preceding siblings ...)
  2020-10-28 18:31 ` Logarithmus
@ 2020-10-28 18:32 ` Logarithmus
  2020-10-30 14:03 ` [PR PATCH] [Updated] " Logarithmus
                   ` (16 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Logarithmus @ 2020-10-28 18:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 196 bytes --]

New review comment by Logarithmus on void-packages repository

https://github.com/void-linux/void-packages/pull/25945#discussion_r513674106

Comment:
I'd like to get some advise on handling this.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (5 preceding siblings ...)
  2020-10-28 18:32 ` Logarithmus
@ 2020-10-30 14:03 ` Logarithmus
  2020-10-30 14:05 ` Logarithmus
                   ` (15 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Logarithmus @ 2020-10-30 14:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

There is an updated pull request by Logarithmus against master on the void-packages repository

https://github.com/Logarithmus/void-packages simulide
https://github.com/void-linux/void-packages/pull/25945

New package: simulide-0.4.13
Real time electronic circuit simulator with PIC, AVR and Arduino simulation.
It bundles some older versions of `simavr` and `gpsim`. I tried to make it use up-to-date versions, which are installed system-wide, but turns out there's plenty of fixing needed to do it. So I postponed it for the future.
P. S. I'm not the author of this tool, I just use it for my university MCU programming course.

A patch file from https://github.com/void-linux/void-packages/pull/25945.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-simulide-25945.patch --]
[-- Type: text/x-diff, Size: 10753 bytes --]

From 3f4c1194e19fe8fe463a95bebc9dc1ee1ae1c4f9 Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Wed, 28 Oct 2020 20:30:48 +0300
Subject: [PATCH] New package: simulide-0.4.13

---
 srcpkgs/simulide/patches/00-glib.patch        |  24 ++++
 .../simulide/patches/01-use-system-simavr.bak | 133 ++++++++++++++++++
 .../simulide/patches/02-use-system-gpsim.bak  |  94 +++++++++++++
 srcpkgs/simulide/template                     |  24 ++++
 4 files changed, 275 insertions(+)
 create mode 100644 srcpkgs/simulide/patches/00-glib.patch
 create mode 100644 srcpkgs/simulide/patches/01-use-system-simavr.bak
 create mode 100644 srcpkgs/simulide/patches/02-use-system-gpsim.bak
 create mode 100644 srcpkgs/simulide/template

diff --git a/srcpkgs/simulide/patches/00-glib.patch b/srcpkgs/simulide/patches/00-glib.patch
new file mode 100644
index 00000000000..f70ef7c02d9
--- /dev/null
+++ b/srcpkgs/simulide/patches/00-glib.patch
@@ -0,0 +1,24 @@
+--- SimulIDE.pro 2020-08-13 22:39:49.000000000 +0300
++++ SimulIDE.pro 2020-10-22 03:08:27.819023767 +0300
+@@ -103,7 +103,9 @@
+     ../src/gpsim/*.h \
+     ../src/gpsim/devices/*.h \
+     ../src/gpsim/modules/*.h \
+-    ../src/gpsim/registers/*.h
++    ../src/gpsim/registers/*.h \
++     /usr/include/glib-2.0/glib.h \
++     /usr/lib/glib-2.0/include/glibconfig.h
+
+ INCLUDEPATH += ../src \
+     ../src/gui \
+@@ -140,7 +140,9 @@
+     ../src/gpsim \
+     ../src/gpsim/devices \
+     ../src/gpsim/modules \
+-    ../src/gpsim/registers
++    ../src/gpsim/registers \
++     /usr/include/glib-2.0 \
++     /usr/lib/glib-2.0/include
+
+ TRANSLATIONS +=  \
+     ../resources/translations/simulide.ts \
diff --git a/srcpkgs/simulide/patches/01-use-system-simavr.bak b/srcpkgs/simulide/patches/01-use-system-simavr.bak
new file mode 100644
index 00000000000..452d70597f7
--- /dev/null
+++ b/srcpkgs/simulide/patches/01-use-system-simavr.bak
@@ -0,0 +1,133 @@
+--- src/gui/circuitwidget/components/mcu/arduino.cpp    2020-07-11 13:15:00.000000000 +0300
++++ src/gui/circuitwidget/components/mcu/arduino.cpp    2020-10-22 04:17:34.409831811 +0300
+@@ -26,7 +26,7 @@
+ 
+ #include "hd44780.h"
+ 
+-#include "avr_twi.h"
++#include <simavr/avr_twi.h>
+ 
+ LibraryItem* Arduino::libraryItem()
+ {
+--- src/gui/circuitwidget/components/mcu/avrcompbase.cpp    2020-07-04 20:30:48.000000000 +0300
++++ src/gui/circuitwidget/components/mcu/avrcompbase.cpp    2020-10-22 04:18:15.119908217 +0300
+@@ -20,7 +20,7 @@
+ #include <math.h>
+ 
+ #include "avrcompbase.h"
+-#include "avr_twi.h"
++#include <simavr/avr_twi.h>
+ 
+ 
+ AvrCompBase::AvrCompBase( QObject* parent, QString type, QString id )
+--- src/gui/circuitwidget/components/mcu/avrcomponentpin.h  2020-05-24 10:29:23.000000000 +0300
++++ src/gui/circuitwidget/components/mcu/avrcomponentpin.h  2020-10-22 04:06:23.234074279 +0300
+@@ -25,12 +25,12 @@
+ #include "mcucomponentpin.h"
+ 
+ //simavr includes
+-#include "sim_avr.h"
+-#include "sim_irq.h"
+-#include "sim_io.h"
+-#include "avr_adc.h"
+-#include "avr_ioport.h"
+-#include "avr_timer.h"
++#include <simavr/sim_avr.h>
++#include <simavr/sim_irq.h>
++#include <simavr/sim_io.h>
++#include <simavr/avr_adc.h>
++#include <simavr/avr_ioport.h>
++#include <simavr/avr_timer.h>
+ 
+ 
+ class AVRComponentPin : public McuComponentPin
+--- src/simulator/elements/processors/avrprocessor.cpp  2020-08-24 02:14:43.000000000 +0300
++++ src/simulator/elements/processors/avrprocessor.cpp  2020-10-22 04:00:42.865064317 +0300
+@@ -23,12 +23,12 @@
+ #include "utils.h"
+ 
+ // simavr includes
+-#include "sim_elf.h"
+-#include "sim_hex.h"
+-#include "sim_core.h"
+-#include "sim_gdb.h"
+-#include "avr_uart.h"
+-#include "avr_eeprom.h"
++#include <simavr/sim_elf.h>
++#include <simavr/sim_hex.h>
++#include <simavr/sim_core.h>
++#include <simavr/sim_gdb.h>
++#include <simavr/avr_uart.h>
++#include <simavr/avr_eeprom.h>
+ 
+ //AvrProcessor* AvrProcessor::m_pSelf = 0l;
+ 
+--- src/simulator/elements/processors/avrprocessor.h    2020-08-24 02:14:40.000000000 +0300
++++ src/simulator/elements/processors/avrprocessor.h    2020-10-22 03:55:19.300510501 +0300
+@@ -26,7 +26,7 @@
+ #include "baseprocessor.h"
+ 
+ // simavr includes
+-#include "sim_avr.h"
++#include <simavr/sim_avr.h>
+ struct avr_t;
+ 
+ class AvrProcessor : public BaseProcessor
+--- src/simulator/elements/processors/read_elf.c    2018-03-16 11:18:04.000000000 +0300
++++ src/simulator/elements/processors/read_elf.c    2020-10-22 03:53:11.322128504 +0300
+@@ -7,10 +7,10 @@
+ #include <libelf.h>
+ #include <gelf.h>
+ 
+-#include "sim_elf.h"
+-#include "sim_vcd_file.h"
+-#include "avr_eeprom.h"
+-#include "avr_ioport.h"
++#include <simavr/sim_elf.h>
++#include <simavr/sim_vcd_file.h>
++#include <simavr/avr_eeprom.h>
++#include <simavr/avr_ioport.h>
+ 
+ #ifndef O_BINARY
+ #define O_BINARY 0
+--- SimulIDE.pro 2020-08-13 22:39:49.000000000 +0300
++++ SimulIDE.pro 2020-10-22 03:08:27.819023767 +0300
+@@ -61,8 +61,8 @@
+     ../src/simulator/elements/outputs/*.cpp \
+     ../src/simulator/elements/passive/*.cpp \
+     ../src/simulator/elements/processors/*.cpp \
+-    ../src/simavr/sim/*.c \
+-    ../src/simavr/cores/*.c \
++#    ../src/simavr/sim/*.c \
++#    ../src/simavr/cores/*.c \
+     ../src/gpsim/*.cc \
+     ../src/gpsim/devices/*.cc \
+     ../src/gpsim/modules/*.cc \
+@@ -96,9 +96,9 @@
+     ../src/simulator/elements/outputs/*.h \
+     ../src/simulator/elements/passive/*.h \
+     ../src/simulator/elements/processors/*.h \
+-    ../src/simavr/sim/*.h \
+-    ../src/simavr/sim/avr/*.h  \
+-    ../src/simavr/cores/*.h \
++#    ../src/simavr/sim/*.h \
++#    ../src/simavr/sim/avr/*.h  \
++#    ../src/simavr/cores/*.h \
+     ../resources/data/*.xml \
+     ../src/gpsim/*.h \
+     ../src/gpsim/devices/*.h \
+@@ -133,10 +133,10 @@
+     ../src/simulator/elements/outputs \
+     ../src/simulator/elements/passive \
+     ../src/simulator/elements/processors \
+-    ../src/simavr \
+-    ../src/simavr/sim \
+-    ../src/simavr/sim/avr \
+-    ../src/simavr/cores \
++#    ../src/simavr \
++#    ../src/simavr/sim \
++#    ../src/simavr/sim/avr \
++#    ../src/simavr/cores \
+     ../src/gpsim \
+     ../src/gpsim/devices \
+     ../src/gpsim/modules \
diff --git a/srcpkgs/simulide/patches/02-use-system-gpsim.bak b/srcpkgs/simulide/patches/02-use-system-gpsim.bak
new file mode 100644
index 00000000000..a52dbf94f78
--- /dev/null
+++ b/srcpkgs/simulide/patches/02-use-system-gpsim.bak
@@ -0,0 +1,94 @@
+--- src/simulator/elements/processors/picprocessor.cpp	2020-08-24 02:14:48.000000000 +0300
++++ src/simulator/elements/processors/picprocessor.cpp	2020-10-23 02:14:47.581299752 +0300
+@@ -25,10 +25,10 @@
+ #include "utils.h"
+ 
+ // GpSim includes
+-#include "uart.h"
+-#include "pir.h"
+-#include "eeprom.h"
+-#include "hexutils.h"
++#include <gpsim/uart.h>
++#include <gpsim/pir.h>
++#include <gpsim/eeprom.h>
++#include <gpsim/hexutils.h>
+ 
+ PicProcessor::PicProcessor( QObject* parent ) 
+             : BaseProcessor( parent )
+--- src/simulator/elements/processors/picprocessor.h	2020-08-24 02:13:59.000000000 +0300
++++ src/simulator/elements/processors/picprocessor.h	2020-10-22 04:51:33.604926613 +0300
+@@ -23,7 +23,7 @@
+ 
+ #include "baseprocessor.h"
+ 
+-#include "pic-processor.h"
+-#include "registers.h"
+-#include "hexutils.h"
++#include <gpsim/pic-processor.h>
++#include <gpsim/registers.h>
++#include <gpsim/hexutils.h>
+ 
+--- src/gui/circuitwidget/components/mcu/piccomponentpin.cpp	2020-05-24 10:32:10.000000000 +0300
++++ src/gui/circuitwidget/components/mcu/piccomponentpin.cpp	2020-10-22 04:07:33.887936322 +0300
+@@ -26,7 +26,7 @@
+ 
+ //#include "stimuli.h"
+ //#include "ioports.h"
+-#include "pic-processor.h"
++#include <gpsim/pic-processor.h>
+ //#include "gpsim_time.h"
+ 
+ PICComponentPin::PICComponentPin( McuComponent* mcu, QString id, QString type, QString label, int pos, int xpos, int ypos, int angle )
+--- SimulIDE.pro 2020-08-13 22:39:49.000000000 +0300
++++ SimulIDE.pro 2020-10-22 03:08:27.819023767 +0300
+@@ -61,12 +61,12 @@
+     ../src/simulator/elements/outputs/*.cpp \
+     ../src/simulator/elements/passive/*.cpp \
+     ../src/simulator/elements/processors/*.cpp \
+ #    ../src/simavr/sim/*.c \
+ #    ../src/simavr/cores/*.c \
+-    ../src/gpsim/*.cc \
+-    ../src/gpsim/devices/*.cc \
+-    ../src/gpsim/modules/*.cc \
+-    ../src/gpsim/registers/*.cc
++#    ../src/gpsim/*.cc \
++#    ../src/gpsim/devices/*.cc \
++#    ../src/gpsim/modules/*.cc \
++#    ../src/gpsim/registers/*.cc
+ 
+ HEADERS += ../src/*.h \
+     ../src/gui/*.h \
+@@ -96,14 +96,16 @@
+     ../src/simulator/elements/outputs/*.h \
+     ../src/simulator/elements/passive/*.h \
+     ../src/simulator/elements/processors/*.h \
+ #    ../src/simavr/sim/*.h \
+ #    ../src/simavr/sim/avr/*.h  \
+ #    ../src/simavr/cores/*.h \
+     ../resources/data/*.xml \
+-    ../src/gpsim/*.h \
+-    ../src/gpsim/devices/*.h \
+-    ../src/gpsim/modules/*.h \
+-    ../src/gpsim/registers/*.h \
++#    ../src/gpsim/*.h \
++#    ../src/gpsim/devices/*.h \
++#    ../src/gpsim/modules/*.h \
++#    ../src/gpsim/registers/*.h \
+      /usr/include/glib-2.0/glib.h \
+      /usr/lib/glib-2.0/include/glibconfig.h
+ 
+@@ -133,16 +133,16 @@
+     ../src/simulator/elements/outputs \
+     ../src/simulator/elements/passive \
+     ../src/simulator/elements/processors \
+-    ../src/gpsim \
+-    ../src/gpsim/devices \
+-    ../src/gpsim/modules \
+-    ../src/gpsim/registers \
++#    ../src/gpsim \
++#    ../src/gpsim/devices \
++#    ../src/gpsim/modules \
++#    ../src/gpsim/registers \
+ #    ../src/simavr \
+ #    ../src/simavr/sim \
+ #    ../src/simavr/sim/avr \
diff --git a/srcpkgs/simulide/template b/srcpkgs/simulide/template
new file mode 100644
index 00000000000..ee9af23d2d9
--- /dev/null
+++ b/srcpkgs/simulide/template
@@ -0,0 +1,24 @@
+# Template file for 'simulide'
+pkgname=simulide
+version=0.4.13
+revision=1
+_pkgname=SimulIDE
+_rev=SR5
+wrksrc=${pkgname}_${version}-${_rev}_Sources
+build_wrksrc=build_XX
+build_style=qmake
+hostmakedepends="qt5-qmake qt5-host-tools pkg-config"
+makedepends="qt5-devel qt5-svg-devel qt5-multimedia-devel qt5-serialport-devel qt5-script-devel elfutils-devel"
+short_desc="Electronic circuit simulator for PIC, AVR, Arduino"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="GPL-3.0-or-later"
+homepage="https://simulide.com"
+distfiles="https://mailfence.com/pub/docs/santigoro/web/${_pkgname}_${version}/${_pkgname}_${version}-${_rev}_Sources.tar.gz"
+checksum=b55b03e507882b8b68a25e5155dcac6020ba273be93bdf689612a0be67056d43
+nopie_files="/usr/bin/simulide"
+
+do_install() {
+	mv release/${_pkgname}_${version}-${_rev}/usr ./
+	vbin usr/bin/simulide
+	mv usr/share ${DESTDIR}/usr/
+}

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (6 preceding siblings ...)
  2020-10-30 14:03 ` [PR PATCH] [Updated] " Logarithmus
@ 2020-10-30 14:05 ` Logarithmus
  2020-10-30 14:06 ` Logarithmus
                   ` (14 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Logarithmus @ 2020-10-30 14:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

There is an updated pull request by Logarithmus against master on the void-packages repository

https://github.com/Logarithmus/void-packages simulide
https://github.com/void-linux/void-packages/pull/25945

New package: simulide-0.4.13
Real time electronic circuit simulator with PIC, AVR and Arduino simulation.
It bundles some older versions of `simavr` and `gpsim`. I tried to make it use up-to-date versions, which are installed system-wide, but turns out there's plenty of fixing needed to do it. So I postponed it for the future.
P. S. I'm not the author of this tool, I just use it for my university MCU programming course.

A patch file from https://github.com/void-linux/void-packages/pull/25945.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-simulide-25945.patch --]
[-- Type: text/x-diff, Size: 10768 bytes --]

From 589c13fcc312dc3abb14e348ab9ecb18272e8194 Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Wed, 28 Oct 2020 20:30:48 +0300
Subject: [PATCH] New package: simulide-0.4.13

---
 srcpkgs/simulide/patches/00-glib.patch        |  24 ++++
 .../simulide/patches/01-use-system-simavr.bak | 133 ++++++++++++++++++
 .../simulide/patches/02-use-system-gpsim.bak  |  94 +++++++++++++
 srcpkgs/simulide/template                     |  25 ++++
 4 files changed, 276 insertions(+)
 create mode 100644 srcpkgs/simulide/patches/00-glib.patch
 create mode 100644 srcpkgs/simulide/patches/01-use-system-simavr.bak
 create mode 100644 srcpkgs/simulide/patches/02-use-system-gpsim.bak
 create mode 100644 srcpkgs/simulide/template

diff --git a/srcpkgs/simulide/patches/00-glib.patch b/srcpkgs/simulide/patches/00-glib.patch
new file mode 100644
index 00000000000..f70ef7c02d9
--- /dev/null
+++ b/srcpkgs/simulide/patches/00-glib.patch
@@ -0,0 +1,24 @@
+--- SimulIDE.pro 2020-08-13 22:39:49.000000000 +0300
++++ SimulIDE.pro 2020-10-22 03:08:27.819023767 +0300
+@@ -103,7 +103,9 @@
+     ../src/gpsim/*.h \
+     ../src/gpsim/devices/*.h \
+     ../src/gpsim/modules/*.h \
+-    ../src/gpsim/registers/*.h
++    ../src/gpsim/registers/*.h \
++     /usr/include/glib-2.0/glib.h \
++     /usr/lib/glib-2.0/include/glibconfig.h
+
+ INCLUDEPATH += ../src \
+     ../src/gui \
+@@ -140,7 +140,9 @@
+     ../src/gpsim \
+     ../src/gpsim/devices \
+     ../src/gpsim/modules \
+-    ../src/gpsim/registers
++    ../src/gpsim/registers \
++     /usr/include/glib-2.0 \
++     /usr/lib/glib-2.0/include
+
+ TRANSLATIONS +=  \
+     ../resources/translations/simulide.ts \
diff --git a/srcpkgs/simulide/patches/01-use-system-simavr.bak b/srcpkgs/simulide/patches/01-use-system-simavr.bak
new file mode 100644
index 00000000000..452d70597f7
--- /dev/null
+++ b/srcpkgs/simulide/patches/01-use-system-simavr.bak
@@ -0,0 +1,133 @@
+--- src/gui/circuitwidget/components/mcu/arduino.cpp    2020-07-11 13:15:00.000000000 +0300
++++ src/gui/circuitwidget/components/mcu/arduino.cpp    2020-10-22 04:17:34.409831811 +0300
+@@ -26,7 +26,7 @@
+ 
+ #include "hd44780.h"
+ 
+-#include "avr_twi.h"
++#include <simavr/avr_twi.h>
+ 
+ LibraryItem* Arduino::libraryItem()
+ {
+--- src/gui/circuitwidget/components/mcu/avrcompbase.cpp    2020-07-04 20:30:48.000000000 +0300
++++ src/gui/circuitwidget/components/mcu/avrcompbase.cpp    2020-10-22 04:18:15.119908217 +0300
+@@ -20,7 +20,7 @@
+ #include <math.h>
+ 
+ #include "avrcompbase.h"
+-#include "avr_twi.h"
++#include <simavr/avr_twi.h>
+ 
+ 
+ AvrCompBase::AvrCompBase( QObject* parent, QString type, QString id )
+--- src/gui/circuitwidget/components/mcu/avrcomponentpin.h  2020-05-24 10:29:23.000000000 +0300
++++ src/gui/circuitwidget/components/mcu/avrcomponentpin.h  2020-10-22 04:06:23.234074279 +0300
+@@ -25,12 +25,12 @@
+ #include "mcucomponentpin.h"
+ 
+ //simavr includes
+-#include "sim_avr.h"
+-#include "sim_irq.h"
+-#include "sim_io.h"
+-#include "avr_adc.h"
+-#include "avr_ioport.h"
+-#include "avr_timer.h"
++#include <simavr/sim_avr.h>
++#include <simavr/sim_irq.h>
++#include <simavr/sim_io.h>
++#include <simavr/avr_adc.h>
++#include <simavr/avr_ioport.h>
++#include <simavr/avr_timer.h>
+ 
+ 
+ class AVRComponentPin : public McuComponentPin
+--- src/simulator/elements/processors/avrprocessor.cpp  2020-08-24 02:14:43.000000000 +0300
++++ src/simulator/elements/processors/avrprocessor.cpp  2020-10-22 04:00:42.865064317 +0300
+@@ -23,12 +23,12 @@
+ #include "utils.h"
+ 
+ // simavr includes
+-#include "sim_elf.h"
+-#include "sim_hex.h"
+-#include "sim_core.h"
+-#include "sim_gdb.h"
+-#include "avr_uart.h"
+-#include "avr_eeprom.h"
++#include <simavr/sim_elf.h>
++#include <simavr/sim_hex.h>
++#include <simavr/sim_core.h>
++#include <simavr/sim_gdb.h>
++#include <simavr/avr_uart.h>
++#include <simavr/avr_eeprom.h>
+ 
+ //AvrProcessor* AvrProcessor::m_pSelf = 0l;
+ 
+--- src/simulator/elements/processors/avrprocessor.h    2020-08-24 02:14:40.000000000 +0300
++++ src/simulator/elements/processors/avrprocessor.h    2020-10-22 03:55:19.300510501 +0300
+@@ -26,7 +26,7 @@
+ #include "baseprocessor.h"
+ 
+ // simavr includes
+-#include "sim_avr.h"
++#include <simavr/sim_avr.h>
+ struct avr_t;
+ 
+ class AvrProcessor : public BaseProcessor
+--- src/simulator/elements/processors/read_elf.c    2018-03-16 11:18:04.000000000 +0300
++++ src/simulator/elements/processors/read_elf.c    2020-10-22 03:53:11.322128504 +0300
+@@ -7,10 +7,10 @@
+ #include <libelf.h>
+ #include <gelf.h>
+ 
+-#include "sim_elf.h"
+-#include "sim_vcd_file.h"
+-#include "avr_eeprom.h"
+-#include "avr_ioport.h"
++#include <simavr/sim_elf.h>
++#include <simavr/sim_vcd_file.h>
++#include <simavr/avr_eeprom.h>
++#include <simavr/avr_ioport.h>
+ 
+ #ifndef O_BINARY
+ #define O_BINARY 0
+--- SimulIDE.pro 2020-08-13 22:39:49.000000000 +0300
++++ SimulIDE.pro 2020-10-22 03:08:27.819023767 +0300
+@@ -61,8 +61,8 @@
+     ../src/simulator/elements/outputs/*.cpp \
+     ../src/simulator/elements/passive/*.cpp \
+     ../src/simulator/elements/processors/*.cpp \
+-    ../src/simavr/sim/*.c \
+-    ../src/simavr/cores/*.c \
++#    ../src/simavr/sim/*.c \
++#    ../src/simavr/cores/*.c \
+     ../src/gpsim/*.cc \
+     ../src/gpsim/devices/*.cc \
+     ../src/gpsim/modules/*.cc \
+@@ -96,9 +96,9 @@
+     ../src/simulator/elements/outputs/*.h \
+     ../src/simulator/elements/passive/*.h \
+     ../src/simulator/elements/processors/*.h \
+-    ../src/simavr/sim/*.h \
+-    ../src/simavr/sim/avr/*.h  \
+-    ../src/simavr/cores/*.h \
++#    ../src/simavr/sim/*.h \
++#    ../src/simavr/sim/avr/*.h  \
++#    ../src/simavr/cores/*.h \
+     ../resources/data/*.xml \
+     ../src/gpsim/*.h \
+     ../src/gpsim/devices/*.h \
+@@ -133,10 +133,10 @@
+     ../src/simulator/elements/outputs \
+     ../src/simulator/elements/passive \
+     ../src/simulator/elements/processors \
+-    ../src/simavr \
+-    ../src/simavr/sim \
+-    ../src/simavr/sim/avr \
+-    ../src/simavr/cores \
++#    ../src/simavr \
++#    ../src/simavr/sim \
++#    ../src/simavr/sim/avr \
++#    ../src/simavr/cores \
+     ../src/gpsim \
+     ../src/gpsim/devices \
+     ../src/gpsim/modules \
diff --git a/srcpkgs/simulide/patches/02-use-system-gpsim.bak b/srcpkgs/simulide/patches/02-use-system-gpsim.bak
new file mode 100644
index 00000000000..a52dbf94f78
--- /dev/null
+++ b/srcpkgs/simulide/patches/02-use-system-gpsim.bak
@@ -0,0 +1,94 @@
+--- src/simulator/elements/processors/picprocessor.cpp	2020-08-24 02:14:48.000000000 +0300
++++ src/simulator/elements/processors/picprocessor.cpp	2020-10-23 02:14:47.581299752 +0300
+@@ -25,10 +25,10 @@
+ #include "utils.h"
+ 
+ // GpSim includes
+-#include "uart.h"
+-#include "pir.h"
+-#include "eeprom.h"
+-#include "hexutils.h"
++#include <gpsim/uart.h>
++#include <gpsim/pir.h>
++#include <gpsim/eeprom.h>
++#include <gpsim/hexutils.h>
+ 
+ PicProcessor::PicProcessor( QObject* parent ) 
+             : BaseProcessor( parent )
+--- src/simulator/elements/processors/picprocessor.h	2020-08-24 02:13:59.000000000 +0300
++++ src/simulator/elements/processors/picprocessor.h	2020-10-22 04:51:33.604926613 +0300
+@@ -23,7 +23,7 @@
+ 
+ #include "baseprocessor.h"
+ 
+-#include "pic-processor.h"
+-#include "registers.h"
+-#include "hexutils.h"
++#include <gpsim/pic-processor.h>
++#include <gpsim/registers.h>
++#include <gpsim/hexutils.h>
+ 
+--- src/gui/circuitwidget/components/mcu/piccomponentpin.cpp	2020-05-24 10:32:10.000000000 +0300
++++ src/gui/circuitwidget/components/mcu/piccomponentpin.cpp	2020-10-22 04:07:33.887936322 +0300
+@@ -26,7 +26,7 @@
+ 
+ //#include "stimuli.h"
+ //#include "ioports.h"
+-#include "pic-processor.h"
++#include <gpsim/pic-processor.h>
+ //#include "gpsim_time.h"
+ 
+ PICComponentPin::PICComponentPin( McuComponent* mcu, QString id, QString type, QString label, int pos, int xpos, int ypos, int angle )
+--- SimulIDE.pro 2020-08-13 22:39:49.000000000 +0300
++++ SimulIDE.pro 2020-10-22 03:08:27.819023767 +0300
+@@ -61,12 +61,12 @@
+     ../src/simulator/elements/outputs/*.cpp \
+     ../src/simulator/elements/passive/*.cpp \
+     ../src/simulator/elements/processors/*.cpp \
+ #    ../src/simavr/sim/*.c \
+ #    ../src/simavr/cores/*.c \
+-    ../src/gpsim/*.cc \
+-    ../src/gpsim/devices/*.cc \
+-    ../src/gpsim/modules/*.cc \
+-    ../src/gpsim/registers/*.cc
++#    ../src/gpsim/*.cc \
++#    ../src/gpsim/devices/*.cc \
++#    ../src/gpsim/modules/*.cc \
++#    ../src/gpsim/registers/*.cc
+ 
+ HEADERS += ../src/*.h \
+     ../src/gui/*.h \
+@@ -96,14 +96,16 @@
+     ../src/simulator/elements/outputs/*.h \
+     ../src/simulator/elements/passive/*.h \
+     ../src/simulator/elements/processors/*.h \
+ #    ../src/simavr/sim/*.h \
+ #    ../src/simavr/sim/avr/*.h  \
+ #    ../src/simavr/cores/*.h \
+     ../resources/data/*.xml \
+-    ../src/gpsim/*.h \
+-    ../src/gpsim/devices/*.h \
+-    ../src/gpsim/modules/*.h \
+-    ../src/gpsim/registers/*.h \
++#    ../src/gpsim/*.h \
++#    ../src/gpsim/devices/*.h \
++#    ../src/gpsim/modules/*.h \
++#    ../src/gpsim/registers/*.h \
+      /usr/include/glib-2.0/glib.h \
+      /usr/lib/glib-2.0/include/glibconfig.h
+ 
+@@ -133,16 +133,16 @@
+     ../src/simulator/elements/outputs \
+     ../src/simulator/elements/passive \
+     ../src/simulator/elements/processors \
+-    ../src/gpsim \
+-    ../src/gpsim/devices \
+-    ../src/gpsim/modules \
+-    ../src/gpsim/registers \
++#    ../src/gpsim \
++#    ../src/gpsim/devices \
++#    ../src/gpsim/modules \
++#    ../src/gpsim/registers \
+ #    ../src/simavr \
+ #    ../src/simavr/sim \
+ #    ../src/simavr/sim/avr \
diff --git a/srcpkgs/simulide/template b/srcpkgs/simulide/template
new file mode 100644
index 00000000000..858e24e3699
--- /dev/null
+++ b/srcpkgs/simulide/template
@@ -0,0 +1,25 @@
+# Template file for 'simulide'
+pkgname=simulide
+version=0.4.13
+revision=1
+_pkgname=SimulIDE
+_rev=SR5
+wrksrc=${pkgname}_${version}-${_rev}_Sources
+build_wrksrc=build_XX
+build_style=qmake
+hostmakedepends="qt5-qmake qt5-host-tools pkg-config"
+makedepends="qt5-devel qt5-svg-devel qt5-multimedia-devel qt5-serialport-devel qt5-script-devel elfutils-devel"
+short_desc="Electronic circuit simulator for PIC, AVR, Arduino"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="GPL-3.0-or-later"
+homepage="https://simulide.com"
+distfiles="https://mailfence.com/pub/docs/santigoro/web/${_pkgname}_${version}/${_pkgname}_${version}-${_rev}_Sources.tar.gz"
+checksum=b55b03e507882b8b68a25e5155dcac6020ba273be93bdf689612a0be67056d43
+nopie_files="/usr/bin/simulide"
+
+do_install() {
+	mkdir -p usr
+	mv release/${_pkgname}_${version}-${_rev}/* usr/
+	vbin usr/bin/simulide
+	mv usr/share ${DESTDIR}/usr/
+}

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (7 preceding siblings ...)
  2020-10-30 14:05 ` Logarithmus
@ 2020-10-30 14:06 ` Logarithmus
  2020-10-30 14:07 ` [PR REVIEW] " sgn
                   ` (13 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Logarithmus @ 2020-10-30 14:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

There is an updated pull request by Logarithmus against master on the void-packages repository

https://github.com/Logarithmus/void-packages simulide
https://github.com/void-linux/void-packages/pull/25945

New package: simulide-0.4.13
Real time electronic circuit simulator with PIC, AVR and Arduino simulation.
It bundles some older versions of `simavr` and `gpsim`. I tried to make it use up-to-date versions, which are installed system-wide, but turns out there's plenty of fixing needed to do it. So I postponed it for the future.
P. S. I'm not the author of this tool, I just use it for my university MCU programming course.

A patch file from https://github.com/void-linux/void-packages/pull/25945.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-simulide-25945.patch --]
[-- Type: text/x-diff, Size: 2527 bytes --]

From b17335d53b21ef06a90a23c0bdcf5835f3b1d365 Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Wed, 28 Oct 2020 20:30:48 +0300
Subject: [PATCH] New package: simulide-0.4.13

---
 srcpkgs/simulide/patches/00-glib.patch | 24 ++++++++++++++++++++++++
 srcpkgs/simulide/template              | 25 +++++++++++++++++++++++++
 2 files changed, 49 insertions(+)
 create mode 100644 srcpkgs/simulide/patches/00-glib.patch
 create mode 100644 srcpkgs/simulide/template

diff --git a/srcpkgs/simulide/patches/00-glib.patch b/srcpkgs/simulide/patches/00-glib.patch
new file mode 100644
index 00000000000..f70ef7c02d9
--- /dev/null
+++ b/srcpkgs/simulide/patches/00-glib.patch
@@ -0,0 +1,24 @@
+--- SimulIDE.pro 2020-08-13 22:39:49.000000000 +0300
++++ SimulIDE.pro 2020-10-22 03:08:27.819023767 +0300
+@@ -103,7 +103,9 @@
+     ../src/gpsim/*.h \
+     ../src/gpsim/devices/*.h \
+     ../src/gpsim/modules/*.h \
+-    ../src/gpsim/registers/*.h
++    ../src/gpsim/registers/*.h \
++     /usr/include/glib-2.0/glib.h \
++     /usr/lib/glib-2.0/include/glibconfig.h
+
+ INCLUDEPATH += ../src \
+     ../src/gui \
+@@ -140,7 +140,9 @@
+     ../src/gpsim \
+     ../src/gpsim/devices \
+     ../src/gpsim/modules \
+-    ../src/gpsim/registers
++    ../src/gpsim/registers \
++     /usr/include/glib-2.0 \
++     /usr/lib/glib-2.0/include
+
+ TRANSLATIONS +=  \
+     ../resources/translations/simulide.ts \
diff --git a/srcpkgs/simulide/template b/srcpkgs/simulide/template
new file mode 100644
index 00000000000..858e24e3699
--- /dev/null
+++ b/srcpkgs/simulide/template
@@ -0,0 +1,25 @@
+# Template file for 'simulide'
+pkgname=simulide
+version=0.4.13
+revision=1
+_pkgname=SimulIDE
+_rev=SR5
+wrksrc=${pkgname}_${version}-${_rev}_Sources
+build_wrksrc=build_XX
+build_style=qmake
+hostmakedepends="qt5-qmake qt5-host-tools pkg-config"
+makedepends="qt5-devel qt5-svg-devel qt5-multimedia-devel qt5-serialport-devel qt5-script-devel elfutils-devel"
+short_desc="Electronic circuit simulator for PIC, AVR, Arduino"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="GPL-3.0-or-later"
+homepage="https://simulide.com"
+distfiles="https://mailfence.com/pub/docs/santigoro/web/${_pkgname}_${version}/${_pkgname}_${version}-${_rev}_Sources.tar.gz"
+checksum=b55b03e507882b8b68a25e5155dcac6020ba273be93bdf689612a0be67056d43
+nopie_files="/usr/bin/simulide"
+
+do_install() {
+	mkdir -p usr
+	mv release/${_pkgname}_${version}-${_rev}/* usr/
+	vbin usr/bin/simulide
+	mv usr/share ${DESTDIR}/usr/
+}

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR REVIEW] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (8 preceding siblings ...)
  2020-10-30 14:06 ` Logarithmus
@ 2020-10-30 14:07 ` sgn
  2020-10-31  2:12 ` [PR PATCH] [Updated] " Logarithmus
                   ` (12 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: sgn @ 2020-10-30 14:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 262 bytes --]

New review comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/25945#discussion_r515123834

Comment:
I guess this chunk (in template file) would work (not tested):
```sh
CXXFLAGS="$($PKG_CONFIG --cflags glib-2.0)"
```

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (9 preceding siblings ...)
  2020-10-30 14:07 ` [PR REVIEW] " sgn
@ 2020-10-31  2:12 ` Logarithmus
  2020-10-31  4:12 ` [PR REVIEW] " sgn
                   ` (11 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Logarithmus @ 2020-10-31  2:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

There is an updated pull request by Logarithmus against master on the void-packages repository

https://github.com/Logarithmus/void-packages simulide
https://github.com/void-linux/void-packages/pull/25945

New package: simulide-0.4.13
Real time electronic circuit simulator with PIC, AVR and Arduino simulation.
It bundles some older versions of `simavr` and `gpsim`. I tried to make it use up-to-date versions, which are installed system-wide, but turns out there's plenty of fixing needed to do it. So I postponed it for the future.
P. S. I'm not the author of this tool, I just use it for my university MCU programming course.

A patch file from https://github.com/void-linux/void-packages/pull/25945.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-simulide-25945.patch --]
[-- Type: text/x-diff, Size: 2638 bytes --]

From b1e4e6d2c3d532319f40fc96b34e799284fbc8b0 Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Wed, 28 Oct 2020 20:30:48 +0300
Subject: [PATCH] New package: simulide-0.4.13

---
 srcpkgs/simulide/patches/00-glib.patch | 24 +++++++++++++++++++++
 srcpkgs/simulide/template              | 30 ++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 srcpkgs/simulide/patches/00-glib.patch
 create mode 100644 srcpkgs/simulide/template

diff --git a/srcpkgs/simulide/patches/00-glib.patch b/srcpkgs/simulide/patches/00-glib.patch
new file mode 100644
index 00000000000..f70ef7c02d9
--- /dev/null
+++ b/srcpkgs/simulide/patches/00-glib.patch
@@ -0,0 +1,24 @@
+--- SimulIDE.pro 2020-08-13 22:39:49.000000000 +0300
++++ SimulIDE.pro 2020-10-22 03:08:27.819023767 +0300
+@@ -103,7 +103,9 @@
+     ../src/gpsim/*.h \
+     ../src/gpsim/devices/*.h \
+     ../src/gpsim/modules/*.h \
+-    ../src/gpsim/registers/*.h
++    ../src/gpsim/registers/*.h \
++     /usr/include/glib-2.0/glib.h \
++     /usr/lib/glib-2.0/include/glibconfig.h
+
+ INCLUDEPATH += ../src \
+     ../src/gui \
+@@ -140,7 +140,9 @@
+     ../src/gpsim \
+     ../src/gpsim/devices \
+     ../src/gpsim/modules \
+-    ../src/gpsim/registers
++    ../src/gpsim/registers \
++     /usr/include/glib-2.0 \
++     /usr/lib/glib-2.0/include
+
+ TRANSLATIONS +=  \
+     ../resources/translations/simulide.ts \
diff --git a/srcpkgs/simulide/template b/srcpkgs/simulide/template
new file mode 100644
index 00000000000..92fa135ee2d
--- /dev/null
+++ b/srcpkgs/simulide/template
@@ -0,0 +1,30 @@
+# Template file for 'simulide'
+pkgname=simulide
+version=0.4.13
+revision=1
+_pkgname=SimulIDE
+_rev=SR5
+wrksrc=${pkgname}_${version}-${_rev}_Sources
+build_wrksrc=build_XX
+build_style=qmake
+hostmakedepends="qt5-qmake qt5-host-tools qt5-svg-devel qt5-script-devel
+	qt5-serialport-devel qt5-multimedia-devel pkg-config"
+makedepends="qt5-devel qt5-svg-devel qt5-multimedia-devel qt5-serialport-devel
+	qt5-script-devel elfutils-devel"
+short_desc="Electronic circuit simulator for PIC, AVR, Arduino"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="GPL-3.0-or-later"
+homepage="https://simulide.com"
+distfiles="https://mailfence.com/pub/docs/santigoro/web/${_pkgname}_${version}/${_pkgname}_${version}-${_rev}_Sources.tar.gz"
+checksum=b55b03e507882b8b68a25e5155dcac6020ba273be93bdf689612a0be67056d43
+nopie_files="/usr/bin/simulide"
+
+pre_build() {
+	CXXFLAGS="$($PKG_CONFIG --cflags glib-2.0)"
+}
+
+do_install() {
+	cd release/${_pkgname}_${version}-${_rev}
+	vbin bin/simulide
+	mv share ${DESTDIR}/usr/
+}

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR REVIEW] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (10 preceding siblings ...)
  2020-10-31  2:12 ` [PR PATCH] [Updated] " Logarithmus
@ 2020-10-31  4:12 ` sgn
  2020-10-31 13:39 ` [PR PATCH] [Updated] " Logarithmus
                   ` (10 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: sgn @ 2020-10-31  4:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 198 bytes --]

New review comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/25945#discussion_r515452944

Comment:
With that change added, I don't think we need to patch.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (11 preceding siblings ...)
  2020-10-31  4:12 ` [PR REVIEW] " sgn
@ 2020-10-31 13:39 ` Logarithmus
  2020-11-10 21:52 ` Logarithmus
                   ` (9 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Logarithmus @ 2020-10-31 13:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

There is an updated pull request by Logarithmus against master on the void-packages repository

https://github.com/Logarithmus/void-packages simulide
https://github.com/void-linux/void-packages/pull/25945

New package: simulide-0.4.13
Real time electronic circuit simulator with PIC, AVR and Arduino simulation.
It bundles some older versions of `simavr` and `gpsim`. I tried to make it use up-to-date versions, which are installed system-wide, but turns out there's plenty of fixing needed to do it. So I postponed it for the future.
P. S. I'm not the author of this tool, I just use it for my university MCU programming course.

A patch file from https://github.com/void-linux/void-packages/pull/25945.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-simulide-25945.patch --]
[-- Type: text/x-diff, Size: 1569 bytes --]

From c947b1382d5302b5603041d568c3426a59536241 Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Wed, 28 Oct 2020 20:30:48 +0300
Subject: [PATCH] New package: simulide-0.4.13

---
 srcpkgs/simulide/template | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 srcpkgs/simulide/template

diff --git a/srcpkgs/simulide/template b/srcpkgs/simulide/template
new file mode 100644
index 00000000000..92fa135ee2d
--- /dev/null
+++ b/srcpkgs/simulide/template
@@ -0,0 +1,30 @@
+# Template file for 'simulide'
+pkgname=simulide
+version=0.4.13
+revision=1
+_pkgname=SimulIDE
+_rev=SR5
+wrksrc=${pkgname}_${version}-${_rev}_Sources
+build_wrksrc=build_XX
+build_style=qmake
+hostmakedepends="qt5-qmake qt5-host-tools qt5-svg-devel qt5-script-devel
+	qt5-serialport-devel qt5-multimedia-devel pkg-config"
+makedepends="qt5-devel qt5-svg-devel qt5-multimedia-devel qt5-serialport-devel
+	qt5-script-devel elfutils-devel"
+short_desc="Electronic circuit simulator for PIC, AVR, Arduino"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="GPL-3.0-or-later"
+homepage="https://simulide.com"
+distfiles="https://mailfence.com/pub/docs/santigoro/web/${_pkgname}_${version}/${_pkgname}_${version}-${_rev}_Sources.tar.gz"
+checksum=b55b03e507882b8b68a25e5155dcac6020ba273be93bdf689612a0be67056d43
+nopie_files="/usr/bin/simulide"
+
+pre_build() {
+	CXXFLAGS="$($PKG_CONFIG --cflags glib-2.0)"
+}
+
+do_install() {
+	cd release/${_pkgname}_${version}-${_rev}
+	vbin bin/simulide
+	mv share ${DESTDIR}/usr/
+}

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (12 preceding siblings ...)
  2020-10-31 13:39 ` [PR PATCH] [Updated] " Logarithmus
@ 2020-11-10 21:52 ` Logarithmus
  2020-11-10 22:05 ` Logarithmus
                   ` (8 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Logarithmus @ 2020-11-10 21:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

There is an updated pull request by Logarithmus against master on the void-packages repository

https://github.com/Logarithmus/void-packages simulide
https://github.com/void-linux/void-packages/pull/25945

New package: simulide-0.4.13
Real time electronic circuit simulator with PIC, AVR and Arduino simulation.
It bundles some older versions of `simavr` and `gpsim`. I tried to make it use up-to-date versions, which are installed system-wide, but turns out there's plenty of fixing needed to do it. So I postponed it for the future.
P. S. I'm not the author of this tool, I just use it for my university MCU programming course.

A patch file from https://github.com/void-linux/void-packages/pull/25945.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-simulide-25945.patch --]
[-- Type: text/x-diff, Size: 9890 bytes --]

From 24c84d21435ad0bd01f6e68360b330e5e6bce3a4 Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Wed, 28 Oct 2020 20:30:48 +0300
Subject: [PATCH] New package: simulide-0.4.13

---
 .../simulide/patches/01-use-system-simavr.bak | 133 ++++++++++++++++++
 .../simulide/patches/02-use-system-gpsim.bak  |  94 +++++++++++++
 srcpkgs/simulide/template                     |  34 +++++
 3 files changed, 261 insertions(+)
 create mode 100644 srcpkgs/simulide/patches/01-use-system-simavr.bak
 create mode 100644 srcpkgs/simulide/patches/02-use-system-gpsim.bak
 create mode 100644 srcpkgs/simulide/template

diff --git a/srcpkgs/simulide/patches/01-use-system-simavr.bak b/srcpkgs/simulide/patches/01-use-system-simavr.bak
new file mode 100644
index 00000000000..452d70597f7
--- /dev/null
+++ b/srcpkgs/simulide/patches/01-use-system-simavr.bak
@@ -0,0 +1,133 @@
+--- src/gui/circuitwidget/components/mcu/arduino.cpp    2020-07-11 13:15:00.000000000 +0300
++++ src/gui/circuitwidget/components/mcu/arduino.cpp    2020-10-22 04:17:34.409831811 +0300
+@@ -26,7 +26,7 @@
+ 
+ #include "hd44780.h"
+ 
+-#include "avr_twi.h"
++#include <simavr/avr_twi.h>
+ 
+ LibraryItem* Arduino::libraryItem()
+ {
+--- src/gui/circuitwidget/components/mcu/avrcompbase.cpp    2020-07-04 20:30:48.000000000 +0300
++++ src/gui/circuitwidget/components/mcu/avrcompbase.cpp    2020-10-22 04:18:15.119908217 +0300
+@@ -20,7 +20,7 @@
+ #include <math.h>
+ 
+ #include "avrcompbase.h"
+-#include "avr_twi.h"
++#include <simavr/avr_twi.h>
+ 
+ 
+ AvrCompBase::AvrCompBase( QObject* parent, QString type, QString id )
+--- src/gui/circuitwidget/components/mcu/avrcomponentpin.h  2020-05-24 10:29:23.000000000 +0300
++++ src/gui/circuitwidget/components/mcu/avrcomponentpin.h  2020-10-22 04:06:23.234074279 +0300
+@@ -25,12 +25,12 @@
+ #include "mcucomponentpin.h"
+ 
+ //simavr includes
+-#include "sim_avr.h"
+-#include "sim_irq.h"
+-#include "sim_io.h"
+-#include "avr_adc.h"
+-#include "avr_ioport.h"
+-#include "avr_timer.h"
++#include <simavr/sim_avr.h>
++#include <simavr/sim_irq.h>
++#include <simavr/sim_io.h>
++#include <simavr/avr_adc.h>
++#include <simavr/avr_ioport.h>
++#include <simavr/avr_timer.h>
+ 
+ 
+ class AVRComponentPin : public McuComponentPin
+--- src/simulator/elements/processors/avrprocessor.cpp  2020-08-24 02:14:43.000000000 +0300
++++ src/simulator/elements/processors/avrprocessor.cpp  2020-10-22 04:00:42.865064317 +0300
+@@ -23,12 +23,12 @@
+ #include "utils.h"
+ 
+ // simavr includes
+-#include "sim_elf.h"
+-#include "sim_hex.h"
+-#include "sim_core.h"
+-#include "sim_gdb.h"
+-#include "avr_uart.h"
+-#include "avr_eeprom.h"
++#include <simavr/sim_elf.h>
++#include <simavr/sim_hex.h>
++#include <simavr/sim_core.h>
++#include <simavr/sim_gdb.h>
++#include <simavr/avr_uart.h>
++#include <simavr/avr_eeprom.h>
+ 
+ //AvrProcessor* AvrProcessor::m_pSelf = 0l;
+ 
+--- src/simulator/elements/processors/avrprocessor.h    2020-08-24 02:14:40.000000000 +0300
++++ src/simulator/elements/processors/avrprocessor.h    2020-10-22 03:55:19.300510501 +0300
+@@ -26,7 +26,7 @@
+ #include "baseprocessor.h"
+ 
+ // simavr includes
+-#include "sim_avr.h"
++#include <simavr/sim_avr.h>
+ struct avr_t;
+ 
+ class AvrProcessor : public BaseProcessor
+--- src/simulator/elements/processors/read_elf.c    2018-03-16 11:18:04.000000000 +0300
++++ src/simulator/elements/processors/read_elf.c    2020-10-22 03:53:11.322128504 +0300
+@@ -7,10 +7,10 @@
+ #include <libelf.h>
+ #include <gelf.h>
+ 
+-#include "sim_elf.h"
+-#include "sim_vcd_file.h"
+-#include "avr_eeprom.h"
+-#include "avr_ioport.h"
++#include <simavr/sim_elf.h>
++#include <simavr/sim_vcd_file.h>
++#include <simavr/avr_eeprom.h>
++#include <simavr/avr_ioport.h>
+ 
+ #ifndef O_BINARY
+ #define O_BINARY 0
+--- SimulIDE.pro 2020-08-13 22:39:49.000000000 +0300
++++ SimulIDE.pro 2020-10-22 03:08:27.819023767 +0300
+@@ -61,8 +61,8 @@
+     ../src/simulator/elements/outputs/*.cpp \
+     ../src/simulator/elements/passive/*.cpp \
+     ../src/simulator/elements/processors/*.cpp \
+-    ../src/simavr/sim/*.c \
+-    ../src/simavr/cores/*.c \
++#    ../src/simavr/sim/*.c \
++#    ../src/simavr/cores/*.c \
+     ../src/gpsim/*.cc \
+     ../src/gpsim/devices/*.cc \
+     ../src/gpsim/modules/*.cc \
+@@ -96,9 +96,9 @@
+     ../src/simulator/elements/outputs/*.h \
+     ../src/simulator/elements/passive/*.h \
+     ../src/simulator/elements/processors/*.h \
+-    ../src/simavr/sim/*.h \
+-    ../src/simavr/sim/avr/*.h  \
+-    ../src/simavr/cores/*.h \
++#    ../src/simavr/sim/*.h \
++#    ../src/simavr/sim/avr/*.h  \
++#    ../src/simavr/cores/*.h \
+     ../resources/data/*.xml \
+     ../src/gpsim/*.h \
+     ../src/gpsim/devices/*.h \
+@@ -133,10 +133,10 @@
+     ../src/simulator/elements/outputs \
+     ../src/simulator/elements/passive \
+     ../src/simulator/elements/processors \
+-    ../src/simavr \
+-    ../src/simavr/sim \
+-    ../src/simavr/sim/avr \
+-    ../src/simavr/cores \
++#    ../src/simavr \
++#    ../src/simavr/sim \
++#    ../src/simavr/sim/avr \
++#    ../src/simavr/cores \
+     ../src/gpsim \
+     ../src/gpsim/devices \
+     ../src/gpsim/modules \
diff --git a/srcpkgs/simulide/patches/02-use-system-gpsim.bak b/srcpkgs/simulide/patches/02-use-system-gpsim.bak
new file mode 100644
index 00000000000..a52dbf94f78
--- /dev/null
+++ b/srcpkgs/simulide/patches/02-use-system-gpsim.bak
@@ -0,0 +1,94 @@
+--- src/simulator/elements/processors/picprocessor.cpp	2020-08-24 02:14:48.000000000 +0300
++++ src/simulator/elements/processors/picprocessor.cpp	2020-10-23 02:14:47.581299752 +0300
+@@ -25,10 +25,10 @@
+ #include "utils.h"
+ 
+ // GpSim includes
+-#include "uart.h"
+-#include "pir.h"
+-#include "eeprom.h"
+-#include "hexutils.h"
++#include <gpsim/uart.h>
++#include <gpsim/pir.h>
++#include <gpsim/eeprom.h>
++#include <gpsim/hexutils.h>
+ 
+ PicProcessor::PicProcessor( QObject* parent ) 
+             : BaseProcessor( parent )
+--- src/simulator/elements/processors/picprocessor.h	2020-08-24 02:13:59.000000000 +0300
++++ src/simulator/elements/processors/picprocessor.h	2020-10-22 04:51:33.604926613 +0300
+@@ -23,7 +23,7 @@
+ 
+ #include "baseprocessor.h"
+ 
+-#include "pic-processor.h"
+-#include "registers.h"
+-#include "hexutils.h"
++#include <gpsim/pic-processor.h>
++#include <gpsim/registers.h>
++#include <gpsim/hexutils.h>
+ 
+--- src/gui/circuitwidget/components/mcu/piccomponentpin.cpp	2020-05-24 10:32:10.000000000 +0300
++++ src/gui/circuitwidget/components/mcu/piccomponentpin.cpp	2020-10-22 04:07:33.887936322 +0300
+@@ -26,7 +26,7 @@
+ 
+ //#include "stimuli.h"
+ //#include "ioports.h"
+-#include "pic-processor.h"
++#include <gpsim/pic-processor.h>
+ //#include "gpsim_time.h"
+ 
+ PICComponentPin::PICComponentPin( McuComponent* mcu, QString id, QString type, QString label, int pos, int xpos, int ypos, int angle )
+--- SimulIDE.pro 2020-08-13 22:39:49.000000000 +0300
++++ SimulIDE.pro 2020-10-22 03:08:27.819023767 +0300
+@@ -61,12 +61,12 @@
+     ../src/simulator/elements/outputs/*.cpp \
+     ../src/simulator/elements/passive/*.cpp \
+     ../src/simulator/elements/processors/*.cpp \
+ #    ../src/simavr/sim/*.c \
+ #    ../src/simavr/cores/*.c \
+-    ../src/gpsim/*.cc \
+-    ../src/gpsim/devices/*.cc \
+-    ../src/gpsim/modules/*.cc \
+-    ../src/gpsim/registers/*.cc
++#    ../src/gpsim/*.cc \
++#    ../src/gpsim/devices/*.cc \
++#    ../src/gpsim/modules/*.cc \
++#    ../src/gpsim/registers/*.cc
+ 
+ HEADERS += ../src/*.h \
+     ../src/gui/*.h \
+@@ -96,14 +96,16 @@
+     ../src/simulator/elements/outputs/*.h \
+     ../src/simulator/elements/passive/*.h \
+     ../src/simulator/elements/processors/*.h \
+ #    ../src/simavr/sim/*.h \
+ #    ../src/simavr/sim/avr/*.h  \
+ #    ../src/simavr/cores/*.h \
+     ../resources/data/*.xml \
+-    ../src/gpsim/*.h \
+-    ../src/gpsim/devices/*.h \
+-    ../src/gpsim/modules/*.h \
+-    ../src/gpsim/registers/*.h \
++#    ../src/gpsim/*.h \
++#    ../src/gpsim/devices/*.h \
++#    ../src/gpsim/modules/*.h \
++#    ../src/gpsim/registers/*.h \
+      /usr/include/glib-2.0/glib.h \
+      /usr/lib/glib-2.0/include/glibconfig.h
+ 
+@@ -133,16 +133,16 @@
+     ../src/simulator/elements/outputs \
+     ../src/simulator/elements/passive \
+     ../src/simulator/elements/processors \
+-    ../src/gpsim \
+-    ../src/gpsim/devices \
+-    ../src/gpsim/modules \
+-    ../src/gpsim/registers \
++#    ../src/gpsim \
++#    ../src/gpsim/devices \
++#    ../src/gpsim/modules \
++#    ../src/gpsim/registers \
+ #    ../src/simavr \
+ #    ../src/simavr/sim \
+ #    ../src/simavr/sim/avr \
diff --git a/srcpkgs/simulide/template b/srcpkgs/simulide/template
new file mode 100644
index 00000000000..6dd53536ff5
--- /dev/null
+++ b/srcpkgs/simulide/template
@@ -0,0 +1,34 @@
+# Template file for 'simulide'
+pkgname=simulide
+version=0.4.13
+revision=1
+_pkgname=SimulIDE
+_rev=SR5
+wrksrc=${pkgname}_${version}-${_rev}_Sources
+build_wrksrc=build_XX
+build_style=qmake
+hostmakedepends="qt5-qmake pkg-config"
+makedepends="qt5-devel qt5-svg-devel qt5-multimedia-devel qt5-serialport-devel
+	qt5-script-devel elfutils-devel"
+short_desc="Electronic circuit simulator for PIC, AVR, Arduino"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="GPL-3.0-or-later"
+homepage="https://simulide.com"
+distfiles="https://mailfence.com/pub/docs/santigoro/web/${_pkgname}_${version}/${_pkgname}_${version}-${_rev}_Sources.tar.gz"
+checksum=b55b03e507882b8b68a25e5155dcac6020ba273be93bdf689612a0be67056d43
+nopie_files="/usr/bin/simulide"
+
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+="qt5-host-tools qt5-svg-devel qt5-script-devel \
+	qt5-serialport-devel qt5-multimedia-devel"
+fi
+
+pre_build() {
+	CXXFLAGS="$($PKG_CONFIG --cflags glib-2.0)"
+}
+
+do_install() {
+	cd release/${_pkgname}_${version}-${_rev}
+	vbin bin/simulide
+	mv share ${DESTDIR}/usr/
+}

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (13 preceding siblings ...)
  2020-11-10 21:52 ` Logarithmus
@ 2020-11-10 22:05 ` Logarithmus
  2020-11-10 22:20 ` Logarithmus
                   ` (7 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Logarithmus @ 2020-11-10 22:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

There is an updated pull request by Logarithmus against master on the void-packages repository

https://github.com/Logarithmus/void-packages simulide
https://github.com/void-linux/void-packages/pull/25945

New package: simulide-0.4.13
Real time electronic circuit simulator with PIC, AVR and Arduino simulation.
It bundles some older versions of `simavr` and `gpsim`. I tried to make it use up-to-date versions, which are installed system-wide, but turns out there's plenty of fixing needed to do it. So I postponed it for the future.
P. S. I'm not the author of this tool, I just use it for my university MCU programming course.

A patch file from https://github.com/void-linux/void-packages/pull/25945.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-simulide-25945.patch --]
[-- Type: text/x-diff, Size: 9890 bytes --]

From 24c84d21435ad0bd01f6e68360b330e5e6bce3a4 Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Wed, 28 Oct 2020 20:30:48 +0300
Subject: [PATCH] New package: simulide-0.4.13

---
 .../simulide/patches/01-use-system-simavr.bak | 133 ++++++++++++++++++
 .../simulide/patches/02-use-system-gpsim.bak  |  94 +++++++++++++
 srcpkgs/simulide/template                     |  34 +++++
 3 files changed, 261 insertions(+)
 create mode 100644 srcpkgs/simulide/patches/01-use-system-simavr.bak
 create mode 100644 srcpkgs/simulide/patches/02-use-system-gpsim.bak
 create mode 100644 srcpkgs/simulide/template

diff --git a/srcpkgs/simulide/patches/01-use-system-simavr.bak b/srcpkgs/simulide/patches/01-use-system-simavr.bak
new file mode 100644
index 00000000000..452d70597f7
--- /dev/null
+++ b/srcpkgs/simulide/patches/01-use-system-simavr.bak
@@ -0,0 +1,133 @@
+--- src/gui/circuitwidget/components/mcu/arduino.cpp    2020-07-11 13:15:00.000000000 +0300
++++ src/gui/circuitwidget/components/mcu/arduino.cpp    2020-10-22 04:17:34.409831811 +0300
+@@ -26,7 +26,7 @@
+ 
+ #include "hd44780.h"
+ 
+-#include "avr_twi.h"
++#include <simavr/avr_twi.h>
+ 
+ LibraryItem* Arduino::libraryItem()
+ {
+--- src/gui/circuitwidget/components/mcu/avrcompbase.cpp    2020-07-04 20:30:48.000000000 +0300
++++ src/gui/circuitwidget/components/mcu/avrcompbase.cpp    2020-10-22 04:18:15.119908217 +0300
+@@ -20,7 +20,7 @@
+ #include <math.h>
+ 
+ #include "avrcompbase.h"
+-#include "avr_twi.h"
++#include <simavr/avr_twi.h>
+ 
+ 
+ AvrCompBase::AvrCompBase( QObject* parent, QString type, QString id )
+--- src/gui/circuitwidget/components/mcu/avrcomponentpin.h  2020-05-24 10:29:23.000000000 +0300
++++ src/gui/circuitwidget/components/mcu/avrcomponentpin.h  2020-10-22 04:06:23.234074279 +0300
+@@ -25,12 +25,12 @@
+ #include "mcucomponentpin.h"
+ 
+ //simavr includes
+-#include "sim_avr.h"
+-#include "sim_irq.h"
+-#include "sim_io.h"
+-#include "avr_adc.h"
+-#include "avr_ioport.h"
+-#include "avr_timer.h"
++#include <simavr/sim_avr.h>
++#include <simavr/sim_irq.h>
++#include <simavr/sim_io.h>
++#include <simavr/avr_adc.h>
++#include <simavr/avr_ioport.h>
++#include <simavr/avr_timer.h>
+ 
+ 
+ class AVRComponentPin : public McuComponentPin
+--- src/simulator/elements/processors/avrprocessor.cpp  2020-08-24 02:14:43.000000000 +0300
++++ src/simulator/elements/processors/avrprocessor.cpp  2020-10-22 04:00:42.865064317 +0300
+@@ -23,12 +23,12 @@
+ #include "utils.h"
+ 
+ // simavr includes
+-#include "sim_elf.h"
+-#include "sim_hex.h"
+-#include "sim_core.h"
+-#include "sim_gdb.h"
+-#include "avr_uart.h"
+-#include "avr_eeprom.h"
++#include <simavr/sim_elf.h>
++#include <simavr/sim_hex.h>
++#include <simavr/sim_core.h>
++#include <simavr/sim_gdb.h>
++#include <simavr/avr_uart.h>
++#include <simavr/avr_eeprom.h>
+ 
+ //AvrProcessor* AvrProcessor::m_pSelf = 0l;
+ 
+--- src/simulator/elements/processors/avrprocessor.h    2020-08-24 02:14:40.000000000 +0300
++++ src/simulator/elements/processors/avrprocessor.h    2020-10-22 03:55:19.300510501 +0300
+@@ -26,7 +26,7 @@
+ #include "baseprocessor.h"
+ 
+ // simavr includes
+-#include "sim_avr.h"
++#include <simavr/sim_avr.h>
+ struct avr_t;
+ 
+ class AvrProcessor : public BaseProcessor
+--- src/simulator/elements/processors/read_elf.c    2018-03-16 11:18:04.000000000 +0300
++++ src/simulator/elements/processors/read_elf.c    2020-10-22 03:53:11.322128504 +0300
+@@ -7,10 +7,10 @@
+ #include <libelf.h>
+ #include <gelf.h>
+ 
+-#include "sim_elf.h"
+-#include "sim_vcd_file.h"
+-#include "avr_eeprom.h"
+-#include "avr_ioport.h"
++#include <simavr/sim_elf.h>
++#include <simavr/sim_vcd_file.h>
++#include <simavr/avr_eeprom.h>
++#include <simavr/avr_ioport.h>
+ 
+ #ifndef O_BINARY
+ #define O_BINARY 0
+--- SimulIDE.pro 2020-08-13 22:39:49.000000000 +0300
++++ SimulIDE.pro 2020-10-22 03:08:27.819023767 +0300
+@@ -61,8 +61,8 @@
+     ../src/simulator/elements/outputs/*.cpp \
+     ../src/simulator/elements/passive/*.cpp \
+     ../src/simulator/elements/processors/*.cpp \
+-    ../src/simavr/sim/*.c \
+-    ../src/simavr/cores/*.c \
++#    ../src/simavr/sim/*.c \
++#    ../src/simavr/cores/*.c \
+     ../src/gpsim/*.cc \
+     ../src/gpsim/devices/*.cc \
+     ../src/gpsim/modules/*.cc \
+@@ -96,9 +96,9 @@
+     ../src/simulator/elements/outputs/*.h \
+     ../src/simulator/elements/passive/*.h \
+     ../src/simulator/elements/processors/*.h \
+-    ../src/simavr/sim/*.h \
+-    ../src/simavr/sim/avr/*.h  \
+-    ../src/simavr/cores/*.h \
++#    ../src/simavr/sim/*.h \
++#    ../src/simavr/sim/avr/*.h  \
++#    ../src/simavr/cores/*.h \
+     ../resources/data/*.xml \
+     ../src/gpsim/*.h \
+     ../src/gpsim/devices/*.h \
+@@ -133,10 +133,10 @@
+     ../src/simulator/elements/outputs \
+     ../src/simulator/elements/passive \
+     ../src/simulator/elements/processors \
+-    ../src/simavr \
+-    ../src/simavr/sim \
+-    ../src/simavr/sim/avr \
+-    ../src/simavr/cores \
++#    ../src/simavr \
++#    ../src/simavr/sim \
++#    ../src/simavr/sim/avr \
++#    ../src/simavr/cores \
+     ../src/gpsim \
+     ../src/gpsim/devices \
+     ../src/gpsim/modules \
diff --git a/srcpkgs/simulide/patches/02-use-system-gpsim.bak b/srcpkgs/simulide/patches/02-use-system-gpsim.bak
new file mode 100644
index 00000000000..a52dbf94f78
--- /dev/null
+++ b/srcpkgs/simulide/patches/02-use-system-gpsim.bak
@@ -0,0 +1,94 @@
+--- src/simulator/elements/processors/picprocessor.cpp	2020-08-24 02:14:48.000000000 +0300
++++ src/simulator/elements/processors/picprocessor.cpp	2020-10-23 02:14:47.581299752 +0300
+@@ -25,10 +25,10 @@
+ #include "utils.h"
+ 
+ // GpSim includes
+-#include "uart.h"
+-#include "pir.h"
+-#include "eeprom.h"
+-#include "hexutils.h"
++#include <gpsim/uart.h>
++#include <gpsim/pir.h>
++#include <gpsim/eeprom.h>
++#include <gpsim/hexutils.h>
+ 
+ PicProcessor::PicProcessor( QObject* parent ) 
+             : BaseProcessor( parent )
+--- src/simulator/elements/processors/picprocessor.h	2020-08-24 02:13:59.000000000 +0300
++++ src/simulator/elements/processors/picprocessor.h	2020-10-22 04:51:33.604926613 +0300
+@@ -23,7 +23,7 @@
+ 
+ #include "baseprocessor.h"
+ 
+-#include "pic-processor.h"
+-#include "registers.h"
+-#include "hexutils.h"
++#include <gpsim/pic-processor.h>
++#include <gpsim/registers.h>
++#include <gpsim/hexutils.h>
+ 
+--- src/gui/circuitwidget/components/mcu/piccomponentpin.cpp	2020-05-24 10:32:10.000000000 +0300
++++ src/gui/circuitwidget/components/mcu/piccomponentpin.cpp	2020-10-22 04:07:33.887936322 +0300
+@@ -26,7 +26,7 @@
+ 
+ //#include "stimuli.h"
+ //#include "ioports.h"
+-#include "pic-processor.h"
++#include <gpsim/pic-processor.h>
+ //#include "gpsim_time.h"
+ 
+ PICComponentPin::PICComponentPin( McuComponent* mcu, QString id, QString type, QString label, int pos, int xpos, int ypos, int angle )
+--- SimulIDE.pro 2020-08-13 22:39:49.000000000 +0300
++++ SimulIDE.pro 2020-10-22 03:08:27.819023767 +0300
+@@ -61,12 +61,12 @@
+     ../src/simulator/elements/outputs/*.cpp \
+     ../src/simulator/elements/passive/*.cpp \
+     ../src/simulator/elements/processors/*.cpp \
+ #    ../src/simavr/sim/*.c \
+ #    ../src/simavr/cores/*.c \
+-    ../src/gpsim/*.cc \
+-    ../src/gpsim/devices/*.cc \
+-    ../src/gpsim/modules/*.cc \
+-    ../src/gpsim/registers/*.cc
++#    ../src/gpsim/*.cc \
++#    ../src/gpsim/devices/*.cc \
++#    ../src/gpsim/modules/*.cc \
++#    ../src/gpsim/registers/*.cc
+ 
+ HEADERS += ../src/*.h \
+     ../src/gui/*.h \
+@@ -96,14 +96,16 @@
+     ../src/simulator/elements/outputs/*.h \
+     ../src/simulator/elements/passive/*.h \
+     ../src/simulator/elements/processors/*.h \
+ #    ../src/simavr/sim/*.h \
+ #    ../src/simavr/sim/avr/*.h  \
+ #    ../src/simavr/cores/*.h \
+     ../resources/data/*.xml \
+-    ../src/gpsim/*.h \
+-    ../src/gpsim/devices/*.h \
+-    ../src/gpsim/modules/*.h \
+-    ../src/gpsim/registers/*.h \
++#    ../src/gpsim/*.h \
++#    ../src/gpsim/devices/*.h \
++#    ../src/gpsim/modules/*.h \
++#    ../src/gpsim/registers/*.h \
+      /usr/include/glib-2.0/glib.h \
+      /usr/lib/glib-2.0/include/glibconfig.h
+ 
+@@ -133,16 +133,16 @@
+     ../src/simulator/elements/outputs \
+     ../src/simulator/elements/passive \
+     ../src/simulator/elements/processors \
+-    ../src/gpsim \
+-    ../src/gpsim/devices \
+-    ../src/gpsim/modules \
+-    ../src/gpsim/registers \
++#    ../src/gpsim \
++#    ../src/gpsim/devices \
++#    ../src/gpsim/modules \
++#    ../src/gpsim/registers \
+ #    ../src/simavr \
+ #    ../src/simavr/sim \
+ #    ../src/simavr/sim/avr \
diff --git a/srcpkgs/simulide/template b/srcpkgs/simulide/template
new file mode 100644
index 00000000000..6dd53536ff5
--- /dev/null
+++ b/srcpkgs/simulide/template
@@ -0,0 +1,34 @@
+# Template file for 'simulide'
+pkgname=simulide
+version=0.4.13
+revision=1
+_pkgname=SimulIDE
+_rev=SR5
+wrksrc=${pkgname}_${version}-${_rev}_Sources
+build_wrksrc=build_XX
+build_style=qmake
+hostmakedepends="qt5-qmake pkg-config"
+makedepends="qt5-devel qt5-svg-devel qt5-multimedia-devel qt5-serialport-devel
+	qt5-script-devel elfutils-devel"
+short_desc="Electronic circuit simulator for PIC, AVR, Arduino"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="GPL-3.0-or-later"
+homepage="https://simulide.com"
+distfiles="https://mailfence.com/pub/docs/santigoro/web/${_pkgname}_${version}/${_pkgname}_${version}-${_rev}_Sources.tar.gz"
+checksum=b55b03e507882b8b68a25e5155dcac6020ba273be93bdf689612a0be67056d43
+nopie_files="/usr/bin/simulide"
+
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+="qt5-host-tools qt5-svg-devel qt5-script-devel \
+	qt5-serialport-devel qt5-multimedia-devel"
+fi
+
+pre_build() {
+	CXXFLAGS="$($PKG_CONFIG --cflags glib-2.0)"
+}
+
+do_install() {
+	cd release/${_pkgname}_${version}-${_rev}
+	vbin bin/simulide
+	mv share ${DESTDIR}/usr/
+}

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (14 preceding siblings ...)
  2020-11-10 22:05 ` Logarithmus
@ 2020-11-10 22:20 ` Logarithmus
  2020-11-10 22:26 ` Logarithmus
                   ` (6 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Logarithmus @ 2020-11-10 22:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

There is an updated pull request by Logarithmus against master on the void-packages repository

https://github.com/Logarithmus/void-packages simulide
https://github.com/void-linux/void-packages/pull/25945

New package: simulide-0.4.13
Real time electronic circuit simulator with PIC, AVR and Arduino simulation.
It bundles some older versions of `simavr` and `gpsim`. I tried to make it use up-to-date versions, which are installed system-wide, but turns out there's plenty of fixing needed to do it. So I postponed it for the future.
P. S. I'm not the author of this tool, I just use it for my university MCU programming course.

A patch file from https://github.com/void-linux/void-packages/pull/25945.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-simulide-25945.patch --]
[-- Type: text/x-diff, Size: 1632 bytes --]

From f06e54c6c4bc2827219784620a186025bc5ec95a Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Wed, 28 Oct 2020 20:30:48 +0300
Subject: [PATCH] New package: simulide-0.4.13

---
 srcpkgs/simulide/template | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 srcpkgs/simulide/template

diff --git a/srcpkgs/simulide/template b/srcpkgs/simulide/template
new file mode 100644
index 00000000000..d6b793f0745
--- /dev/null
+++ b/srcpkgs/simulide/template
@@ -0,0 +1,34 @@
+# Template file for 'simulide'
+pkgname=simulide
+version=0.4.13
+revision=2
+_pkgname=SimulIDE
+_rev=SR5
+wrksrc=${pkgname}_${version}-${_rev}_Sources
+build_wrksrc=build_XX
+build_style=qmake
+hostmakedepends="qt5-qmake pkg-config"
+makedepends="qt5-devel qt5-svg-devel qt5-multimedia-devel qt5-serialport-devel
+	qt5-script-devel elfutils-devel"
+short_desc="Electronic circuit simulator for PIC, AVR, Arduino"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="GPL-3.0-or-later"
+homepage="https://simulide.com"
+distfiles="https://mailfence.com/pub/docs/santigoro/web/${_pkgname}_${version}/${_pkgname}_${version}-${_rev}_Sources.tar.gz"
+checksum=b55b03e507882b8b68a25e5155dcac6020ba273be93bdf689612a0be67056d43
+nopie_files="/usr/bin/simulide"
+
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" qt5-host-tools qt5-svg-devel qt5-script-devel \
+	qt5-serialport-devel qt5-multimedia-devel"
+fi
+
+pre_build() {
+	CXXFLAGS="$($PKG_CONFIG --cflags glib-2.0)"
+}
+
+do_install() {
+	cd release/${_pkgname}_${version}-${_rev}
+	vbin bin/simulide
+	mv share ${DESTDIR}/usr/
+}

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (15 preceding siblings ...)
  2020-11-10 22:20 ` Logarithmus
@ 2020-11-10 22:26 ` Logarithmus
  2020-11-10 22:26 ` Logarithmus
                   ` (5 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Logarithmus @ 2020-11-10 22:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

There is an updated pull request by Logarithmus against master on the void-packages repository

https://github.com/Logarithmus/void-packages simulide
https://github.com/void-linux/void-packages/pull/25945

New package: simulide-0.4.13
Real time electronic circuit simulator with PIC, AVR and Arduino simulation.
It bundles some older versions of `simavr` and `gpsim`. I tried to make it use up-to-date versions, which are installed system-wide, but turns out there's plenty of fixing needed to do it. So I postponed it for the future.
P. S. I'm not the author of this tool, I just use it for my university MCU programming course.

A patch file from https://github.com/void-linux/void-packages/pull/25945.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-simulide-25945.patch --]
[-- Type: text/x-diff, Size: 1633 bytes --]

From f6f7bc63820caeb7d3507582162e2f9e7f88b40c Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Wed, 28 Oct 2020 20:30:48 +0300
Subject: [PATCH] New package: simulide-0.4.13

---
 srcpkgs/simulide/template | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 srcpkgs/simulide/template

diff --git a/srcpkgs/simulide/template b/srcpkgs/simulide/template
new file mode 100644
index 00000000000..62b6bedf4a0
--- /dev/null
+++ b/srcpkgs/simulide/template
@@ -0,0 +1,34 @@
+# Template file for 'simulide'
+pkgname=simulide
+version=0.4.13
+revision=2
+_pkgname=SimulIDE
+_rev=SR5
+wrksrc=${pkgname}_${version}-${_rev}_Sources
+build_wrksrc=build_XX
+build_style=qmake
+hostmakedepends="qt5-qmake pkg-config"
+makedepends="qt5-devel qt5-svg-devel qt5-multimedia-devel qt5-serialport-devel
+	qt5-script-devel elfutils-devel"
+short_desc="Electronic circuit simulator for PIC, AVR, Arduino"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="GPL-3.0-or-later"
+homepage="https://simulide.com"
+distfiles="https://mailfence.com/pub/docs/santigoro/web/${_pkgname}_${version}/${_pkgname}_${version}-${_rev}_Sources.tar.gz"
+checksum=b55b03e507882b8b68a25e5155dcac6020ba273be93bdf689612a0be67056d43
+nopie_files="/usr/bin/simulide"
+
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+="  qt5-host-tools qt5-svg-devel qt5-script-devel \
+	qt5-serialport-devel qt5-multimedia-devel"
+fi
+
+pre_build() {
+	CXXFLAGS="$($PKG_CONFIG --cflags glib-2.0)"
+}
+
+do_install() {
+	cd release/${_pkgname}_${version}-${_rev}
+	vbin bin/simulide
+	mv share ${DESTDIR}/usr/
+}

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (16 preceding siblings ...)
  2020-11-10 22:26 ` Logarithmus
@ 2020-11-10 22:26 ` Logarithmus
  2020-11-10 22:44 ` Logarithmus
                   ` (4 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Logarithmus @ 2020-11-10 22:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

There is an updated pull request by Logarithmus against master on the void-packages repository

https://github.com/Logarithmus/void-packages simulide
https://github.com/void-linux/void-packages/pull/25945

New package: simulide-0.4.13
Real time electronic circuit simulator with PIC, AVR and Arduino simulation.
It bundles some older versions of `simavr` and `gpsim`. I tried to make it use up-to-date versions, which are installed system-wide, but turns out there's plenty of fixing needed to do it. So I postponed it for the future.
P. S. I'm not the author of this tool, I just use it for my university MCU programming course.

A patch file from https://github.com/void-linux/void-packages/pull/25945.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-simulide-25945.patch --]
[-- Type: text/x-diff, Size: 1632 bytes --]

From c0ea992e3cd5a889b6dd307100ad15e09b3b7749 Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Wed, 28 Oct 2020 20:30:48 +0300
Subject: [PATCH] New package: simulide-0.4.13

---
 srcpkgs/simulide/template | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 srcpkgs/simulide/template

diff --git a/srcpkgs/simulide/template b/srcpkgs/simulide/template
new file mode 100644
index 00000000000..d6b793f0745
--- /dev/null
+++ b/srcpkgs/simulide/template
@@ -0,0 +1,34 @@
+# Template file for 'simulide'
+pkgname=simulide
+version=0.4.13
+revision=2
+_pkgname=SimulIDE
+_rev=SR5
+wrksrc=${pkgname}_${version}-${_rev}_Sources
+build_wrksrc=build_XX
+build_style=qmake
+hostmakedepends="qt5-qmake pkg-config"
+makedepends="qt5-devel qt5-svg-devel qt5-multimedia-devel qt5-serialport-devel
+	qt5-script-devel elfutils-devel"
+short_desc="Electronic circuit simulator for PIC, AVR, Arduino"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="GPL-3.0-or-later"
+homepage="https://simulide.com"
+distfiles="https://mailfence.com/pub/docs/santigoro/web/${_pkgname}_${version}/${_pkgname}_${version}-${_rev}_Sources.tar.gz"
+checksum=b55b03e507882b8b68a25e5155dcac6020ba273be93bdf689612a0be67056d43
+nopie_files="/usr/bin/simulide"
+
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" qt5-host-tools qt5-svg-devel qt5-script-devel \
+	qt5-serialport-devel qt5-multimedia-devel"
+fi
+
+pre_build() {
+	CXXFLAGS="$($PKG_CONFIG --cflags glib-2.0)"
+}
+
+do_install() {
+	cd release/${_pkgname}_${version}-${_rev}
+	vbin bin/simulide
+	mv share ${DESTDIR}/usr/
+}

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (17 preceding siblings ...)
  2020-11-10 22:26 ` Logarithmus
@ 2020-11-10 22:44 ` Logarithmus
  2020-11-10 22:45 ` Logarithmus
                   ` (3 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Logarithmus @ 2020-11-10 22:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

There is an updated pull request by Logarithmus against master on the void-packages repository

https://github.com/Logarithmus/void-packages simulide
https://github.com/void-linux/void-packages/pull/25945

New package: simulide-0.4.13
Real time electronic circuit simulator with PIC, AVR and Arduino simulation.
It bundles some older versions of `simavr` and `gpsim`. I tried to make it use up-to-date versions, which are installed system-wide, but turns out there's plenty of fixing needed to do it. So I postponed it for the future.
P. S. I'm not the author of this tool, I just use it for my university MCU programming course.

A patch file from https://github.com/void-linux/void-packages/pull/25945.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-simulide-25945.patch --]
[-- Type: text/x-diff, Size: 1633 bytes --]

From 8c8abc8e9128171bf0c40d43706559abd47d27b3 Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Wed, 28 Oct 2020 20:30:48 +0300
Subject: [PATCH] New package: simulide-0.4.13

---
 srcpkgs/simulide/template | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 srcpkgs/simulide/template

diff --git a/srcpkgs/simulide/template b/srcpkgs/simulide/template
new file mode 100644
index 00000000000..62b6bedf4a0
--- /dev/null
+++ b/srcpkgs/simulide/template
@@ -0,0 +1,34 @@
+# Template file for 'simulide'
+pkgname=simulide
+version=0.4.13
+revision=2
+_pkgname=SimulIDE
+_rev=SR5
+wrksrc=${pkgname}_${version}-${_rev}_Sources
+build_wrksrc=build_XX
+build_style=qmake
+hostmakedepends="qt5-qmake pkg-config"
+makedepends="qt5-devel qt5-svg-devel qt5-multimedia-devel qt5-serialport-devel
+	qt5-script-devel elfutils-devel"
+short_desc="Electronic circuit simulator for PIC, AVR, Arduino"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="GPL-3.0-or-later"
+homepage="https://simulide.com"
+distfiles="https://mailfence.com/pub/docs/santigoro/web/${_pkgname}_${version}/${_pkgname}_${version}-${_rev}_Sources.tar.gz"
+checksum=b55b03e507882b8b68a25e5155dcac6020ba273be93bdf689612a0be67056d43
+nopie_files="/usr/bin/simulide"
+
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+="  qt5-host-tools qt5-svg-devel qt5-script-devel \
+	qt5-serialport-devel qt5-multimedia-devel"
+fi
+
+pre_build() {
+	CXXFLAGS="$($PKG_CONFIG --cflags glib-2.0)"
+}
+
+do_install() {
+	cd release/${_pkgname}_${version}-${_rev}
+	vbin bin/simulide
+	mv share ${DESTDIR}/usr/
+}

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (18 preceding siblings ...)
  2020-11-10 22:44 ` Logarithmus
@ 2020-11-10 22:45 ` Logarithmus
  2020-11-11  0:23 ` Logarithmus
                   ` (2 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Logarithmus @ 2020-11-10 22:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

There is an updated pull request by Logarithmus against master on the void-packages repository

https://github.com/Logarithmus/void-packages simulide
https://github.com/void-linux/void-packages/pull/25945

New package: simulide-0.4.13
Real time electronic circuit simulator with PIC, AVR and Arduino simulation.
It bundles some older versions of `simavr` and `gpsim`. I tried to make it use up-to-date versions, which are installed system-wide, but turns out there's plenty of fixing needed to do it. So I postponed it for the future.
P. S. I'm not the author of this tool, I just use it for my university MCU programming course.

A patch file from https://github.com/void-linux/void-packages/pull/25945.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-simulide-25945.patch --]
[-- Type: text/x-diff, Size: 1632 bytes --]

From b71f4ea84106ca68adcb68af326da924e9067c91 Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Wed, 28 Oct 2020 20:30:48 +0300
Subject: [PATCH] New package: simulide-0.4.13

---
 srcpkgs/simulide/template | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 srcpkgs/simulide/template

diff --git a/srcpkgs/simulide/template b/srcpkgs/simulide/template
new file mode 100644
index 00000000000..d6b793f0745
--- /dev/null
+++ b/srcpkgs/simulide/template
@@ -0,0 +1,34 @@
+# Template file for 'simulide'
+pkgname=simulide
+version=0.4.13
+revision=2
+_pkgname=SimulIDE
+_rev=SR5
+wrksrc=${pkgname}_${version}-${_rev}_Sources
+build_wrksrc=build_XX
+build_style=qmake
+hostmakedepends="qt5-qmake pkg-config"
+makedepends="qt5-devel qt5-svg-devel qt5-multimedia-devel qt5-serialport-devel
+	qt5-script-devel elfutils-devel"
+short_desc="Electronic circuit simulator for PIC, AVR, Arduino"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="GPL-3.0-or-later"
+homepage="https://simulide.com"
+distfiles="https://mailfence.com/pub/docs/santigoro/web/${_pkgname}_${version}/${_pkgname}_${version}-${_rev}_Sources.tar.gz"
+checksum=b55b03e507882b8b68a25e5155dcac6020ba273be93bdf689612a0be67056d43
+nopie_files="/usr/bin/simulide"
+
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" qt5-host-tools qt5-svg-devel qt5-script-devel \
+	qt5-serialport-devel qt5-multimedia-devel"
+fi
+
+pre_build() {
+	CXXFLAGS="$($PKG_CONFIG --cflags glib-2.0)"
+}
+
+do_install() {
+	cd release/${_pkgname}_${version}-${_rev}
+	vbin bin/simulide
+	mv share ${DESTDIR}/usr/
+}

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR PATCH] [Updated] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (19 preceding siblings ...)
  2020-11-10 22:45 ` Logarithmus
@ 2020-11-11  0:23 ` Logarithmus
  2020-11-21 21:47 ` [PR REVIEW] " the-maldridge
  2020-11-21 21:51 ` Logarithmus
  22 siblings, 0 replies; 24+ messages in thread
From: Logarithmus @ 2020-11-11  0:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

There is an updated pull request by Logarithmus against master on the void-packages repository

https://github.com/Logarithmus/void-packages simulide
https://github.com/void-linux/void-packages/pull/25945

New package: simulide-0.4.13
Real time electronic circuit simulator with PIC, AVR and Arduino simulation.
It bundles some older versions of `simavr` and `gpsim`. I tried to make it use up-to-date versions, which are installed system-wide, but turns out there's plenty of fixing needed to do it. So I postponed it for the future.
P. S. I'm not the author of this tool, I just use it for my university MCU programming course.

A patch file from https://github.com/void-linux/void-packages/pull/25945.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-simulide-25945.patch --]
[-- Type: text/x-diff, Size: 1632 bytes --]

From 758e90ce60b0d12599324331bf3df3b6389e406b Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Wed, 28 Oct 2020 20:30:48 +0300
Subject: [PATCH] New package: simulide-0.4.13

---
 srcpkgs/simulide/template | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 srcpkgs/simulide/template

diff --git a/srcpkgs/simulide/template b/srcpkgs/simulide/template
new file mode 100644
index 00000000000..d6b793f0745
--- /dev/null
+++ b/srcpkgs/simulide/template
@@ -0,0 +1,34 @@
+# Template file for 'simulide'
+pkgname=simulide
+version=0.4.13
+revision=2
+_pkgname=SimulIDE
+_rev=SR5
+wrksrc=${pkgname}_${version}-${_rev}_Sources
+build_wrksrc=build_XX
+build_style=qmake
+hostmakedepends="qt5-qmake pkg-config"
+makedepends="qt5-devel qt5-svg-devel qt5-multimedia-devel qt5-serialport-devel
+	qt5-script-devel elfutils-devel"
+short_desc="Electronic circuit simulator for PIC, AVR, Arduino"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="GPL-3.0-or-later"
+homepage="https://simulide.com"
+distfiles="https://mailfence.com/pub/docs/santigoro/web/${_pkgname}_${version}/${_pkgname}_${version}-${_rev}_Sources.tar.gz"
+checksum=b55b03e507882b8b68a25e5155dcac6020ba273be93bdf689612a0be67056d43
+nopie_files="/usr/bin/simulide"
+
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" qt5-host-tools qt5-svg-devel qt5-script-devel \
+	qt5-serialport-devel qt5-multimedia-devel"
+fi
+
+pre_build() {
+	CXXFLAGS="$($PKG_CONFIG --cflags glib-2.0)"
+}
+
+do_install() {
+	cd release/${_pkgname}_${version}-${_rev}
+	vbin bin/simulide
+	mv share ${DESTDIR}/usr/
+}

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR REVIEW] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (20 preceding siblings ...)
  2020-11-11  0:23 ` Logarithmus
@ 2020-11-21 21:47 ` the-maldridge
  2020-11-21 21:51 ` Logarithmus
  22 siblings, 0 replies; 24+ messages in thread
From: the-maldridge @ 2020-11-21 21:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 352 bytes --]

New review comment by the-maldridge on void-packages repository

https://github.com/void-linux/void-packages/pull/25945#discussion_r528246588

Comment:
Generally we prefer to build all binaries with PIE flags, and needing to set this here is generally an indication that the xbps-src CFLAGS are not being passed to the build.  Can you check into this?

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [PR REVIEW] New package: simulide-0.4.13
  2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
                   ` (21 preceding siblings ...)
  2020-11-21 21:47 ` [PR REVIEW] " the-maldridge
@ 2020-11-21 21:51 ` Logarithmus
  22 siblings, 0 replies; 24+ messages in thread
From: Logarithmus @ 2020-11-21 21:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 167 bytes --]

New review comment by Logarithmus on void-packages repository

https://github.com/void-linux/void-packages/pull/25945#discussion_r528246886

Comment:
A few days later

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2020-11-21 21:51 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-28 18:02 [PR PATCH] New package: simulide-0.4.13 Logarithmus
2020-10-28 18:19 ` [PR REVIEW] " ericonr
2020-10-28 18:19 ` ericonr
2020-10-28 18:27 ` [PR PATCH] [Updated] " Logarithmus
2020-10-28 18:31 ` [PR REVIEW] " Logarithmus
2020-10-28 18:31 ` Logarithmus
2020-10-28 18:32 ` Logarithmus
2020-10-30 14:03 ` [PR PATCH] [Updated] " Logarithmus
2020-10-30 14:05 ` Logarithmus
2020-10-30 14:06 ` Logarithmus
2020-10-30 14:07 ` [PR REVIEW] " sgn
2020-10-31  2:12 ` [PR PATCH] [Updated] " Logarithmus
2020-10-31  4:12 ` [PR REVIEW] " sgn
2020-10-31 13:39 ` [PR PATCH] [Updated] " Logarithmus
2020-11-10 21:52 ` Logarithmus
2020-11-10 22:05 ` Logarithmus
2020-11-10 22:20 ` Logarithmus
2020-11-10 22:26 ` Logarithmus
2020-11-10 22:26 ` Logarithmus
2020-11-10 22:44 ` Logarithmus
2020-11-10 22:45 ` Logarithmus
2020-11-11  0:23 ` Logarithmus
2020-11-21 21:47 ` [PR REVIEW] " the-maldridge
2020-11-21 21:51 ` Logarithmus

Github messages for voidlinux

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/voidlinux-github

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 voidlinux-github voidlinux-github/ http://inbox.vuxu.org/voidlinux-github \
		voidlinux-github@inbox.vuxu.org
	public-inbox-index voidlinux-github

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.github.voidlinux


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git