diff options
Diffstat (limited to 'repo/system')
-rw-r--r-- | repo/system/glib.xibuild | 2 | ||||
-rw-r--r-- | repo/system/gobject-introspection.xibuild | 28 | ||||
-rw-r--r-- | repo/system/python-mako.xibuild | 22 |
3 files changed, 51 insertions, 1 deletions
diff --git a/repo/system/glib.xibuild b/repo/system/glib.xibuild index f3a7820..808d2ff 100644 --- a/repo/system/glib.xibuild +++ b/repo/system/glib.xibuild @@ -1,7 +1,7 @@ #!/bin/bash MAKEDEPS=(meson ninja docbook-xsl docbook-dtd) -DEPS=(pcre libffi zlib glibc libxslt gdb) +DEPS=(pcre libffi zlib glibc libxslt gdb gobject-introspection) PKG_VER=2.70.2 SOURCE=https://download.gnome.org/sources/glib/$(echo $PKG_VER | cut -d. -f-2)/glib-$PKG_VER.tar.xz diff --git a/repo/system/gobject-introspection.xibuild b/repo/system/gobject-introspection.xibuild new file mode 100644 index 0000000..5556740 --- /dev/null +++ b/repo/system/gobject-introspection.xibuild @@ -0,0 +1,28 @@ +#!/bin/bash + +MAKEDEPS=() +DEPS=(python-mako python-markdown) + +PKG_VER=1.70.0 +SOURCE=https://download.gnome.org/sources/gobject-introspection/$(echo $PKG_VER | cut -d. -f-2)/gobject-introspection-$PKG_VER.tar.xz +ADDITIONAL=( + https://www.linuxfromscratch.org/patches/blfs/svn/gobject-introspection-$PKG_VER-build_fix-1.patch + ) + +DESC="Introspection system for GObject-based libraries" + +prepare() { + patch -Np1 -i gobject-introspection-$PKG_VER-build_fix-1.patch +} + +build () { + mkdir build && + cd build && + + meson --prefix=/usr --buildtype=release .. && + ninja +} + +package () { + DESTDIR=$PKG_DEST ninja install +} diff --git a/repo/system/python-mako.xibuild b/repo/system/python-mako.xibuild new file mode 100644 index 0000000..b83def2 --- /dev/null +++ b/repo/system/python-mako.xibuild @@ -0,0 +1,22 @@ +#!/bin/bash + +MAKEDEPS=(python ) +DEPS=(python-markupsafe python-beaker python-setuptools) + +PKG_VER=1.1.6 +SOURCE=https://files.pythonhosted.org/packages/source/M/Mako/Mako-$PKG_VER.tar.gz +DESC="A super-fast templating language that borrows the best ideas from the existing templating languages" + +prepare() { + sed -e '/\[tool:pytest\]/a filterwarnings =\n error\n ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning' \ + -e 's/-W error//' \ + -i setup.cfg +} + +build() { + python setup.py build +} + +package () { + python3 setup.py install --root="$PKG_DEST" --optimize=1 +} |