mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
main/cairo: modernise, explicit configure, broken tests
This commit is contained in:
parent
2ca943b5d7
commit
5b358af6c4
@ -1,10 +1,11 @@
|
|||||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||||
pkgname=cairo
|
pkgname=cairo
|
||||||
pkgver=1.14.12
|
pkgver=1.14.12
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="A vector graphics library"
|
pkgdesc="A vector graphics library"
|
||||||
url="http://cairographics.org/"
|
url="http://cairographics.org/"
|
||||||
arch="all"
|
arch="all"
|
||||||
|
options="!check" # Recursive dependency on gtk+2.0 for check.
|
||||||
license="LGPL-2.0-or-later MPL-1.1"
|
license="LGPL-2.0-or-later MPL-1.1"
|
||||||
depends=
|
depends=
|
||||||
depends_dev="fontconfig-dev freetype-dev libxrender-dev pixman-dev
|
depends_dev="fontconfig-dev freetype-dev libxrender-dev pixman-dev
|
||||||
@ -21,12 +22,12 @@ builddir="$srcdir/$pkgname-$pkgver"
|
|||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
default_prepare || return 1
|
default_prepare
|
||||||
|
|
||||||
# infinality
|
# infinality
|
||||||
for j in "$srcdir"/fontconfig-ultimate-$_ultver/$pkgname/*.patch; do
|
for j in "$srcdir"/fontconfig-ultimate-$_ultver/$pkgname/*.patch; do
|
||||||
msg "Applying ${j}"
|
msg "Applying ${j}"
|
||||||
patch -p1 -i $j || return 1
|
patch -p1 -i $j
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,18 +45,21 @@ build() {
|
|||||||
--enable-pdf \
|
--enable-pdf \
|
||||||
--enable-png \
|
--enable-png \
|
||||||
--enable-ps \
|
--enable-ps \
|
||||||
|
--enable-svg \
|
||||||
--enable-tee \
|
--enable-tee \
|
||||||
|
--enable-x \
|
||||||
--enable-xcb \
|
--enable-xcb \
|
||||||
|
--enable-xcb-shm \
|
||||||
|
--enable-xlib \
|
||||||
--enable-xlib-xrender \
|
--enable-xlib-xrender \
|
||||||
--disable-xlib-xcb \
|
--disable-xlib-xcb \
|
||||||
--disable-static \
|
--disable-static
|
||||||
|| return 1
|
make
|
||||||
make || return 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
make DESTDIR="$pkgdir" install || return 1
|
make DESTDIR="$pkgdir" install
|
||||||
}
|
}
|
||||||
|
|
||||||
gobject() {
|
gobject() {
|
||||||
@ -67,7 +71,7 @@ gobject() {
|
|||||||
tools() {
|
tools() {
|
||||||
pkgdesc="$pkgdesc (development tools)"
|
pkgdesc="$pkgdesc (development tools)"
|
||||||
mkdir -p "$subpkgdir"/usr/lib/cairo
|
mkdir -p "$subpkgdir"/usr/lib/cairo
|
||||||
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ || return 1
|
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
|
||||||
mv "$pkgdir"/usr/lib/cairo/libcairo-trace.* \
|
mv "$pkgdir"/usr/lib/cairo/libcairo-trace.* \
|
||||||
"$subpkgdir"/usr/lib/cairo/
|
"$subpkgdir"/usr/lib/cairo/
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user