mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 23:17:16 +08:00
Cairo (Ubuntu) moved to the CCR.
This commit is contained in:
parent
0cad390e24
commit
ee22e905ba
@ -1,54 +0,0 @@
|
||||
#
|
||||
# Apps Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
||||
|
||||
pkgname=cairo-ubuntu
|
||||
_pkgname=cairo
|
||||
pkgver=1.10.2
|
||||
_pkgver=$pkgver-2ubuntu2
|
||||
pkgrel=1
|
||||
pkgdesc="Cairo vector graphics library, with Ubuntu's LCD rendering patches."
|
||||
arch=(i686 x86_64)
|
||||
url="https://launchpad.net/ubuntu/natty/+source/cairo"
|
||||
license=('LGPL' 'MPL')
|
||||
depends=('fontconfig-ubuntu>=2.8.0' 'libpng>=1.4.0' 'libxft-ubuntu' 'libxrender' 'pixman>=0.16.6' 'xcb-util>=0.3.6')
|
||||
provides=("$_pkgname=$pkgver")
|
||||
conflicts=($_pkgname)
|
||||
source=(http://cairographics.org/releases/$_pkgname-$pkgver.tar.gz
|
||||
http://archive.ubuntu.com/ubuntu/pool/main/c/$_pkgname/${_pkgname}_$_pkgver.debian.tar.gz
|
||||
cairo-respect-fontconfig.patch)
|
||||
md5sums=('f101a9e88b783337b20b2e26dfd26d5f'
|
||||
'c28ce4e75bf13c2a10727b2af1385059'
|
||||
'79f7c141c49f3d65ab308cc706d50914')
|
||||
|
||||
build() {
|
||||
cd $srcdir/$_pkgname-$pkgver
|
||||
|
||||
# Debian patches.
|
||||
for FILE in $(cat $srcdir/debian/patches/series) ; do
|
||||
patch -Np1 -i $srcdir/debian/patches/$FILE
|
||||
done
|
||||
|
||||
# Own patch.
|
||||
patch -Np1 -i $srcdir/cairo-respect-fontconfig.patch
|
||||
|
||||
# Configure and build.
|
||||
./configure \
|
||||
--disable-static \
|
||||
--enable-tee \
|
||||
--localstatedir=/var \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $srcdir/$_pkgname-$pkgver
|
||||
|
||||
make DESTDIR=$pkgdir install
|
||||
|
||||
# Documentation.
|
||||
install -d $pkgdir/usr/share/doc/$_pkgname/
|
||||
install -m644 -t $pkgdir/usr/share/doc/$_pkgname/ NEWS README
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
diff -Nur cairo-1.8.6.orig/src/cairo-ft-font.c cairo-1.8.6/src/cairo-ft-font.c
|
||||
--- cairo-1.8.6.orig/src/cairo-ft-font.c 2008-12-12 20:48:04.000000000 +0800
|
||||
+++ cairo-1.8.6/src/cairo-ft-font.c 2009-02-20 14:56:57.000000000 +0800
|
||||
@@ -1448,8 +1448,15 @@
|
||||
if (options->base.hint_style == CAIRO_HINT_STYLE_DEFAULT)
|
||||
options->base.hint_style = other->base.hint_style;
|
||||
|
||||
- if (other->base.hint_style == CAIRO_HINT_STYLE_NONE)
|
||||
- options->base.hint_style = CAIRO_HINT_STYLE_NONE;
|
||||
+ //if (other->base.hint_style == CAIRO_HINT_STYLE_NONE)
|
||||
+ //options->base.hint_style = CAIRO_HINT_STYLE_NONE;
|
||||
+
|
||||
+ if (other->base.hint_style == CAIRO_HINT_STYLE_NONE ||
|
||||
+ other->base.hint_style == CAIRO_HINT_STYLE_SLIGHT ||
|
||||
+ other->base.hint_style == CAIRO_HINT_STYLE_MEDIUM ||
|
||||
+ other->base.hint_style == CAIRO_HINT_STYLE_FULL) {
|
||||
+ options->base.hint_style = other->base.hint_style;
|
||||
+ }
|
||||
|
||||
if (options->base.antialias == CAIRO_ANTIALIAS_NONE) {
|
||||
if (options->base.hint_style == CAIRO_HINT_STYLE_NONE)
|
Loading…
Reference in New Issue
Block a user