mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 04:25:08 +03:00
parent
77d7388773
commit
8df1bb20cd
3 changed files with 28 additions and 15 deletions
|
@ -10,7 +10,7 @@ dependencies:
|
||||||
ijg.org: 9
|
ijg.org: 9
|
||||||
gnome.org/glib: 2
|
gnome.org/glib: 2
|
||||||
libpng.org: 1
|
libpng.org: 1
|
||||||
freedesktop.org/shared-mime-info: 2 #FIXME only on Linux
|
freedesktop.org/shared-mime-info: 2 #FIXME only on Linux
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -19,7 +19,7 @@ build:
|
||||||
ninja-build.org: 1
|
ninja-build.org: 1
|
||||||
freedesktop.org/pkg-config: ^0.29
|
freedesktop.org/pkg-config: ^0.29
|
||||||
gnome.org/gobject-introspection: 1
|
gnome.org/gobject-introspection: 1
|
||||||
python.org: 3 #FIXME rq’d by gnome.org/gobject-introspection but should be added by tea-env
|
python.org: 3 #FIXME rq’d by gnome.org/gobject-introspection but should be added by tea-env
|
||||||
working-directory: build
|
working-directory: build
|
||||||
script: |
|
script: |
|
||||||
if test {{ hw.platform }} == linux; then
|
if test {{ hw.platform }} == linux; then
|
||||||
|
@ -35,7 +35,12 @@ build:
|
||||||
..
|
..
|
||||||
ninja
|
ninja
|
||||||
ninja install
|
ninja install
|
||||||
# ^^ man pages break the build due to needing some other dep
|
# ^^ man pages break the build due to needing some other dep
|
||||||
|
|
||||||
|
cd {{prefix}}/include
|
||||||
|
mv gdk-pixbuf-{{version.major}}.0/* .
|
||||||
|
rmdir gdk-pixbuf-{{version.major}}.0
|
||||||
|
ln -s . gdk-pixbuf-{{version.major}}.0
|
||||||
|
|
||||||
#TODO we should read pkg config and add to the env ffs
|
#TODO we should read pkg config and add to the env ffs
|
||||||
test:
|
test:
|
||||||
|
|
|
@ -45,6 +45,9 @@ build:
|
||||||
|
|
||||||
rm *.bak
|
rm *.bak
|
||||||
|
|
||||||
|
cd ../../include
|
||||||
|
ln -s ../lib/glib-{{version.major}}.0/include/* .
|
||||||
|
|
||||||
#REF https://github.com/Homebrew/homebrew-core/blob/d0e65698ccd502335bea68ce879ae02e1735db0d/Formula/glib.rb#L66-L67
|
#REF https://github.com/Homebrew/homebrew-core/blob/d0e65698ccd502335bea68ce879ae02e1735db0d/Formula/glib.rb#L66-L67
|
||||||
#FIXME hardcoded paths ^^
|
#FIXME hardcoded paths ^^
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -7,7 +7,7 @@ versions:
|
||||||
ignore: [2.55.90] # https://gitlab.gnome.org/GNOME/librsvg/-/issues/923 - sigh
|
ignore: [2.55.90] # https://gitlab.gnome.org/GNOME/librsvg/-/issues/923 - sigh
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
cairographics.org: 1
|
cairographics.org: ^1.18
|
||||||
gnome.org/pango: 1
|
gnome.org/pango: 1
|
||||||
gnome.org/gdk-pixbuf: 2
|
gnome.org/gdk-pixbuf: 2
|
||||||
gnome.org/glib: 2
|
gnome.org/glib: 2
|
||||||
|
@ -22,24 +22,29 @@ build:
|
||||||
freedesktop.org/pkg-config: ^0.29
|
freedesktop.org/pkg-config: ^0.29
|
||||||
gnome.org/gobject-introspection: 1
|
gnome.org/gobject-introspection: 1
|
||||||
python.org: 3
|
python.org: 3
|
||||||
script: |
|
script:
|
||||||
./configure \
|
- ./configure $ARGS
|
||||||
--prefix={{ prefix }} \
|
- make --jobs {{hw.concurrency}} install
|
||||||
--enable-pixbuf-loader=yes \
|
|
||||||
--enable-introspection=yes \
|
- run: |
|
||||||
--disable-Bsymbolic
|
mv librsvg-{{version.major}}.0/* .
|
||||||
make --jobs {{hw.concurrency}} install
|
rmdir librsvg-{{version.major}}.0
|
||||||
|
ln -s . librsvg-{{version.major}}.0
|
||||||
|
working-directory: ${{prefix}}/include
|
||||||
|
env:
|
||||||
|
ARGS:
|
||||||
|
- --prefix={{ prefix }}
|
||||||
|
- --enable-pixbuf-loader=yes
|
||||||
|
- --enable-introspection=yes
|
||||||
|
- --disable-Bsymbolic
|
||||||
|
|
||||||
test:
|
test:
|
||||||
dependencies:
|
dependencies:
|
||||||
freedesktop.org/pkg-config: ^0.29
|
freedesktop.org/pkg-config: ^0.29
|
||||||
tea.xyz/gx/cc: c99
|
tea.xyz/gx/cc: c99
|
||||||
script: |
|
script: |
|
||||||
cc test.c $CFLAGS $LDFLAGS
|
cc test.c -lrsvg-{{version.major}}
|
||||||
./a.out
|
./a.out
|
||||||
env:
|
|
||||||
CFLAGS: $(pkg-config --cflags librsvg-2.0) #FIXME should be in env automatically
|
|
||||||
LDFLAGS: $(pkg-config --libs librsvg-2.0)
|
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/rsvg-convert
|
- bin/rsvg-convert
|
||||||
|
|
Loading…
Reference in a new issue