mirror of
https://github.com/ivabus/pantry
synced 2024-11-13 03:55:18 +03:00
librsvg (#90)
This commit is contained in:
parent
f003504fb5
commit
9e7593b30a
|
@ -27,7 +27,9 @@ build:
|
||||||
|
|
||||||
if test {{ hw.platform }} == darwin; then
|
if test {{ hw.platform }} == darwin; then
|
||||||
#FIXME wtf is going on here
|
#FIXME wtf is going on here
|
||||||
sed -i.bak 's|/opt/libpng.org/v.*/lib/libintl.la||' {{prefix}}/lib/libcairo-gobject.la
|
#NOTE has /opt/gnu.org/gettext/v0.21.0/lib/libpcre.la in it
|
||||||
|
#NOTE then has a thousand repeats of pcre.org/libpcre.la
|
||||||
|
sed -i.bak 's|/opt/.*/v.*/lib/libpcre.la||' {{prefix}}/lib/libcairo-gobject.la
|
||||||
fi
|
fi
|
||||||
|
|
||||||
test: true #FIXME
|
test: true #FIXME
|
|
@ -29,8 +29,8 @@ build:
|
||||||
ninja install
|
ninja install
|
||||||
|
|
||||||
cd {{prefix}}/lib/pkgconfig
|
cd {{prefix}}/lib/pkgconfig
|
||||||
sed -i.bak -e 's|Libs: -L${libdir} -lglib-2.0 -lintl|Libs: -L${libdir} -lglib-2.0 -L/opt/gnu.org/gettext/v*/lib -lintl -L/opt/pcre.org/v1/lib -lpcre|' ./glib-2.0.pc
|
sed -i.bak -e 's|Libs: -L${libdir} -lglib-2.0 -lintl|Libs: -L${libdir} -lglib-2.0 -L/opt/gnu.org/gettext/v*/lib -lintl -L/opt/pcre.org/v*/lib -lpcre|' ./glib-2.0.pc
|
||||||
sed -i.bak -e 's|Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include|Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include -I/opt/gnu.org/gettext/v*/include -I/opt/pcre.org/v1/include|' ./glib-2.0.pc
|
sed -i.bak -e 's|Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include|Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include -I/opt/gnu.org/gettext/v*/include -I/opt/pcre.org/v*/include|' ./glib-2.0.pc
|
||||||
rm *.bak
|
rm *.bak
|
||||||
|
|
||||||
#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
|
||||||
|
|
39
projects/gnome.org/librsvg/package.yml
Normal file
39
projects/gnome.org/librsvg/package.yml
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
distributable:
|
||||||
|
url: https://download.gnome.org/sources/librsvg/{{ version.major }}.{{ version.minor }}/librsvg-{{ version }}.tar.xz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: GNOME/librsvg/tags
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
cairographics.org: 1
|
||||||
|
gnome.org/pango: 1
|
||||||
|
gnome.org/gdk-pixbuf: 2
|
||||||
|
gnome.org/glib: 2
|
||||||
|
gnu.org/gettext: ^0.21
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
tea.xyz/gx/make: '*'
|
||||||
|
rust-lang.org: 1
|
||||||
|
freedesktop.org/pkg-config: ^0.29
|
||||||
|
gnome.org/gobject-introspection: 1
|
||||||
|
python.org: 3
|
||||||
|
script: |
|
||||||
|
if test {{ hw.platform }} = linux; then
|
||||||
|
#FIXME so linux configure finds shared-mime-info
|
||||||
|
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/share/pkgconfig"
|
||||||
|
#FIXME so linux build finds the shared-mime-info cache
|
||||||
|
export XDG_DATA_DIRS="$XDG_DATA_DIRS:/usr/share"
|
||||||
|
fi
|
||||||
|
|
||||||
|
./configure \
|
||||||
|
--prefix={{ prefix }} \
|
||||||
|
--enable-pixbuf-loader=yes \
|
||||||
|
--enable-introspection=yes \
|
||||||
|
--disable-Bsymbolic
|
||||||
|
make V=1
|
||||||
|
make install
|
||||||
|
|
||||||
|
test: true #FIXME
|
Loading…
Reference in a new issue