author | Edouard Tisserant <edouard.tisserant@gmail.com> |
Sun, 21 Aug 2022 19:32:38 +0200 | |
changeset 104 | 70d77ca75af2 |
parent 101 | 5799370243c0 |
child 106 | cf158979ecae |
permissions | -rw-r--r-- |
79
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
1 |
name: beremiz |
101
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
2 |
adopt-info: beremiz |
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
3 |
summary: Beremiz Open Source PLC. |
79
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
4 |
description: | |
81
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
5 |
Beremiz is Free and Open Source PLC. It brings Free Software IDE (GPL) and Runtime (LGPL) for machine automation, conforming to IEC-61131. |
101
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
6 |
icon: snap/gui/beremiz.png |
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
7 |
contact: |
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
8 |
- https://beremiz.org |
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
9 |
- snap@beremiz.fr |
81
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
10 |
|
79
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
11 |
|
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
12 |
grade: devel |
101
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
13 |
confinement: strict |
79
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
14 |
base: core20 |
101
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
15 |
architectures: [amd64, arm64] |
79
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
16 |
|
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
17 |
parts: |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
18 |
|
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
19 |
python-deps: |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
20 |
# This part provides all python2 dependencies, including interpreter |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
21 |
# More particularily, it builds latest PIP supporting python2 from git |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
22 |
# and uses it to collect and buid other Beremiz dependencies. |
81
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
23 |
# |
79
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
24 |
# rational: |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
25 |
# - python plugin doesn't support python2 anymore on core20+ |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
26 |
# - attempts to get python2+pip+virtualenv in a core20 based snap failed |
81
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
27 |
|
79
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
28 |
plugin: nil |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
29 |
source: https://github.com/pypa/pip/archive/refs/tags/20.3.4.tar.gz |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
30 |
build-packages: |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
31 |
- libssl-dev |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
32 |
- libgtk-3-dev |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
33 |
- libgl1-mesa-dev |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
34 |
- libglu1-mesa-dev |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
35 |
- python2-dev |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
36 |
|
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
37 |
stage-packages: |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
38 |
- python2 |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
39 |
- python-setuptools |
86
3564991cd359
SNAP: replace lxml versions to be compatible with Beremiz.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
82
diff
changeset
|
40 |
- python-lxml |
79
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
41 |
|
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
42 |
override-build: | |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
43 |
# For some reasons site-packages needs to be created and |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
44 |
# added to PYTHONPATH during PIP (own) build. |
81
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
45 |
# Apparently not anymore when snap is executed. |
79
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
46 |
mkdir $SNAPCRAFT_PART_INSTALL/usr/lib/python2.7/site-packages |
81
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
47 |
PYTHONPATH=$SNAPCRAFT_PART_INSTALL/usr/lib/python2.7/site-packages \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
48 |
$SNAPCRAFT_PART_INSTALL/usr/bin/python2 $SNAPCRAFT_PART_SRC/setup.py \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
49 |
install --prefix $SNAPCRAFT_PART_INSTALL/usr |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
50 |
PYTHONPATH=$SNAPCRAFT_PART_INSTALL/usr/lib/python2.7/site-packages \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
51 |
$SNAPCRAFT_PART_INSTALL/usr/bin/pip install \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
52 |
future \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
53 |
matplotlib \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
54 |
msgpack_python \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
55 |
u-msgpack-python \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
56 |
zeroconf2 \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
57 |
enum34 \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
58 |
pyro \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
59 |
sslpsk \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
60 |
posix_spawn \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
61 |
twisted \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
62 |
nevow \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
63 |
autobahn \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
64 |
click \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
65 |
opcua \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
66 |
pycountry \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
67 |
fonttools \ |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
68 |
Brotli \ |
79
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
69 |
wxPython==4.1.1 |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
70 |
|
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
71 |
beremiz: |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
72 |
# Beremiz python source + GCC toolchain |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
73 |
# source tree is expected to be just aside snap directory |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
74 |
plugin: nil |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
75 |
source: beremiz |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
76 |
source-type: local |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
77 |
stage-packages: |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
78 |
- gcc |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
79 |
- libc6 |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
80 |
- libc6-dev |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
81 |
- linux-libc-dev |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
82 |
- libgcc-9-dev |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
83 |
- libgcc-s1 |
101
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
84 |
override-pull: | |
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
85 |
snapcraftctl pull |
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
86 |
snapcraftctl set-version `python2 $SNAPCRAFT_PART_SRC/version.py` |
79
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
87 |
override-build: | |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
88 |
cp -a $SNAPCRAFT_PART_SRC $SNAPCRAFT_PART_INSTALL/beremiz |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
89 |
|
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
90 |
matiec: |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
91 |
# Matiec ST, SFC and IL compiler. |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
92 |
# source tree is expected to be just aside snap directory |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
93 |
plugin: nil |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
94 |
source: matiec |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
95 |
source-type: local |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
96 |
build-packages: |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
97 |
- build-essential |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
98 |
- automake |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
99 |
- flex |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
100 |
- bison |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
101 |
override-build: | |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
102 |
autoreconf -i && ./configure && make |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
103 |
cp -a $SNAPCRAFT_PART_BUILD $SNAPCRAFT_PART_INSTALL/matiec |
81
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
104 |
|
82
90da520cbaa5
SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
81
diff
changeset
|
105 |
modbus: |
90da520cbaa5
SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
81
diff
changeset
|
106 |
plugin: nil |
90da520cbaa5
SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
81
diff
changeset
|
107 |
source: Modbus |
90da520cbaa5
SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
81
diff
changeset
|
108 |
source-type: local |
90da520cbaa5
SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
81
diff
changeset
|
109 |
build-packages: |
90da520cbaa5
SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
81
diff
changeset
|
110 |
- build-essential |
90da520cbaa5
SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
81
diff
changeset
|
111 |
- automake |
90da520cbaa5
SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
81
diff
changeset
|
112 |
override-build: | |
90da520cbaa5
SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
81
diff
changeset
|
113 |
make |
90da520cbaa5
SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
81
diff
changeset
|
114 |
cp -a $SNAPCRAFT_PART_BUILD $SNAPCRAFT_PART_INSTALL/Modbus |
90da520cbaa5
SNAP: add Modbus source and dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
81
diff
changeset
|
115 |
|
81
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
116 |
open62541: |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
117 |
plugin: nil |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
118 |
source: open62541 |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
119 |
source-type: local |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
120 |
build-packages: |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
121 |
- build-essential |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
122 |
- cmake |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
123 |
override-build: | |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
124 |
mkdir build && cd build && cmake .. && make |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
125 |
cp -a $SNAPCRAFT_PART_BUILD $SNAPCRAFT_PART_INSTALL/open62541 |
79
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
126 |
|
81
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
127 |
inkscape: |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
128 |
# CLI only, used in SVGHMI build |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
129 |
# GUI fails to launch couldn't find a way |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
130 |
plugin: nil |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
131 |
stage-packages: |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
132 |
- inkscape |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
133 |
- libgtk-3-0 |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
134 |
# libgtk3 needs to be explicitely given |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
135 |
# otherwise wxGtk doesn't start, with this error : |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
136 |
# libgtk-3.so.0: undefined symbol: pango_font_family_get_face |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
137 |
# ... why ? |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
138 |
|
79
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
139 |
revisiontxt: |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
140 |
# Makefile generated "revisions.txt" |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
141 |
plugin: nil |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
142 |
source: . |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
143 |
source-type: local |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
144 |
override-build: | |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
145 |
cp $SNAPCRAFT_PART_SRC/revisions.txt $SNAPCRAFT_PART_INSTALL |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
146 |
|
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
147 |
apps: |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
148 |
ide: |
81
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
149 |
# Launcher for the IDE |
79
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
150 |
environment: |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
151 |
SYSROOT: $SNAP |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
152 |
command: usr/bin/python2 $SNAP/beremiz/Beremiz.py |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
153 |
extensions: [gnome-3-38] |
101
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
154 |
plugs: |
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
155 |
- network |
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
156 |
- network-bind |
79
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
157 |
|
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
158 |
beremiz: |
81
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
159 |
# Beremiz Command Line interface |
79
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
160 |
environment: |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
161 |
SYSROOT: $SNAP |
a8b434605895
Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
162 |
command: usr/bin/python2 $SNAP/beremiz/Beremiz_cli.py |
101
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
163 |
plugs: |
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
164 |
- network |
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
165 |
- network-bind |
81
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
166 |
|
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
167 |
runtime: |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
168 |
# Standalone runtime |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
169 |
environment: |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
170 |
SYSROOT: $SNAP |
a95b2fa896e9
SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
79
diff
changeset
|
171 |
command: usr/bin/python2 $SNAP/beremiz/Beremiz_service.py |
101
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
172 |
plugs: |
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
173 |
- network |
5799370243c0
Version "name" of installer and snap is now deduced from beremiz' version.py
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
86
diff
changeset
|
174 |
- network-bind |
86
3564991cd359
SNAP: replace lxml versions to be compatible with Beremiz.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
82
diff
changeset
|
175 |