cairo-cleartype 1.8.8-3
http://cairographics.org/
Cairo vector graphics library with cleartype patch
unsupported :: lib
Maintainer: leemars
Votes: 310
License: LGPL MPL
Last Updated: Mon, 01 Feb 2010 03:09:23 +0000
First Submitted: Sun, 14 Jan 2007 05:44:26 +0000
Dependencies fontconfig>=2.6.0 libpng>=1.2.33 libxrender pixman>=0.12.0 xcb-util>=0.3.2
nevermind, I must have stumbled on some not-so-up-to-date mirror which was causing problems, I tried compiling your PKGBUILD again today and all is fine.
Keep up the good work ;-)
Regards
Andrea
to Hador: could you explain it with more detail? I can compile it and I use this way to workaround another same type package(cairo-ubuntu) and it seems all right.
replace line:27 with
sed -i -e 's/libpng1[0-9]/libpng14/' ./configure || return 1
else this is going to cause a lot of problems, expecially compiling stuff due to a broken .pc
Updated. Sorry for my late response.
Can you bump the package release version to force a rebuild for the new libjpeg and libpng?
This needs an additional line taken from comment on http://aur.archlinux.org/packages.php?ID=16459:
sed -i -e 's/libpng13/libpng14/g' configure || return 1
just above the ./configure
I do specify per-font hinting in /etc/fonts/local.conf which cairo unfortunately does not honour [1], therefore gnome apps looks suboptimal. There is tiny patch to address this issue [2]. I tried to modify original PKGBUILD and it applies neatly and works like a charm.
<=x== PKGBUILD ==x=>
--- PKGBUILD.original 2009-07-04 22:21:35.000000000 +0200
+++ PKGBUILD 2009-07-27 19:12:40.460859064 +0200
@@ -14,13 +14,16 @@ provides=("cairo=${pkgver}")
makedepends=('pkgconfig')
options=('!libtool')
source=(http://cairographics.org/releases/cairo-${pkgver}.tar.gz
- cairo-1.2.4-lcd-cleartype-like.diff)
+ cairo-1.2.4-lcd-cleartype-like.diff
+ cairo-respect-fontconfig.patch)
md5sums=('d3e1a1035ae563812d4dd44a74fb0dd0'
- 'de7cccfcca8e686bca039a985436548e')
+ 'de7cccfcca8e686bca039a985436548e'
+ '79f7c141c49f3d65ab308cc706d50914')
build() {
cd ${srcdir}/cairo-${pkgver}
patch -Np1 -i ${srcdir}/cairo-1.2.4-lcd-cleartype-like.diff || return 1
+ patch -Np1 -i ${srcdir}/cairo-respect-fontconfig.patch || return 1
./configure --prefix=/usr --sysconfdir=/etc \
--localstatedir=/var --enable-xcb --disable-static || return 1
make || return 1
<======>
[1] http://forums.fedoraforum.org/showpost.php?p=1094356&postcount=57
[2] http://bugs.freedesktop.org/show_bug.cgi?id=11838
- Fixed the provides problem. Sorry again.
I fixed it by changing provides=('cairo=${pkgver}') to provides=('cairo=1.8.8').
Regards
André
Hi leemars,
the provides clause is faulty again; back on single quotes instead of double...
fettouhi you can solve your problem by changing the clause in PKGBUILD to provides=("cairo=${pkgver}")
I get this warning with the new version (1.8.8) of cairo-cleartype
missing dependency for cairo-perl : cairo>=1.8.6
missing dependency for cairomm : cairo>=1.8.6
missing dependency for ghostscript : cairo>=1.8.6
missing dependency for libgdiplus : cairo>=1.8.6
missing dependency for pango : cairo>=1.8.8
missing dependency for poppler : cairo>=1.8.6
missing dependency for pycairo : cairo>=1.8.6
- Updated to 1.8.8
I'm not sure whether the patch still worked. It haven't been updated for a long time and seems be deprecated.
is it possible for an updated version??
cairo 1.8.8. is out.
i created myself a newer version based on this pkgbuild by changing version and md5sums, but is the patch applied to this version?
Thanks! No biggie mate! Works.
- Updated to 1.8.6-3
Sorry for my stupid mistake..
After building I get:
loading package data...
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: cairo-perl: requires cairo>=1.8.6
:: cairomm: requires cairo>=1.8.6
:: ghostscript: requires cairo>=1.8.6
:: libgdiplus: requires cairo>=1.8.6
:: pango: requires cairo>=1.8.6
:: poppler: requires cairo>=1.8.6
:: pycairo: requires cairo>=1.8.6
Hi leemars,
the 'provides' clause is incorrect; you used the single quotes in place of double qoutes that allow shell expansion.
The correct syntax is provides=("cairo=$pkgver") as already done in the package libxft-cleartype.
Bye
After yaourt -Syu --aur I get:
missing dependency for cairomm : cairo>=1.8.6
missing dependency for ghostscript : cairo>=1.8.6
missing dependency for libgdiplus : cairo>=1.8.6
missing dependency for pango : cairo>=1.8.6
missing dependency for poppler : cairo>=1.8.6
missing dependency for pycairo : cairo>=1.8.6
missing dependency for ruby-rcairo : cairo>=1.2.0
Thanks for your advice!
- Minor update for PKGBUILD.
Hi leemars,
in the PKGBUILD about the patch command the source .diff is referenced from path ${startdir}/ instead of ${startdir}/src (or better ${srcdir}/ for src and ${pkgdir}/ for pkg directory).
And (as you do already in your other package libxft-cleartype) you should reference in the 'provides' clause the version by variable to avoid possible future version mismatch between package version and the clause as provides=("cairo=$pkgver")
Thanks for the useful package.
Regards
cipparello
- Bumped to 1.8.6
Cairo 1.8.6 is out.
Regards
André
oops.. Fixed. Sorry for my mistake. >.<
Question - should the provides=('cairo=1.8.0') in the current PKGBUILD be updated to provides=('cairo=1.8.4') now?
The X.Org 7.4 upgrade that went into extra today won't install because of a conflict between cairo and cairo-cleartype. They're both at version 1.8.4, so would updating the provides line in the -cleartype package fix this?
- Updated to 1.8.4
- Updated to 1.8.2
- Adjust the compile parameters.
I'm so sorry for that... :-(
I'll keep to upgrade these -cleartype packages. However, there are better choices such as -lcd packages, or -ubuntu packages, maybe.
Just choose for yourself.
Can you please stop writing whatever language is that? Here english should be the default language... ;)
freetype2(æºé‡Œï¼‰ + libxft-lcd(æºé‡Œï¼‰ + fontconfig (æºé‡Œï¼‰ + fontconfig-lcdï¼ˆåªæ˜¯æ·»åŠ äº†ä¸€ä¸ªå¿…éœ€çš„æ–‡æœ¬æ–‡ä»¶è€Œå·²ï¼‰ + cairo-lcd。
所以真æ£éœ€è¦è‡ªå·±ç¼–è¯‘çš„åªæœ‰cairo。
我确认过-cleartypeè¡¥ä¸å’Œå®˜æ–¹çš„æ•ˆæžœä¸Šæœ‰åŒºåˆ«ã€‚
ç¼–è¯‘å‚æ•°æ˜¯å› ä¸ºæˆ‘æ²¡æœ‰åŠæ—¶è·Ÿè¿›ã€‚
è¿˜è¯·ä½ è¯´æ˜Žä¸€ä¸‹ï¼ŒçŽ°åœ¨æœ€å¥½çš„æ–¹å¼æ˜¯æ€Žä¹ˆæé…è¿™å‡ ä¸ªåº“ï¼Œç”¨å“ªä¸ªç‰ˆæœ¬çš„ï¼šlibxftã€cairoã€freetype2ã€fontconfig。
é¦–å…ˆæˆ‘ä¹Ÿæ²¡æœ‰é’ˆå¯¹ä½ çš„æ„æ€ï¼Œåªæ˜¯è§‰å¾—æ²¡æœ‰å¿…è¦æžé‚£ä¹ˆå¤šç±»ä¼¼çš„东西。
其次我两者都用过,确实没什么区别。
ä½ ä¹Ÿå®Œå…¨å¯ä»¥å°†è¿™ä¸ªpatch和官方(sir上有)的对比一下,缺失了很多必è¦éƒ¨åˆ†ã€‚è¿™æ ·ä¸€æ¥çš„è¯å°±æ²¡æœ‰ä»€ä¹ˆå–点了。
è¿˜æœ‰ï¼Œç¼–è¯‘å‚æ•°ä¹Ÿä¸å…¨ï¼ˆå¯¹æ¯”testingä¸çš„)。
freetype2-cleartype也是没有必è¦çš„,æºé‡Œçš„æœ€æ–°ç‰ˆå·²ç»åŒ…å«äº†lcd的补ä¸,ä½ å¯ä»¥å¯¹æ¯”ç€çœ‹æºç 。
请仔细对比结果之åŽå†å‘表言论。谢谢。
这个包以åŠç›¸å…³çš„还有å˜åœ¨çš„å¿…è¦ä¹ˆï¼Ÿç±»ä¼¼çš„也太多了,lcd, gentoo, ubuntuç‰ç‰ï¼Œlcdé‚£ä¸ªæ¯”è¾ƒå®˜æ–¹ï¼Œä½ çš„patch还那么陈旧。视觉上也没有任何区别。
- Version bumped to 1.8.0
- Updated to 1.6.4
Sorry for updating so late...
Are you going to release 1.6.4 version?
1.6.0 is out.
I suggest adding 'cairo=1.4.14' in provides section instead of 'cairo 1.4.14' (as eplained here: http://archlinux.org/pipermail/aur-general/2008-January/006727.html). Otherwise you get an "cairo conflicts with cairo-cleartype" error when updating some packages (firefox3 for example).
what's the diff between cairo-lcd and this one?
Updated to 1.4.14
http://bbs.archlinux.org/viewtopic.php?id=42219
Here is the thread and what seems to be the solution.
U need update the provides line with the version of the cairo package. Pacman 3.1, which was moved to core repo today, has now got version control support.
I guess I understood that to be the problem.
Updated to 1.4.12
I get the same error as the second post below mine. 'isspace' error, though I tried to follow his instructions to fix it and it still fails.
This does not work on every machine apparently.
I can confirm that this works with cario-1.4.10
Hello, there is one bug in the package. If you try to compile with makepkg, it return error:"cairo-type1-subset.c:376: error: implicit declaration of function 'isspace'"
To fix it:
1) run "makepkg -o"
2) open the file src/cairo-type1-subset.c, and include #include < ctype.h >
3) run "makepkg -e"
Now you can try to install it, with pacman -U.
# Maintainer: freedom <zhanglin22000@gmail.com>
pkgname=cairo-cleartype
pkgver=1.4.6
pkgrel=1
pkgdesc="Cairo vector graphics library with cleartype patch"
arch=(i686 x86_64)
url="http://cairographics.org/"
depends=('libpng' 'libxrender' 'fontconfig')
conflicts=('cairo')
provides=('cairo')
makedepends=('pkgconfig')
options=('nolibtool')
source=(http://cairographics.org/releases/cairo-${pkgver}.tar.gz \
cairo-1.2.4-lcd-cleartype-like.diff)
md5sums=('ae16e73f9dca46ac93b4ce435e93773c' 'de7cccfcca8e686bca039a985436548e')
build() {
cd ${startdir}/src/cairo-${pkgver}
patch -Np1 -i ${startdir}/cairo-1.2.4-lcd-cleartype-like.diff || return 1
./configure --prefix=/usr
make || return 1
make DESTDIR=${startdir}/pkg install
}
1.4.6 is out
Up to 1.4.0
Tested and working with Cairo 1.4.0
Upgrade cairo to 1.2.6
I\'ve never submitted a package but try this page:
http://aur.archlinux.org/pkgsubmit.php
if it doesn\'t work, post the tarball to the AUR mailing list and they\'ll definitely give you the instructions (and maybe do it for you)
I have changed PKGBUILD , how to upload ?
All that needs to happen is to change pkgver to 1.2.6 and update the md5sum for the new sources.
Thanks again for these great patches by te way!
I should upgrade packages when old one in trouble.
Yep, works with the latest Cairo version with minor changes to the PKGBUILD. Thanks for sharing all 3 of the cleartype-patches, they put a smile on my face. Fonts are finally looking as good as I want them to!
the patch applies just fine to cairo 1.2.6
ClearType Font Drawing
v1.6.0