This repository has been archived by the owner on Apr 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
de.rwth_aachen.ient.RDPlot.yaml
171 lines (159 loc) · 5.83 KB
/
de.rwth_aachen.ient.RDPlot.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
app-id: de.rwth_aachen.ient.RDPlot
runtime: org.kde.Platform
runtime-version: '5.12'
sdk: org.kde.Sdk
# gfortran is part of the Freedesktop Sdk 18.08:
# https://github.com/flathub/org.freedesktop.Sdk.Extension.gfortran-62/issues/3
#sdk-extensions:
# - org.freedesktop.Sdk.Extension.gfortran-62
command: rdplot
finish-args:
- --share=ipc
- --socket=x11
- --share=network
- --device=dri
- --socket=pulseaudio
- --filesystem=host
- --filesystem=xdg-config/kdeglobals:ro
- --env=PYTHONPATH=/app/lib/python3/dist-packages
cleanup:
- /include
- /lib/pkgconfig
- /lib/cmake
- /share/aclocal
- /share/pkgconfig
- /share/info
- /share/man
- /cmake
- '*.a'
- '*.la'
- '*.cmake'
#build-options:
# append-path: "/usr/lib/sdk/gfortran-62/bin"
modules:
- name: sip
buildsystem: simple
build-commands:
- python3 configure.py
--bindir=/app/bin
--destdir=/app/lib/python3/dist-packages
--incdir=/app/include/python3
--sipdir=/app/share/sip
--stubsdir=/app/lib/python3/dist-packages
--sip-module=PyQt5.sip
- make -j $FLATPAK_BUILDER_N_JOBS
- make install
cleanup:
- /bin
sources:
- type: archive
url: https://www.riverbankcomputing.com/static/Downloads/sip/4.19.15/sip-4.19.15.tar.gz
sha256: 2b5c0b2c0266b467b365c21376d50dde61a3236722ab87ff1e8dacec283eb610
- name: pyqt
buildsystem: simple
build-commands:
- python3 configure.py
--confirm-license
--sip-incdir=/app/include/python3
--bindir=/app/bin
--destdir=/app/lib/python3/dist-packages
--designer-plugindir=/app/lib/plugins/designer
--qml-plugindir=/app/lib/plugins/PyQt5
--sipdir=/app/share/sip
--stubsdir=/app/lib/python3/dist-packages/PyQt5
- make -j $FLATPAK_BUILDER_N_JOBS
- make install
cleanup:
- /bin
sources:
- type: archive
url: https://www.riverbankcomputing.com/static/Downloads/PyQt5/5.12.1/PyQt5_gpl-5.12.1.tar.gz
sha256: 3718ce847d824090fd5f95ff3f13847ee75c2507368d4cbaeb48338f506e59bf
# - name: gfortran
# buildsystem: simple
# build-commands:
# - "/usr/lib/sdk/gfortran-62/install.sh"
- name: lapack
buildsystem: cmake
builddir: true
config-opts:
- "-DCMAKE_BUILD_TYPE=Release"
- "-DBUILD_SHARED_LIBS=ON"
- "-DBUILD_TESTING=OFF"
# - "-DCMAKE_Fortran_COMPILER=/usr/lib/sdk/gfortran-62/bin/gfortran"
- "-DLAPACKE=ON"
- "-DCBLAS=ON"
sources:
- type: archive
url: http://www.netlib.org/lapack/lapack-3.8.0.tar.gz
sha512: 17786cb7306fccdc9b4a242de7f64fc261ebe6a10b6ec55f519deb4cb673cb137e8742aa5698fd2dc52f1cd56d3bd116af3f593a01dcf6770c4dcc86c50b2a7f
cleanup:
- "/lib/cmake"
- name: python3-numpy
buildsystem: simple
build-commands:
- python3 setup.py build -j 0
- python3 setup.py install --prefix=/app --root=/ --optimize=1
build-options:
env:
ATLAS: None
BLAS: "/app/lib"
LAPACK: "/app/lib"
cleanup:
- "/bin"
sources:
- type: archive
url: https://github.com/numpy/numpy/releases/download/v1.14.3/numpy-1.14.3.tar.gz
sha256: cfcfc7a9a8ba4275c60a815c683d59ac5e7aa9362d76573b6cc4324ffb1235fa
- name: python3-scipy
buildsystem: simple
build-commands:
- python3 setup.py build -j 0
- python3 setup.py install --prefix=/app --root=/ --optimize=1
build-options:
env:
ATLAS: None
BLAS: "/app/lib"
LAPACK: "/app/lib"
LDFLAGS: "-shared"
sources:
- type: archive
url: https://files.pythonhosted.org/packages/a9/b4/5598a706697d1e2929eaf7fe68898ef4bea76e4950b9efbe1ef396b8813a/scipy-1.2.1.tar.gz
sha256: e085d1babcb419bbe58e2e805ac61924dac4ca45a07c9fa081144739e500aa3c
- python3-setuptools-scm.json
- python3-GitPython.json
- python3-cycler.json
- python3-pytz.json
- python3-matplotlib.json
- python3-tikzplotlib.json
- python3-py.json
- python3-tabulate.json
- python3-scandir.json
- python3-pathlib2.json
- python3-pytest.json
- python3-mpldatacursor.json
- python3-xmltodict.json
- python3-jsonpickle.json
- name: RDPlot
buildsystem: simple
sources:
- type: git
url: https://github.com/IENT/RDPlot.git
commit: f9965ea76bc35190f52e6b365969f86e88acd6f1
branch: master
- type: file
path: de.rwth_aachen.ient.RDPlot.desktop
- type: file
path: de.rwth_aachen.ient.RDPlot.appdata.xml
build-commands:
- echo "v1.3.1-4-gf9965ea" > version.txt # workaround for letting setup.py know version
- FLATPAK_INSTALL=1 python3 setup.py install --install-scripts=/bin --root=/app --install-lib=/lib/python3.7/site-packages/
- install -Dm644 src/rdplot/logo/PLOT16.png /app/share/icons/hicolor/16x16/apps/de.rwth_aachen.ient.RDPlot.png
- install -Dm644 src/rdplot/logo/PLOT32.png /app/share/icons/hicolor/32x32/apps/de.rwth_aachen.ient.RDPlot.png
- install -Dm644 src/rdplot/logo/PLOT64.png /app/share/icons/hicolor/64x64/apps/de.rwth_aachen.ient.RDPlot.png
- install -Dm644 src/rdplot/logo/PLOT128.png /app/share/icons/hicolor/128x128/apps/de.rwth_aachen.ient.RDPlot.png
- install -Dm644 src/rdplot/logo/PLOT256.png /app/share/icons/hicolor/256x256/apps/de.rwth_aachen.ient.RDPlot.png
- install -Dm644 src/rdplot/logo/PLOT512.png /app/share/icons/hicolor/512x512/apps/de.rwth_aachen.ient.RDPlot.png
- install -Dm644 de.rwth_aachen.ient.RDPlot.desktop /app/share/applications/de.rwth_aachen.ient.RDPlot.desktop
- install -Dm644 de.rwth_aachen.ient.RDPlot.appdata.xml /app/share/metainfo/de.rwth_aachen.ient.RDPlot.appdata.xml
- echo "v1.3.1-4-gf9965ea" > /app/lib/python3.7/site-packages/rdplot/version.txt # workaround for letting installed rdplot know the version