fix(rsvg)

fixes #2907
fixes #3072
fixes #3302
fixes #3304
This commit is contained in:
Jacob Heider 2023-09-23 10:36:32 -04:00
parent 77d7388773
commit 8df1bb20cd
No known key found for this signature in database
GPG key ID: 59D15ADC7DCD39BB
3 changed files with 28 additions and 15 deletions

View file

@ -37,6 +37,11 @@ build:
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:
dependencies: dependencies:

View file

@ -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:

View file

@ -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