Commit b1abbc73 authored by Luca Giambonini's avatar Luca Giambonini

cairo 1.16.0 and pango 1.42.4

updated cairo and pango deps
[skip-ci]
parent 6ac4482d
# maintainer abveritas@chakra-project.org
pkgname=cairo
pkgver=1.14.10
pkgver=1.16.0
pkgrel=1
_ubuntu_diff_version=${pkgver}-1
pkgdesc="Cairo vector graphics library"
arch=('x86_64')
license=('LGPL' 'MPL')
url="http://cairographics.org/"
depends=('libpng' 'libxrender' 'libxext' 'fontconfig' 'pixman' 'glib2' 'sh' 'mesa>=9.0' 'libgl' 'lzo2')
makedepends=('librsvg' 'poppler-glib' 'libspectre' 'valgrind' 'ttf-dejavu' 'gsfonts' 'xorg-server')
source=("http://cairographics.org/releases/${pkgname}-${pkgver}.tar.xz"
"http://archive.ubuntu.com/ubuntu/pool/main/c/cairo/cairo_${_ubuntu_diff_version}ubuntu1.debian.tar.xz")
sha1sums=('28c59d85d6b790c21b8b59ece73a6a1dda28d69a'
'89429dcce2a2efe930361b98f6d8210b885bba93')
depends=(libpng libxrender libxext fontconfig pixman glib2 lzo)
makedepends=(librsvg gtk2 poppler-glib libspectre gtk-doc valgrind git)
checkdepends=(ttf-dejavu gsfonts)
_commit=3ad43122b21a3299dd729dc8462d6b8f7f01142d # tags/1.16.0^0
source=("git+https://gitlab.freedesktop.org/cairo/cairo.git#commit=$_commit")
sha1sums=('SKIP')
pkgver() {
cd cairo
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
# apply ubuntu patches
for _f in $(cat "$srcdir/debian/patches/series" | grep -v '#') ; do
patch -Np1 -i "$srcdir/debian/patches/$_f"
done
autoreconf -vfi
cd cairo
# Update gtk-doc
cp /usr/share/aclocal/gtk-doc.m4 build/aclocal.gtk-doc.m4
cp /usr/share/gtk-doc/data/gtk-doc.make build/Makefile.am.gtk-doc
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# --enable-qt? interesting feature, but still experimental (2014)
build() {
cd cairo
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--enable-tee \
--enable-gl \
--enable-egl \
--enable-svg \
--enable-ps \
--enable-pdf \
--enable-gobject
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--disable-gl \
--enable-tee \
--enable-svg \
--enable-ps \
--enable-pdf \
--enable-gobject \
--enable-gtk-doc \
--enable-full-testing \
--enable-test-surfaces
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd cairo
# FIXME: tests don't pass
env CAIRO_TEST_TARGET=image \
CAIRO_TEST_TARGET_FORMAT=rgba \
CAIRO_TESTS='!pthread-show-text' make -k check || :
}
package() {
cd "$srcdir/$pkgname-$pkgver"
cd cairo
make DESTDIR="$pkgdir" install
}
2008-02-16 Travis Willard <travis@archlinux.org>
* 0.10.9
Added ChangeLog
New upstream release.
# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/fribidi
pkgname=fribidi
pkgver=0.19.7
pkgver=1.0.5
pkgrel=1
pkgdesc="A Free Implementation of the Unicode Bidirectional Algorithm"
arch=('x86_64')
license=('LGPL')
url="http://fribidi.org"
url="https://github.com/fribidi/fribidi/"
depends=('glibc')
options=('!libtool')
source=(http://fribidi.org/download/${pkgname}-${pkgver}.tar.bz2)
md5sums=('6c7e7cfdd39c908f7ac619351c1c5c23')
makedepends=('git' 'meson')
_commit=5b6a16e8da12ae7ff482fbfa5a17b72bd518418f # tags/v1.0.5^0
source=("git+https://github.com/fribidi/fribidi#commit=$_commit")
md5sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed -e 's/-/+/g' -e 's/^v//'
}
prepare() {
cd $pkgname
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr
make
chakra-meson $pkgname build -D docs=false
ninja -C build
}
check() {
meson test -C build
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
\ No newline at end of file
DESTDIR="$pkgdir" meson install -C build
}
......@@ -4,7 +4,7 @@
pkgname=libcroco
pkgver=0.6.12
pkgrel=1
pkgrel=2
pkgdesc="A CSS parsing library"
arch=('x86_64')
depends=('glib2' 'libxml2')
......
......@@ -2,25 +2,34 @@
# contributions from Arch: https://www.archlinux.org/packages/extra/x86_64/libotf/
pkgname=libotf
pkgver=0.9.13
pkgver=0.9.16
pkgrel=1
pkgdesc="OpenType Font library"
url='http://www.nongnu.org/m17n/'
arch=('x86_64')
license=('LGPL')
depends=('libxaw' 'freetype2')
options=('!libtool')
source=("http://download.savannah.gnu.org/releases/m17n//${pkgname}-${pkgver}.tar.gz")
md5sums=('99ca3857016e0bb8944776cfa16e6b2d')
source=("http://download.savannah.gnu.org/releases/m17n//${pkgname}-${pkgver}.tar.gz"
libotf-0.9.16-freetype_pkgconfig.patch
libotf-0.9.13-build.patch)
md5sums=('9b0b708ba5de53bf83e1cb09c6a6e100'
'3dca57250e5aae4b0f7cced30d738c3e'
'5e14064e1349f83550d4a4630ee05a76')
prepare() {
cd "${pkgname}-${pkgver}"
patch -Np1 -i "${srcdir}/libotf-0.9.16-freetype_pkgconfig.patch"
patch -Np1 -i "${srcdir}/libotf-0.9.13-build.patch"
autoreconf
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
cd "${pkgname}-${pkgver}"
./configure --prefix=/usr
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
--- a/example/Makefile.am
+++ b/example/Makefile.am
@@ -37,8 +37,7 @@
otfdump_LDADD = ${CommonLDADD}
otfview_SOURCE = otfview.c
-otfview_LDADD = ${CommonLDADD}
-otfview_LDFLAGS = ${X_LIBS} ${X_PRE_LIBS} @X11_XT_XAW_XMU@ ${X_EXTRA_LIBS}
+otfview_LDADD = ${CommonLDADD} ${X_LIBS} ${X_PRE_LIBS} @X11_XT_XAW_XMU@ ${X_EXTRA_LIBS}
otftobdf_SOURCE = otftobdf.c
otftobdf_LDADD = ${CommonLDADD}
--- a/libotf.pc.in
+++ b/libotf.pc.in
@@ -7,5 +7,6 @@
Description: OpenType font library
Version: @PACKAGE_VERSION@
Requires: freetype2
-Libs: @FREETYPE_LD_FLAGS@ -L${libdir} -lotf
+Libs: -L${libdir} -lotf
+Libs.private: @FREETYPE_LD_FLAGS@
Cflags: @FREETYPE_INC@ -I${includedir}
--- libotf-0.9.16/configure.ac
+++ libotf-0.9.16/configure.ac
@@ -48,23 +48,24 @@
AC_FUNC_ALLOCA
AC_FUNC_MALLOC
+PKG_PROG_PKG_CONFIG
+
# Check for Freetype2 usability.
-AC_CHECK_PROG(HAVE_FREETYPE_CONFIG, freetype-config, yes)
-if test "x$HAVE_FREETYPE_CONFIG" = "xyes"; then
- FREETYPE_INC=`freetype-config --cflags`
+PKG_CHECK_MODULES(FREETYPE, freetype2, [
+ FREETYPE_INC="$FREETYPE_CFLAGS"
CPPFLAGS="$CPPFLAGS $FREETYPE_INC"
AC_CHECK_HEADER(ft2build.h, HAVE_FREETYPE=yes,
HAVE_FREETYPE=no CPPFLAGS=$save_CPPFLAGS)
if test "x$HAVE_FREETYPE" = "xyes" ; then
- FREETYPE_LD_FLAGS=`freetype-config --libs`;
+ FREETYPE_LD_FLAGS="$FREETYPE_LIBS"
LIBS="$LIBS $FREETYPE_LD_FLAGS"
AC_CHECK_LIB(freetype, FT_Init_FreeType, HAVE_FREETYPE=yes,
HAVE_FREETYPE=no)
fi
-fi
+])
if test "x$HAVE_FREETYPE" != "xyes" ; then
- echo "Freetype library wan't found in your system!"
+ echo "Freetype library not found in your system!"
exit 1
fi
AC_SUBST(FREETYPE_INC)
pkgname=librsvg
pkgver=2.40.16
pkgver=2.44.12
pkgrel=1
pkgdesc="SAX-based renderer for SVG files into a GdkPixbuf"
arch=('x86_64')
license=('LGPL')
depends=('gdk-pixbuf2' 'pango' 'libcroco')
makedepends=('intltool' 'gobject-introspection')
optdepends=('python: rsvg commandline utility')
options=('!libtool')
url="http://librsvg.sourceforge.net/"
source=("http://ftp.gnome.org/pub/gnome/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz")
install=librsvg.install
sha256sums=('d48bcf6b03fa98f07df10332fb49d8c010786ddca6ab34cbba217684f533ff2e')
depends=(gdk-pixbuf2 pango libcroco)
makedepends=(intltool gobject-introspection vala python2 gtk-doc git rust)
_commit=6a0f7835bdd10e3106cd81fb6426e29ddde60eee # tags/2.44.12^0
source=("git+https://gitlab.gnome.org/GNOME/librsvg.git#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd $pkgname
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr \
--libexecdir=/usr/lib/${pkgname} \
--with-croco \
--disable-static \
--with-svgz \
--disable-gtk-theme
make
cd $pkgname
./configure --prefix=/usr --disable-static --enable-vala --enable-gtk-doc
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
make
}
check() {
cd $pkgname
make check
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
cd $pkgname
make DESTDIR="$pkgdir" install
}
pkgname=pango
pkgver=1.40.14
pkgver=1.42.4
pkgrel=1
pkgdesc="A library for layout and rendering of text"
arch=('x86_64')
license=('LGPL')
depends=('libthai' 'cairo' 'libxft' 'harfbuzz' 'graphite')
makedepends=('harfbuzz' 'fontconfig' 'cairo' 'libxft' 'libthai' 'gobject-introspection' 'help2man')
depends=(libthai cairo libxft harfbuzz fribidi)
makedepends=(gobject-introspection help2man gtk-doc git meson)
checkdepends=('ttf-dejavu')
install=pango.install
source=(http://download.gnome.org/sources/${pkgname}/${pkgver:0:4}/${pkgname}-${pkgver}.tar.xz)
url="http://www.pango.org/"
sha256sums=('90af1beaa7bf9e4c52db29ec251ec4fd0a8f2cc185d521ad1f88d01b3a6a17e3')
_commit=a6a89818246b0b14c0fe3d00d6120929fc0a11d9 # tags/1.42.4^0
source=("git+https://gitlab.gnome.org/GNOME/pango.git#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd ${pkgname}-${pkgver}
cd $pkgname
}
build() {
cd ${pkgname}-${pkgver}
rm -f pango-view/pango-view.1.in
./configure --prefix=/usr --sysconfdir=/etc \
--localstatedir=/var --with-included-modules=basic-fc
make
chakra-meson $pkgname build -D enable_docs=true
ninja -C build
}
check() {
cd ${pkgname}-${pkgver}
make -k check || :
# 1 FAIL: /layout/valid-1.markup
meson test -C build | true
}
package() {
cd ${pkgname}-${pkgver}
make -j1 DESTDIR="${pkgdir}" install
DESTDIR="$pkgdir" meson install -C build
rm -r "$pkgdir"/usr/{lib,share}/installed-tests
}
post_upgrade() {
if [ -f usr/etc/pango/pango.modules ]; then
rm usr/etc/pango/pango.modules
fi
if [ -f etc/pango/pango.modules ]; then
rm etc/pango/pango.modules
fi
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment