diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-04-30 06:57:47 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-05-05 19:13:11 +0000 |
commit | 84e45757b8482cf0dc7bea3707afb7abf0f154a7 (patch) | |
tree | 7bce0b74cbdbbee95c7fcc0035271213c3d90535 /main/pango | |
parent | 11935a1badbc8dda36f7a9a81b12b645639c1294 (diff) | |
download | aports-84e45757b8482cf0dc7bea3707afb7abf0f154a7.tar.bz2 aports-84e45757b8482cf0dc7bea3707afb7abf0f154a7.tar.xz |
main/pango: modernize
- Fix url=
- Fix license=
- Switch to meson
- Enable check
- Split pango-tools package
- Add pango-tools to deps of $pkgname-dev
Diffstat (limited to 'main/pango')
-rw-r--r-- | main/pango/APKBUILD | 49 | ||||
-rw-r--r-- | main/pango/disable-test-layout.patch | 13 |
2 files changed, 46 insertions, 16 deletions
diff --git a/main/pango/APKBUILD b/main/pango/APKBUILD index e5d1bb807e..7955cfd005 100644 --- a/main/pango/APKBUILD +++ b/main/pango/APKBUILD @@ -1,34 +1,51 @@ +# Contributor: Leo <thinkabit.ukim@gmail.com> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=pango pkgver=1.42.4 -pkgrel=0 +pkgrel=1 pkgdesc="A library for layout and rendering of text" -url="http://www.pango.org/" +url="https://www.pango.org/" arch="all" -license="LGPL" -options="!check" # no tests available -subpackages="$pkgname-dev $pkgname-doc" -makedepends="$depends_dev cairo-dev expat-dev gobject-introspection-dev +license="LGPL-2.1-or-later" +depends_dev="pango-tools=$pkgname-r$pkgrel" +makedepends="meson cairo-dev expat-dev gobject-introspection-dev help2man fontconfig-dev freetype-dev glib-dev harfbuzz-dev libxft-dev fribidi-dev" install="$pkgname.pre-deinstall" triggers="$pkgname.trigger=/usr/lib/pango/*/modules" -source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz" +subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" +source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz + disable-test-layout.patch + " -build () { +build() { cd "$srcdir"/$pkgname-$pkgver - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ + meson \ --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var - make + -Dgir=true \ + -Denable_docs=false \ + build + ninja -C build +} + +check() { + cd "$builddir" + ninja -C build test } package() { cd "$srcdir"/$pkgname-$pkgver mkdir -p "$pkgdir"/etc/pango - make DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" ninja -C build install + + rm -rf "${pkgdir}"/usr/share/installed-tests + rm -rf "${pkgdir}"/usr/libexec/installed-tests +} + +tools() { + pkgdesc="$pkgdesc (tools)" + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin } -sha512sums="993e97f647eba0c5ed90bcfcb8228bf67fa3f20b1f4331e4e40a30788d7c3ac55eee1209471bf21df125cb8fc6121acc8062a9da2f8a7d6cbe8e9ad13a9320dc pango-1.42.4.tar.xz" +sha512sums="993e97f647eba0c5ed90bcfcb8228bf67fa3f20b1f4331e4e40a30788d7c3ac55eee1209471bf21df125cb8fc6121acc8062a9da2f8a7d6cbe8e9ad13a9320dc pango-1.42.4.tar.xz +e3d819bb29b3b6fc849a1e6b6413c21dd89386d54ddf44d6598c28aa773d075b550def4a93a5f9d3eec5775369162cae6f0061c1e1c22590f07aa29b644f5027 disable-test-layout.patch" diff --git a/main/pango/disable-test-layout.patch b/main/pango/disable-test-layout.patch new file mode 100644 index 0000000000..2e10d389a2 --- /dev/null +++ b/main/pango/disable-test-layout.patch @@ -0,0 +1,13 @@ +diff --git a/tests/meson.build b/tests/meson.build +index bceb909..1216949 100644 +--- a/tests/meson.build ++++ b/tests/meson.build +@@ -37,7 +37,6 @@ if cairo_dep.found() + [ 'testiter', [ 'testiter.c' ], [ libpangocairo_dep ] ], + [ 'test-pangocairo-threads', [ 'test-pangocairo-threads.c' ], [ libpangocairo_dep, cairo_dep ] ], + [ 'markup-parse', [ 'markup-parse.c' ], [ libpangocairo_dep ] ], +- [ 'test-layout', [ 'test-layout.c', 'test-common.c' ], [ libpangocairo_dep ] ], + [ 'test-font', [ 'test-font.c' ], [ libpangocairo_dep ] ], + [ 'testattributes', [ 'testattributes.c', 'test-common.c' ], [ libpangocairo_dep ] ], + ] + |