atk: remove obsolete recipes, drop Python 2.x requirement. (#8768)

It only ever needed Python indirectly (via meson).

All recipes requing atk do so by using "libatk_1.0$secondaryArchSuffix".

Passes all tests in TESTS().
This commit is contained in:
OscarL
2023-05-31 13:39:51 -03:00
committed by GitHub
parent 91e76965e4
commit 4f21ff61d6
4 changed files with 1 additions and 237 deletions

View File

@@ -1,87 +0,0 @@
SUMMARY="GTK+ & GNOME Accessibility Toolkit"
DESCRIPTION="Provides the set of accessibility interface that are implemented \
by other toolkits and applications. Using the ATK interfaces, accessibility \
tools have full access to view and control running applications."
HOMEPAGE="https://developer.gnome.org/atk/"
COPYRIGHT="2001-2003, 2006-2007 Sun Microsystems Inc.
2009 Novell, Inc.
2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
2012-2014 ATK Team
2014 SUSE LLC."
LICENSE="GNU LGPL v2"
REVISION="2"
SOURCE_URI="https://ftp.gnome.org/pub/GNOME/sources/atk/2.23/atk-2.23.4.tar.xz"
CHECKSUM_SHA256="6888f4e902fc4727b1687ff512d5d087050f4c0d11035566484988cf698c2c1a"
PATCHES="atk-$portVersion.patch"
ARCHITECTURES="all ?x86"
SECONDARY_ARCHITECTURES="x86_gcc2 ?x86"
PROVIDES="
atk$secondaryArchSuffix = $portVersion
lib:libatk_1.0 = 0.22313.1 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
cmd:gettext$secondaryArchSuffix
lib:gtk_doc$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libgobject_2.0$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
"
PROVIDES_devel="
atk${secondaryArchSuffix}_devel = $portVersion
devel:libatk_1.0 = 0.22313.1 compat >= 0
"
REQUIRES_devel="
atk$secondaryArchSuffix == $portVersion base
haiku${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libglib_2.0$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
runConfigure ./configure
make
}
INSTALL()
{
make install
rm $libDir/libatk-1.0.la
prepareInstalledDevelLib libatk-1.0
fixPkgconfig
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $dataDir/gtk-doc
fi
packageEntries devel \
$developDir
}
TEST()
{
make check
cd tests
./teststateset
./testrelation
./testrole
./testvalue
./testdocument
}

View File

@@ -1,92 +0,0 @@
SUMMARY="GTK+ & GNOME Accessibility Toolkit"
DESCRIPTION="Provides the set of accessibility interface that are implemented \
by other toolkits and applications. Using the ATK interfaces, accessibility \
tools have full access to view and control running applications."
HOMEPAGE="https://developer.gnome.org/atk/"
COPYRIGHT="2001-2003, 2006-2007 Sun Microsystems Inc.
2009 Novell, Inc.
2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
2012-2018 ATK Team
2014 SUSE LLC."
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://ftp.gnome.org/pub/GNOME/sources/atk/${portVersion%.*}/atk-$portVersion.tar.xz"
CHECKSUM_SHA256="cd3a1ea6ecc268a2497f0cd018e970860de24a6d42086919d6bf6c8e8d53f4fc"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="?x86_gcc2 x86"
libVersion="0.22810.1"
libVersionCompat="$libVersion compat >= 0"
PROVIDES="
atk$secondaryArchSuffix = $portVersion
lib:libatk_1.0$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
cmd:gettext$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libgobject_2.0$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
"
PROVIDES_devel="
atk${secondaryArchSuffix}_devel = $portVersion
devel:libatk_1.0$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
atk$secondaryArchSuffix == $portVersion base
haiku${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libglib_2.0$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:python2
"
defineDebugInfoPackage atk$secondaryArchSuffix \
"$libDir"/libatk-1.0.so.$libVersion
BUILD()
{
runConfigure ./configure
make
}
INSTALL()
{
make install
rm $libDir/libatk-1.0.la
prepareInstalledDevelLib libatk-1.0
fixPkgconfig
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $dataDir/gtk-doc
fi
packageEntries devel \
$developDir
}
TEST()
{
make check
cd tests
./teststateset
./testrelation
./testrole
./testvalue
./testdocument
}

View File

@@ -9,7 +9,7 @@ COPYRIGHT="2001-2003, 2006-2007 Sun Microsystems Inc.
2012-2018 ATK Team
2014 SUSE LLC."
LICENSE="GNU LGPL v2"
REVISION="2"
REVISION="3"
SOURCE_URI="https://ftp.gnome.org/pub/GNOME/sources/atk/${portVersion%.*}/atk-$portVersion.tar.xz"
CHECKSUM_SHA256="ac4de2a4ef4bd5665052952fe169657e65e895c5057dffb3c2a810f6191a0c36"
@@ -45,7 +45,6 @@ REQUIRES_devel="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
setuptools_python
devel:libgirepository_1.0$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
@@ -57,7 +56,6 @@ BUILD_PREREQUIRES="
cmd:meson
cmd:ninja
cmd:pkg_config$secondaryArchSuffix
cmd:python
"
defineDebugInfoPackage atk$secondaryArchSuffix \

View File

@@ -1,55 +0,0 @@
diff --git a/tests/testvalue.c b/tests/testvalue.c
index 7ec0a29..490999d 100644
--- a/tests/testvalue.c
+++ b/tests/testvalue.c
@@ -119,9 +119,10 @@ test_value_get_value_and_text (AtkValue *value,
gdouble *current_value,
gchar **description)
{
+ TestValue *self;
g_return_if_fail (TEST_IS_VALUE (value));
- TestValue *self = TEST_VALUE (value);
+ self = TEST_VALUE (value);
if (current_value != NULL)
*current_value = self->value;
@@ -133,9 +134,10 @@ test_value_get_value_and_text (AtkValue *value,
AtkRange*
test_value_get_range (AtkValue *value)
{
+ AtkRange *result;
g_return_val_if_fail (TEST_IS_VALUE (value), NULL);
- AtkRange *result = atk_range_new (LOWER_LIMIT,
+ result = atk_range_new (LOWER_LIMIT,
UPPER_LIMIT,
NULL);
@@ -153,10 +155,12 @@ test_value_get_increment (AtkValue *value)
GSList*
test_value_get_sub_ranges (AtkValue *value)
{
+ GSList *result;
+ AtkRange *range;
g_return_val_if_fail (TEST_IS_VALUE (value), NULL);
- GSList *result = NULL;
- AtkRange *range = NULL;
+ result = NULL;
+ range = NULL;
/* low */
range = atk_range_new (LOWER_LIMIT, LOW_THRESHOLD,
@@ -186,9 +190,10 @@ void
test_value_set_value (AtkValue *value,
double new_value)
{
+ TestValue *self;
g_return_if_fail (TEST_IS_VALUE (value));
- TestValue *self = TEST_VALUE (value);
+ self = TEST_VALUE (value);
if (new_value < LOWER_LIMIT)
new_value = LOWER_LIMIT;