Commit 030b8b1e authored by Jehan's avatar Jehan

gitlab-ci: move pygtk build into deps-debian/testing step.

This will make Python plug-in available for the main build step.
Also it should make the distcheck step shorter, hence hopefully will
prevent it from timing out so often.
parent 25065ebf
Pipeline #202113 passed with stages
in 60 minutes and 33 seconds
...@@ -27,6 +27,8 @@ deps-debian/testing: ...@@ -27,6 +27,8 @@ deps-debian/testing:
before_script: before_script:
- apt-get update - apt-get update
- apt-get install -y --no-install-recommends - apt-get install -y --no-install-recommends
autoconf
automake
build-essential build-essential
git git
ffmpeg ffmpeg
...@@ -35,6 +37,7 @@ deps-debian/testing: ...@@ -35,6 +37,7 @@ deps-debian/testing:
libjson-glib-dev libjson-glib-dev
libgexiv2-dev libgexiv2-dev
libgirepository1.0-dev libgirepository1.0-dev
libgtk2.0-dev
liblcms2-dev liblcms2-dev
libopenexr-dev libopenexr-dev
libraw-dev libraw-dev
...@@ -42,10 +45,15 @@ deps-debian/testing: ...@@ -42,10 +45,15 @@ deps-debian/testing:
libspiro-dev libspiro-dev
libsuitesparse-dev libsuitesparse-dev
libtiff5-dev libtiff5-dev
libtool
luajit luajit
m4
meson meson
python2
python3 python3
python-dev
valac valac
wget
- apt-get install -y --reinstall ca-certificates - apt-get install -y --reinstall ca-certificates
- git clone --depth=${GIT_DEPTH} https://gitlab.gnome.org/GNOME/babl.git _babl - git clone --depth=${GIT_DEPTH} https://gitlab.gnome.org/GNOME/babl.git _babl
- git clone --depth=${GIT_DEPTH} https://gitlab.gnome.org/GNOME/gegl.git _gegl - git clone --depth=${GIT_DEPTH} https://gitlab.gnome.org/GNOME/gegl.git _gegl
...@@ -63,6 +71,33 @@ deps-debian/testing: ...@@ -63,6 +71,33 @@ deps-debian/testing:
- meson --prefix="${INSTALL_PREFIX}" _build - meson --prefix="${INSTALL_PREFIX}" _build
- ninja -C _build - ninja -C _build
- ninja -C _build install - ninja -C _build install
# Building pygtk2 as it is not available in Debian testing anymore.
- cd ../build/gitlab-ci
- wget https://cairographics.org/releases/py2cairo-1.10.0.tar.bz2
- wget https://download.gnome.org/sources/pygobject/2.28/pygobject-2.28.7.tar.xz
- wget https://download.gnome.org/sources/pygtk/2.24/pygtk-2.24.0.tar.gz
- sha256sum -c deps.sha256sum
- export PYTHON=/usr/bin/python2
# py2cairo
- tar xjf py2cairo-1.10.0.tar.bz2
- cd py2cairo-1.10.0/
- libtoolize --force
- aclocal
- autoheader
- automake --force-missing --add-missing --foreign
- autoconf
- ./configure --prefix="${INSTALL_PREFIX}" && make && make install
- cd ..
# pygobject
- tar xf pygobject-2.28.7.tar.xz
- cd pygobject-2.28.7/
- ./configure --prefix="${INSTALL_PREFIX}" && make && make install
- cd ..
# pygtk
- tar xzf pygtk-2.24.0.tar.gz
- cd pygtk-2.24.0/
- patch -p1 < ../pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch
- ./configure --prefix="${INSTALL_PREFIX}" && make && make install
.gimp-debian/testing-base: .gimp-debian/testing-base:
stage: gimp stage: gimp
...@@ -121,7 +156,6 @@ deps-debian/testing: ...@@ -121,7 +156,6 @@ deps-debian/testing:
poppler-data poppler-data
python2 python2
python-dev python-dev
wget
xauth xauth
xvfb xvfb
- export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig:${INSTALL_PREFIX}/share/pkgconfig" - export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig:${INSTALL_PREFIX}/share/pkgconfig"
...@@ -141,41 +175,12 @@ gimp-debian/testing-autotools: ...@@ -141,41 +175,12 @@ gimp-debian/testing-autotools:
- ../autogen.sh - ../autogen.sh
--prefix="${INSTALL_PREFIX}" --prefix="${INSTALL_PREFIX}"
--enable-debug --enable-debug
--disable-python
- make -j "$(nproc)" - make -j "$(nproc)"
- make check - make check
gimp-debian/testing-autotools-distcheck: gimp-debian/testing-autotools-distcheck:
extends: .gimp-debian/testing-base extends: .gimp-debian/testing-base
script: script:
# Building pygtk2 as it is not available in Debian testing anymore.
- cd build/gitlab-ci
- wget https://cairographics.org/releases/py2cairo-1.10.0.tar.bz2
- wget https://download.gnome.org/sources/pygobject/2.28/pygobject-2.28.7.tar.xz
- wget https://download.gnome.org/sources/pygtk/2.24/pygtk-2.24.0.tar.gz
- sha256sum -c deps.sha256sum
- export PYTHON=/usr/bin/python2
# py2cairo
- tar xjf py2cairo-1.10.0.tar.bz2
- cd py2cairo-1.10.0/
- libtoolize --force
- aclocal
- autoheader
- automake --force-missing --add-missing --foreign
- autoconf
- ./configure --prefix="${INSTALL_PREFIX}" && make && make install
- cd ..
# pygobject
- tar xf pygobject-2.28.7.tar.xz
- cd pygobject-2.28.7/
- ./configure --prefix="${INSTALL_PREFIX}" && make && make install
- cd ..
# pygtk
- tar xzf pygtk-2.24.0.tar.gz
- cd pygtk-2.24.0/
- patch -p1 < ../pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch
- ./configure --prefix="${INSTALL_PREFIX}" && make && make install
- cd ../../..
# Actual build. # Actual build.
- mkdir _build - mkdir _build
- cd _build - cd _build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment