initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
From d0dccb92c520556aaa02bd1fdf8f2922cef00292 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Sat, 5 Oct 2019 14:07:28 +0200
Subject: [PATCH] image compositor: Remove the right glyph from pixman's cache
We need to use the index including the phase. Otherwise we leave glyphs
in the cache that cause problems later as indices are reused.
---
src/cairo-image-compositor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cairo-image-compositor.c b/src/cairo-image-compositor.c
index 6fccb79f1..79ad69f68 100644
--- a/src/cairo-image-compositor.c
+++ b/src/cairo-image-compositor.c
@@ -841,7 +841,7 @@ _cairo_image_scaled_glyph_fini (cairo_scaled_font_t *scaled_font,
if (global_glyph_cache) {
pixman_glyph_cache_remove (
global_glyph_cache, scaled_font,
- (void *)_cairo_scaled_glyph_index (scaled_glyph));
+ (void *)scaled_glyph->hash_entry.hash);
}
CAIRO_MUTEX_UNLOCK (_cairo_glyph_cache_mutex);
--
2.23.0

75
cairo/PKGBUILD Normal file
View File

@@ -0,0 +1,75 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=cairo
pkgver=1.16.0
_debver=$pkgver
_debrel=4
pkgrel=2
pkgdesc="2D graphics library with support for multiple output devices"
url='https://cairographics.org/'
arch=('i686' 'x86_64')
license=('LGPL-2.1')
depends=('libpng' 'libxrender' 'libxext' 'fontconfig' 'pixman' 'glib2' 'lzo')
makedepends=('librsvg-legacy' 'poppler-glib' 'libspectre' 'quilt')
source=(https://www.cairographics.org/releases/$pkgname-$pkgver.tar.xz
https://deb.debian.org/debian/pool/main/c/cairo/cairo_$_debver-$_debrel.debian.tar.xz
0001-image-compositor-Remove-the-right-glyph-from-pixman-.patch)
sha512sums=('9eb27c4cf01c0b8b56f2e15e651f6d4e52c99d0005875546405b64f1132aed12fbf84727273f493d84056a13105e065009d89e94a8bfaf2be2649e232b82377f'
'1f33867329228ac23bddb812d197688eacadc3d8ae8a8f8304ae9c0690187d4418cfe85905a8117e0e02570ea3dcc5a7d0d451dfded3b16231368e13f92f67d2'
'18071c1fb117fa51f7a77886efb66deec4aa5e7fec2a5fecec5ac1447ee04ca773f96aa8f65a0a7ecfd9405835dabb1b54b51fc5eb5d24d0f24d266c21e74236')
prepare() {
cd $pkgname-$pkgver
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
# Debian patches
export QUILT_PATCHES=debian/patches
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
export QUILT_DIFF_ARGS='--no-timestamps'
mv "$srcdir"/debian .
# Doesn't apply
rm -v debian/patches/01_build_perf_utils.patch || true
rm -v debian/patches/02_am-maintainer-mode.patch || true
rm -v debian/patches/03_export-symbols.patch || true
rm -v debian/patches/06_hurd-map-noreserve.patch || true
quilt push -av
fi
patch -Np1 -i $srcdir/0001-image-compositor-Remove-the-right-glyph-from-pixman-.patch
# fix typo
sed -i 's/have_png/use_png/g' configure.ac
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--disable-gl \
--enable-tee \
--enable-svg \
--enable-ps \
--enable-pdf \
--enable-gobject \
--disable-gtk-doc
sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
# we don't support gtk-doc
rm -rf $pkgdir/usr/share/gtk-doc
for i in COPYING{,-LGPL-2.1}; do
install -Dm644 $i $pkgdir/usr/share/licenses/$pkgname/$i
done
}