Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - cairo-ubuntu

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: cairo-ubuntu 1.14.8-1

Git Clone URL: https://aur-dev.archlinux.org/cairo-ubuntu.git (read-only)
Package Base: cairo-ubuntu
Description: Cairo vector graphics library
Upstream URL: http://cairographics.org/
Licenses: MPL, LGPL
Conflicts: cairo, cairo-cleartype, cairo-git, cairo-gl-git, cairo-glitz, cairo-ocaml-git, cairo-small
Provides: cairo=1.14.8, cairo-ubuntu, cairo-xcb
Replaces: cairo-xcb
Submitter: wonder
Maintainer: el_aur
Last Packager: el_aur
Votes: 331
Popularity: 0.255925
First Submitted: 2008-06-04 11:52
Last Updated: 2017-01-08 20:36

Required by (284)

Sources (4)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 ... Next › Last »

valmar commented on 2013-02-21 09:59

Does anyone know what happened to the lib32-*-ubuntu packages. lib32-freetype2-ubuntu is in AUR but, for example lib32-cairo-ubuntu is gone.

bohoomil commented on 2013-02-17 12:05

Thank you for the feedback.

Ad. 1) Mesa is not required by cairo -- at best it is an optional dependency. You can disable it by removing '--enable-gl'. (I compile cairo with several features that may not be present in the official package. You can easily adjust the configure section so that it meets you requirements. I presume that you were successfully using Arch without mesa, so you don't really need it now.)
Ad. 2) Didn't I mention that I'm using generic names? :) That's why I don't need to change $pkgname variable.

Anyway, I'm glad that you were able to re-use the files.

Anonymous comment on 2013-02-17 09:11

@bohoomil

thanks a lot for your support!!
I tested your PKGBUILD but it don't work; I found two errors:
1) add 'mesa' in the depends list (otherwise you get an opengl error)
2) replace $srcdir/$pkgname-$pkgver with $srcdir/cairo-$pkgver

my working PKGBUILD is:


pkgname=cairo-ubuntu
pkgver=1.12.14
_ubver=1.12.14-0ubuntu1
pkgrel=1
pkgdesc="Cairo vector graphics library, with Ubuntu's LCD rendering patches"
arch=(i686 x86_64)
url="https://launchpad.net/ubuntu/precise/+source/cairo"
license=('LGPL' 'MPL')
depends=('libpng>=1.4.0' 'libxrender' 'fontconfig-ubuntu>=2.8.0' 'libxft' 'pixman>=0.16.6' 'xcb-util>=0.3.6' 'mesa')
makedepends=('pkgconfig')
provides=("cairo=$pkgver" "cairo-tee=$pkgver")
conflicts=('cairo' 'cairo-cleartype' 'cairo-lcd' 'cairo-tee' 'cairo-xeffects')
options=('!libtool')
source=(http://cairographics.org/releases/cairo-$pkgver.tar.xz
http://archive.ubuntu.com/ubuntu/pool/main/c/cairo/cairo_$_ubver.debian.tar.gz
cairo-respect-fontconfig.patch
cairo-1.12.8-expose_snapshot-1.patch)

md5sums=('27b634113d0f52152d60ae8e2ec7daa7'
'2465d76908c35aae2be04df33c41064b'
'79f7c141c49f3d65ab308cc706d50914'
'92bb0af20e9438d07a04a586841ac90f' )


build() {
cd $srcdir/cairo-$pkgver

for _f in $(cat $srcdir/debian/patches/series) ; do
patch -Np1 -i $srcdir/debian/patches/$_f
done

patch -Np1 -i ../cairo-respect-fontconfig.patch
patch -Np1 -i ../cairo-1.12.8-expose_snapshot-1.patch

sed '20 aAM_PROG_AR' -i $srcdir/cairo-$pkgver/configure.ac

autoreconf -i --force

./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--enable-tee \
--enable-gl \
--enable-egl \
--enable-svg \
--enable-ps \
--enable-pdf \
--enable-gobject
make
}

#check() {
# cd "$srcdir/cairo-$pkgver"
# make -k check || /bin/true # 162 Passed, 328 Failed [8 crashed, 10 expected], 26 Skipped
#}

package() {
cd "$srcdir/cairo-$pkgver"
make DESTDIR="$pkgdir" install
}

bohoomil commented on 2013-02-16 20:57

I have obviously made a mistake: the version is 1.12.14 of course, not 1.12.4. :)

bohoomil commented on 2013-02-16 20:55

Sure, here you go:

https://gist.github.com/bohoomil/4968685

...and the expo patch, just in case you don't have it:

https://gist.github.com/bohoomil/4968711

Beware that I'm using generic names (cairo instead of cairo-ubuntu) so you may need to adjust the relevant parts, i.e.

pkgname=cairo-ubuntu
pkgver=1.12.4
_ubver=1.12.4-1ubuntu2

If necessary, run 'makepkg -g >> PKGBUILD' (the expo patch may have a different checksum when copied and pasted).

Anonymous comment on 2013-02-16 15:53

@bohoomil
I applied the two lines you suggested
sed '20 aAM_PROG_AR' -i $srcdir/${pkgname}-${pkgver}/configure.ac
autoreconf -i --force
and got the following error:

sed: not possible to read /home/nunzio/Download/cairo-ubuntu/src/cairo-ubuntu-1.12.14/configure.ac: File or directory don't exist
==> ERROR: there is an error in build().

please, can you share the full PKGBUILD of 1.12.14 version?
thanks


bohoomil commented on 2013-02-14 21:06

Cairo 1.12.14 can be built just fine with the following patches:

cairo-respect-fontconfig.patch
cairo-1.12.8-expose_snapshot-1.patch
cairo_1.12.14-0ubuntu1.debian.tar.gz

Having applied the patches, you may need to add two lines to the PKGBUILD:

sed '20 aAM_PROG_AR' -i $srcdir/${pkgname}-${pkgver}/configure.ac
autoreconf -i --force

Anonymous comment on 2013-02-13 21:52

the last version of Cairo is 1.12.14
http://cairographics.org/releases/cairo-1.12.14.tar.xz
Ubuntu patch already exists
http://archive.ubuntu.com/ubuntu/pool/main/c/cairo/cairo_1.12.14-0ubuntu1.debian.tar.gz

I suppose cairo-1.12.2 is out of date... or not?

valmar commented on 2013-02-12 12:26

Why is this flagged as out of date? Isn't stable ubuntu also at 1.12.2?

http://packages.ubuntu.com/quantal/libcairo2

valmar commented on 2013-02-12 12:25

Why is this flagged as out of date. Isn't stable ubuntu also at 1.12.2?

http://packages.ubuntu.com/quantal/libcairo2