changeset 345:7c7fe5c0f569

accessibility/at-spi2-core: initial import, closes #1433
author David Demelier <markand@malikania.fr>
date Thu, 28 Mar 2019 12:44:40 +0100
parents 6598a2f82bb3
children febc092a1bae
files accessibility/at-spi2-core/at-spi2-core.sh accessibility/at-spi2-core/fix-meson-subdir.patch
diffstat 2 files changed, 76 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/accessibility/at-spi2-core/at-spi2-core.sh	Thu Mar 28 12:44:40 2019 +0100
@@ -0,0 +1,65 @@
+#!/bin/sh
+#
+# Copyright (c) 2019 David Demelier <markand@malikania.fr>
+#
+# Permission to use, copy, modify, and/or distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+
+PKGNAME=at-spi2-core
+PKGVERSION=2.32.0
+PKGREVISION=1
+PKGLICENSE="LGPLv20"
+PKGSUMMARY="core definitions for at-spi"
+PKGDOWNLOAD="http://ftp.gnome.org/pub/gnome/sources/$PKGNAME/2.32/$PKGNAME-$PKGVERSION.tar.xz"
+PKGDEPENDS="dev/meson:build"
+PKGOPTIONS="X"
+
+: ${CC:=gcc}
+: ${CFLAGS:=-O2}
+: ${CXX:=g++}
+: ${CXXFLAGS:=-O2}
+: ${LDFLAGS:=}
+: ${X:=yes}
+
+if [ "$X" = "yes" ]; then
+	PKGDEPENDS="x11/libx11 x11/libxtst x11/libxi $PKGDEPENDS"
+	with_x="-D x11=true"
+else
+	with_x="-D x11=false"
+fi
+
+build()
+{
+	rm -rf $PKGNAME-$PKGVERSION
+	tar xvaf $PKGNAME-$PKGVERSION.tar.xz
+	pushd $PKGNAME-$PKGVERSION
+
+	# https://git.alpinelinux.org/aports/plain/main/at-spi2-core/fix-meson-subdir.patch
+	patch -p1 < ../fix-meson-subdir.patch
+	CC="$CC" \
+	CFLAGS="$CFLAGS" \
+	CXX="$CXX" \
+	CXXFLAGS="$CXXFLAGS" \
+	LDFLAGS="$LDFLAGS" \
+	meson \
+		--prefix /usr \
+		--buildtype release \
+		--default-library shared \
+		. build
+	ninja -C build
+	DESTDIR=$DESTDIR ninja -C build install
+
+	popd
+	rm -rf $PKGNAME-$PKGVERSION
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/accessibility/at-spi2-core/fix-meson-subdir.patch	Thu Mar 28 12:44:40 2019 +0100
@@ -0,0 +1,11 @@
+--- a/atspi/meson.build
++++ b/atspi/meson.build
+@@ -57,7 +57,7 @@
+ 
+ atspi_includedir = join_paths(get_option('prefix'), get_option('includedir'), 'at-spi-2.0', 'atspi')
+ 
+-install_headers(atspi_headers, subdir: atspi_includedir)
++install_headers(atspi_headers, install_dir: atspi_includedir)
+ 
+ atspi_enums = gnome.mkenums('atspi-enum-types',
+                             sources: [ 'atspi-constants.h', 'atspi-types.h' ],