Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

librsvg: update to 2.56.1. #42629

Merged
merged 1 commit into from
Jun 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
38 changes: 18 additions & 20 deletions srcpkgs/librsvg/template
Original file line number Diff line number Diff line change
@@ -1,36 +1,31 @@
# Template file for 'librsvg'
pkgname=librsvg
version=2.52.2
revision=2
version=2.56.1
revision=1
build_style=gnu-configure
build_helper="gir"
build_helper="gir rust"
configure_args="--disable-static --enable-introspection --enable-vala"
hostmakedepends="cargo pkg-config glib-devel gdk-pixbuf-devel vala"
hostmakedepends="cargo pkg-config glib-devel gdk-pixbuf-devel
gi-docgen python3-docutils"
makedepends="cairo-devel freetype-devel gdk-pixbuf-devel libcroco-devel
libglib-devel libxml2-devel pango-devel rust vala"
libglib-devel libxml2-devel pango-devel vala-devel"
short_desc="SVG library for GNOME"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="GPL-2.0-or-later, LGPL-2.0-or-later"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/LibRsvg"
# update changelog when release series changes
changelog="https://gitlab.gnome.org/GNOME/librsvg/-/raw/librsvg-2.50/NEWS"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=03d2887c18ffb906e1a60f97fe46a7169f69aa28d6db5d285748f3618b093427
changelog="https://gitlab.gnome.org/GNOME/librsvg/-/raw/librsvg-2.55/NEWS"
distfiles="${GNOME_SITE}/librsvg/${version%.*}/librsvg-${version}.tar.xz"
checksum=1685aeacae9a441dcb12c0c3ec63706172a2f52705dafbefb8e7311d4d5e430b

# reference files are for specific pango and harfbuzz versions
# the test suite isn't designed to be run by distros
make_check=no

pre_configure() {
# otherwise the final linking step uses "cc" instead of $CC
if [ "$CROSS_BUILD" ]; then
cat >> .cargo/config <<- EOF

[target.${RUST_TARGET}]
linker = "${CC}"
EOF
fi
}
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" vala"
makedepends+=" rust-std"
fi

librsvg-devel_package() {
depends="gdk-pixbuf-devel cairo-devel libcroco-devel ${sourcepkg}>=${version}_${revision}"
Expand All @@ -39,11 +34,14 @@ librsvg-devel_package() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gtk-doc
vmove usr/share/gir-1.0
vmove usr/share/vala

vmkdir usr/share/gtk-doc/html
mv ${DESTDIR}/usr/share/doc/Rsvg-2.0 ${PKGDESTDIR}/usr/share/gtk-doc/html/
}
}

librsvg-utils_package() {
short_desc+=" - utilities"
pkg_install() {
Expand Down
2 changes: 2 additions & 0 deletions srcpkgs/librsvg/update
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
site="https://gitlab.gnome.org/GNOME/librsvg/-/tags"
pattern=">\K[\d.]+(?= - stable<)"