Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
slapos
Commits
1c9065fe
Commit
1c9065fe
authored
Mar 03, 2023
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Plain Diff
Beremiz-ide: Enable materia theme required for IDE tests
See merge request
nexedi/slapos!1369
parents
547ce36a
2d158aa7
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
73 additions
and
9 deletions
+73
-9
component/gtk-3/buildout.cfg
component/gtk-3/buildout.cfg
+15
-0
component/xorg/buildout.cfg
component/xorg/buildout.cfg
+10
-0
software/beremiz-ide/buildout.hash.cfg
software/beremiz-ide/buildout.hash.cfg
+3
-3
software/beremiz-ide/instance-beremiz-test.cfg.jinja2.in
software/beremiz-ide/instance-beremiz-test.cfg.jinja2.in
+8
-2
software/beremiz-ide/instance-beremiz.cfg.jinja2.in
software/beremiz-ide/instance-beremiz.cfg.jinja2.in
+23
-0
software/beremiz-ide/instance.cfg.in
software/beremiz-ide/instance.cfg.in
+2
-0
software/beremiz-ide/software.cfg
software/beremiz-ide/software.cfg
+9
-3
software/beremiz-ide/test.cfg
software/beremiz-ide/test.cfg
+3
-1
No files found.
component/gtk-3/buildout.cfg
View file @
1c9065fe
...
...
@@ -9,6 +9,9 @@ extends =
../pcre/buildout.cfg
../perl/buildout.cfg
../perl-XML-Parser/buildout.cfg
../meson/buildout.cfg
../nodejs/buildout.cfg
../ninja/buildout.cfg
../xorg/buildout.cfg
[at-spi2-core]
...
...
@@ -33,6 +36,18 @@ environment =
PATH=${intltool:location}/bin:${pkgconfig:location}/bin:${xz-utils:location}/bin:%(PATH)s
PKG_CONFIG_PATH=${atk:location}/lib/pkgconfig:${at-spi2-core:location}/lib/pkgconfig:${dbus:location}/lib/pkgconfig:${glib:location}/lib/pkgconfig:${pcre:location}/lib/pkgconfig
[gtk-materia-theme]
recipe = slapos.recipe.cmmi
url = https://github.com/nana-4/materia-theme/archive/eb83bc174fad52cba9541efa78587664ca19542c.tar.gz
md5sum = 7072e92f8395770f0ebb43403bd754cc
configure-command =
meson _build -Dprefix="@@LOCATION@@" -Dcolors=default,light,dark -Dsizes=default,compact
make-targets =
make-binary = meson install -C _build
environment =
PATH=${ninja:location}/bin:${meson:location}/bin:${glib:location}/bin:${nodejs:location}/bin:%(PATH)s
[gtk-3]
recipe = slapos.recipe.cmmi
shared = true
...
...
component/xorg/buildout.cfg
View file @
1c9065fe
...
...
@@ -589,6 +589,16 @@ environment =
CPPFLAGS=-I${libXt:location}/include
LDFLAGS=-L${libX11:location}/lib -Wl,-rpath=${libX11:location}/lib -L${libxkbfile:location}/lib -Wl,-rpath=${libxkbfile:location}/lib
[xdpyinfo]
recipe = slapos.recipe.cmmi
url = https://www.x.org/releases/individual/app/xdpyinfo-1.3.3.tar.xz
md5sum = f67116760888f2e06486ee3d179875d2
environment =
PATH=${pkgconfig:location}/bin:%(PATH)s
PKG_CONFIG_PATH=${xorg-util-macros:location}/share/pkgconfig:${xproto:location}/lib/pkgconfig:${libX11:location}/lib/pkgconfig:${xextproto:location}/lib/pkgconfig:${libX11:location}/lib/pkgconfig:${libXext:location}/lib/pkgconfig:${libXtst:location}/lib/pkgconfig:${recordproto:location}/lib/pkgconfig:${kbproto:location}/lib/pkgconfig:${libXi:location}/lib/pkgconfig:${libXi:pkg_config_depends}
CPPFLAGS=-I${libXt:location}/include
LDFLAGS=-L${libX11:location}/lib -Wl,-rpath=${libX11:location}/lib -Wl,-rpath=${libXi:location}/lib -Wl,-rpath=${libXtst:location}/lib -Wl,-rpath=${libXext:location}/lib -Wl,-rpath=${libXau:location}/lib -Wl,-rpath=${libXdmcp:location}/lib
[xserver]
# Adds Xvfb functionnality
recipe = slapos.recipe.cmmi
...
...
software/beremiz-ide/buildout.hash.cfg
View file @
1c9065fe
...
...
@@ -15,15 +15,15 @@
[instance]
filename = instance.cfg.in
md5sum = e
8aae0fe3a8bc3f006b8638ed326bbcb
md5sum = e
d2bd38b78f2a66f474205249f6e6f2c
[template-instance-beremiz]
filename = instance-beremiz.cfg.jinja2.in
md5sum =
2b990148e527117bcfb366f8b700c807
md5sum =
bca63fc8943e7c5fa7dd43841e49bf95
[template-instance-beremiz-test]
filename = instance-beremiz-test.cfg.jinja2.in
md5sum =
a2fa2b9d3a225a1dd71db67bd4fea769
md5sum =
2d6d892d1cc4a09c598fa14c721069b6
[template-fluxbox-menu.in]
filename = fluxbox-menu.in
...
...
software/beremiz-ide/instance-beremiz-test.cfg.jinja2.in
View file @
1c9065fe
...
...
@@ -13,6 +13,12 @@ environment =
XORG_LOCK_DIR=${xserver:lock-dir}
DISPLAY=${xserver:display}
[enable-matieria-theme]
inline =
[Settings]
gtk-font-name=FreeSans,12
gtk-theme-name=Materia
[xdotool]
recipe = slapos.cookbook:wrapper
command-line = {{ xdotool_bin }}
...
...
@@ -24,9 +30,9 @@ environment =
[beremiz-env.sh]
# Add openssl needed to build matiec during tests
inline +=
#export OPENSSL_CRYPTO_LIBRARY={{ openssl_location }}/lib
#export OPENSSL_INCLUDE_DIR={{ openssl_location }}/include
export OPENSSL_ROOT_DIR={{ openssl_location }}
export LDFLAGS=-L{{ openssl_location }}/lib
export TESSDATAPATH={{ tesseract_data }}
[runTestSuite]
env.sh = ${beremiz-env.sh:output}
...
...
software/beremiz-ide/instance-beremiz.cfg.jinja2.in
View file @
1c9065fe
...
...
@@ -11,6 +11,9 @@ var = ${buildout:directory}/var
tmp = ${buildout:directory}/tmp
log = ${:var}/log
vnc = ${buildout:directory}/.vnc
themes = ${buildout:directory}/.themes
config = ${buildout:directory}/.config
gtk3-config = ${:config}/gtk-3.0
scripts = ${:etc}/run
services = ${:etc}/service
promise = ${:etc}/promise
...
...
@@ -159,6 +162,21 @@ recipe = slapos.cookbook:wrapper
wrapper-path = ${directory:promise}/xserver-is-up
command-line = bash -c "[ -S ${xserver:lock-dir}/.X11-unix/X${xserver:display-num} ]"
[install-gtk-materia-theme]
recipe = plone.recipe.command
command =
cp -r {{ gtk_materia_theme }}/share/themes/* ${directory:themes}/
update-command = ${:command}
stop-on-error = true
[enable-matieria-theme]
recipe = slapos.recipe.template
inline =
[Settings]
gtk-font-name=FreeSans,10
gtk-theme-name=Materia
output = ${directory:gtk3-config}/settings.ini
[fluxbox-menu]
recipe = slapos.recipe.template:jinja2
url = {{ fluxbox_menu }}
...
...
@@ -201,6 +219,7 @@ inline =
export LD_LIBRARY_PATH={{ mesa_location }}/lib
export PATH=${directory:bin}:{{ git_bin_dir }}:{{ cmake_bin }}:{{ autoconf_bin }}:{{ automake_bin }}:{{ matiec_location }}/bin:{{ bison_location }}/bin:{{ flex_location }}/bin:{{ bin_directory }}:{{ gcc_location }}/bin:$PATH
export XDG_DATA_DIR={{ gtk3_location }}/share
export HOME=${buildout:directory}
export GSETTINGS_SCHEMA_DIR={{ gtk3_location }}/share/glib-2.0/schemas
export FONTCONFIG_FILE=${font-config:output}
export DISPLAY=${xserver:display}
...
...
@@ -208,6 +227,8 @@ inline =
export LANG=C.UTF-8
export LC_ALL=C.UTF-8
export BEREMIZPYTHONPATH={{ python_bin }}
export OPCUA_DEFAULT_HOST={{ ipv4 }}
export BEREMIZ_LOCAL_HOST={{ ipv4 }}
output = ${directory:bin}/beremiz-env.sh
...
...
@@ -261,6 +282,8 @@ parts =
novnc-promise
xserver-promise
x11vnc-listen-promise
enable-matieria-theme
install-gtk-materia-theme
beremiz-x11
nginx-launcher
nginx-graceful
...
...
software/beremiz-ide/instance.cfg.in
View file @
1c9065fe
...
...
@@ -61,6 +61,7 @@ extra-context =
raw gcc_location {{ gcc_location }}
raw git_bin_dir {{ git_location }}
raw gtk3_location {{ gtk3_location }}
raw gtk_materia_theme {{ gtk_materia_theme}}
raw matiec_location {{ matiec_location }}
raw mesa_location {{ mesa_location }}
raw nginx_executable {{ nginx_executable }}
...
...
@@ -86,3 +87,4 @@ extra-context =
raw opencv_location {{ opencv_location }}
raw openssl_location {{ openssl_location }}
raw nxdtest_dir {{ buildout_directory }}
raw tesseract_data {{ tesseract_location }}/share/tessdata
software/beremiz-ide/software.cfg
View file @
1c9065fe
...
...
@@ -22,6 +22,7 @@ extends =
../../component/xorg/buildout.cfg
../../component/pytest/buildout.cfg
../../component/opencv/buildout.cfg
../../component/tesseract/buildout.cfg
../../component/xterm/buildout.cfg
../../stack/monitor/buildout.cfg
../../stack/nxdtest.cfg
...
...
@@ -34,6 +35,7 @@ parts +=
Modbus
xterm
instance
xdpyinfo
[gcc]
# Always build GCC for Fortran (see openblas).
...
...
@@ -86,6 +88,7 @@ eggs =
${beremiz-setup:egg}
opcua
msgpack
click
[python-interpreter]
eggs +=
...
...
@@ -93,9 +96,9 @@ eggs +=
[beremiz]
recipe = slapos.recipe.build:download-unpacked
# download beremiz
at revision caee3ad3b7bb2865c77328de5ffdaeec61dbf49f
url = https://github.com/beremiz/beremiz/archive/
caee3ad3b7bb2865c77328de5ffdaeec61dbf49f
.tar.gz
md5sum =
52f9407e1706cdecf01fabfc61090276
# download beremiz
from github
url = https://github.com/beremiz/beremiz/archive/
a8efd2fee83733939a1fa48ea924bf7a7a5ef819
.tar.gz
md5sum =
2a141b97047896bb9206c221aa56fd55
[beremiz-setup]
recipe = zc.recipe.egg:develop
...
...
@@ -139,6 +142,7 @@ context =
key gcc_location gcc:prefix
key git_location git:location
key gtk3_location gtk-3:location
key gtk_materia_theme gtk-materia-theme:location
key instance_template_type :type
key matiec_location matiec:location
key mesa_location mesa:location
...
...
@@ -150,6 +154,7 @@ context =
key opencv_location opencv:location
key openssl_location openssl:location
key sikulix_bin sikuli:output
key tesseract_location tesseract:location
key xdotool_location xdotool:location
key xserver_location xserver:location
key xterm_location xterm:location
...
...
@@ -205,3 +210,4 @@ futures = 3.3.0
trollius = 2.2.1
pathlib = 1.0.1
ddt = 1.4.4
click = 7.1.2
software/beremiz-ide/test.cfg
View file @
1c9065fe
...
...
@@ -45,8 +45,10 @@ inline =
#!/bin/sh -e
cd ${beremiz-repository:location}/tests/ide_tests/
testlist=$(ls -d *.sikuli)
cd ${beremiz-repository:location}/tests/cli_tests/
clitestlist=$(ls -d *.bash)
rm -f ${:nxdtest}
for test in $
testlist
; do
for test in $
(echo $testlist $clitestlist)
; do
if [ -z "$test" ]; then
continue;
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment