diff options
author | David Seifert <soap@gentoo.org> | 2023-01-01 12:32:58 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2023-01-01 12:32:58 +0100 |
commit | 70cc434ec010485de3d72ef424301caaf053ac24 (patch) | |
tree | d6e3f81ddce97e1943b3a2ef444b0da4fff876cb /dev-libs | |
parent | dev-libs/gmime: update EAPI 6 -> 8 (diff) | |
download | gentoo-70cc434ec010485de3d72ef424301caaf053ac24.tar.gz gentoo-70cc434ec010485de3d72ef424301caaf053ac24.tar.bz2 gentoo-70cc434ec010485de3d72ef424301caaf053ac24.zip |
dev-libs/libindicate: update EAPI 6 -> 8
Closes: https://bugs.gentoo.org/469032
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/libindicate/files/libindicate-0.6.1-no-mono.patch | 78 | ||||
-rw-r--r-- | dev-libs/libindicate/files/libindicate-12.10.1-autotools.patch | 151 | ||||
-rw-r--r-- | dev-libs/libindicate/files/libindicate-12.10.1-werror.patch | 13 | ||||
-rw-r--r-- | dev-libs/libindicate/libindicate-12.10.1-r4.ebuild (renamed from dev-libs/libindicate/libindicate-12.10.1-r3.ebuild) | 37 |
4 files changed, 162 insertions, 117 deletions
diff --git a/dev-libs/libindicate/files/libindicate-0.6.1-no-mono.patch b/dev-libs/libindicate/files/libindicate-0.6.1-no-mono.patch deleted file mode 100644 index 1743f861f4ba..000000000000 --- a/dev-libs/libindicate/files/libindicate-0.6.1-no-mono.patch +++ /dev/null @@ -1,78 +0,0 @@ -Temporary patch to disable mono until new gtk-sharp is in tree wrt bug #382491 - ---- a/bindings/Makefile.am -+++ b/bindings/Makefile.am -@@ -1,9 +1,5 @@ - SUBDIRS = - --if HAS_MONO --SUBDIRS += mono --endif -- - if HAS_PYTHON - SUBDIRS += python - endif ---- a/configure.ac -+++ b/configure.ac -@@ -124,61 +124,6 @@ - AC_PATH_PROG([VALA_API_GEN], [vapigen]) - - ########################### --# Check for Mono support --########################### -- --MONO_REQUIRED_VERSION=1.0 --PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false) -- --AC_PATH_PROG(AL, al, no) --if test "x$AL" = "xno" ; then -- AC_MSG_NOTICE([No al tool found. You need to install Mono.]) --fi -- --if test "x$has_mono" = "xtrue" ; then -- GENERATED_SOURCES=generated/*.cs -- AC_PATH_PROG(RUNTIME, mono, no) -- -- if test "x$RUNTIME" != "no" ; then -- RUNTIME=mono -- fi -- -- AC_PATH_PROG(CSC, gmcs, no) -- LIB_PREFIX=.so -- LIB_SUFFIX= --fi -- --if test "x$CSC" = "xno" ; then -- AC_MSG_NOTICE([No Mono compiler found.]) --fi -- --AC_PATH_PROG(GACUTIL, gacutil, no) --if test "x$GACUTIL" = "xno" ; then -- AC_MSG_NOTICE([No gacutil tool found]) --fi -- --AC_SUBST(RUNTIME) --AC_SUBST(CSC) --AC_SUBST(GACUTIL) --AC_SUBST(LIB_PREFIX) --AC_SUBST(LIB_SUFFIX) --AC_SUBST(GENERATED_SOURCES) -- --GLIB_SHARP_REQ_VERSION=2.12.1 --GTK_SHARP_REQ_VERSION=2.12 --PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTK_SHARP_REQ_VERSION, has_gtksharp=true, has_gtksharp=false) --AC_SUBST(GTK_SHARP_LIBS) --AC_SUBST(GTK_SHARP_CFLAGS) -- --PKG_CHECK_MODULES(GAPI, gapi-2.0 >= $GLIB_SHARP_REQ_VERSION, has_gapi=true, has_gapi=false) --AC_PATH_PROG(GAPI_PARSER, gapi2-parser, no) --AC_SUBST(GAPI_PARSER) --AC_PATH_PROG(GAPI_CODEGEN, gapi2-codegen, no) --AC_SUBST(GAPI_CODEGEN) --AC_PATH_PROG(GAPI_FIXUP, gapi2-fixup, no) --AC_SUBST(GAPI_FIXUP) -- --########################### - # Check for Python support - ########################### - diff --git a/dev-libs/libindicate/files/libindicate-12.10.1-autotools.patch b/dev-libs/libindicate/files/libindicate-12.10.1-autotools.patch new file mode 100644 index 000000000000..ef84aab8cd94 --- /dev/null +++ b/dev-libs/libindicate/files/libindicate-12.10.1-autotools.patch @@ -0,0 +1,151 @@ +- Temporary patch to disable mono until new gtk-sharp is in tree wrt bug #382491 +- fix parallel install issue #469032 +- remove -Werror +- use VAPIGEN from vala.eclass + +--- a/bindings/Makefile.am ++++ b/bindings/Makefile.am +@@ -1,9 +1,5 @@ + SUBDIRS = + +-if HAS_MONO +-SUBDIRS += mono +-endif +- + if HAS_PYTHON + SUBDIRS += python + endif +--- a/configure.ac ++++ b/configure.ac +@@ -3,7 +3,7 @@ + + AC_PREREQ(2.53) + +-AM_CONFIG_HEADER(config.h) ++AC_CONFIG_HEADERS(config.h) + AM_INIT_AUTOMAKE(libindicate, 12.10.1) + + AM_MAINTAINER_MODE +@@ -134,62 +134,7 @@ + # Vala API Generation + ########################### + +-AC_PATH_PROG([VALA_API_GEN], [vapigen]) +- +-########################### +-# Check for Mono support +-########################### +- +-MONO_REQUIRED_VERSION=1.0 +-PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false) +- +-AC_PATH_PROG(AL, al, no) +-if test "x$AL" = "xno" ; then +- AC_MSG_NOTICE([No al tool found. You need to install Mono.]) +-fi +- +-if test "x$has_mono" = "xtrue" ; then +- GENERATED_SOURCES=generated/*.cs +- AC_PATH_PROG(RUNTIME, mono, no) +- +- if test "x$RUNTIME" != "no" ; then +- RUNTIME=mono +- fi +- +- AC_PATH_PROG(CSC, gmcs, no) +- LIB_PREFIX=.so +- LIB_SUFFIX= +-fi +- +-if test "x$CSC" = "xno" ; then +- AC_MSG_NOTICE([No Mono compiler found.]) +-fi +- +-AC_PATH_PROG(GACUTIL, gacutil, no) +-if test "x$GACUTIL" = "xno" ; then +- AC_MSG_NOTICE([No gacutil tool found]) +-fi +- +-AC_SUBST(RUNTIME) +-AC_SUBST(CSC) +-AC_SUBST(GACUTIL) +-AC_SUBST(LIB_PREFIX) +-AC_SUBST(LIB_SUFFIX) +-AC_SUBST(GENERATED_SOURCES) +- +-GLIB_SHARP_REQ_VERSION=2.12.1 +-GTK_SHARP_REQ_VERSION=2.12 +-PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTK_SHARP_REQ_VERSION, has_gtksharp=true, has_gtksharp=false) +-AC_SUBST(GTK_SHARP_LIBS) +-AC_SUBST(GTK_SHARP_CFLAGS) +- +-PKG_CHECK_MODULES(GAPI, gapi-2.0 >= $GLIB_SHARP_REQ_VERSION, has_gapi=true, has_gapi=false) +-AC_PATH_PROG(GAPI_PARSER, gapi2-parser, no) +-AC_SUBST(GAPI_PARSER) +-AC_PATH_PROG(GAPI_CODEGEN, gapi2-codegen, no) +-AC_SUBST(GAPI_CODEGEN) +-AC_PATH_PROG(GAPI_FIXUP, gapi2-fixup, no) +-AC_SUBST(GAPI_FIXUP) ++AC_PATH_PROG([VAPIGEN], [vapigen]) + + ########################### + # Check for Python support +--- a/libindicate/Makefile.am ++++ b/libindicate/Makefile.am +@@ -74,7 +74,7 @@ + libindicate_la_CFLAGS = \ + $(LIBINDICATE_CFLAGS) \ + $(COVERAGE_CFLAGS) \ +- -Wall -Werror ++ -Wall + + libindicate_la_LIBADD = \ + $(LIBINDICATE_LIBS) +@@ -173,7 +173,7 @@ + vapi_DATA = Indicate-0.7.vapi + + Indicate-0.7.vapi: Indicate-0.7.gir +- $(VALA_API_GEN) --library=Indicate-0.7 \ ++ $(VAPIGEN) --library=Indicate-0.7 \ + --pkg Dbusmenu-0.4 \ + $< + +--- a/libindicate-gtk/Makefile.am ++++ b/libindicate-gtk/Makefile.am +@@ -26,8 +26,7 @@ + indicator.h \ + listener.h + +-libindicate_gtkinclude_HEADERS = \ +- $(indicate_gtk_headers) ++libindicate_gtkinclude_HEADERS = + + libindicate_gtk_la_SOURCES = \ + $(indicate_gtk_headers) \ +@@ -43,7 +42,7 @@ + libindicate_gtk_la_CFLAGS = \ + $(COVERAGE_CFLAGS) \ + -I $(top_srcdir) \ +- -Wall -Werror \ ++ -Wall \ + $(LIBINDICATEGTK_CFLAGS) + + libindicate_gtk_la_LIBADD = \ +@@ -58,7 +57,7 @@ + libindicate_gtk3_la_CFLAGS = $(libindicate_gtk_la_CFLAGS) + libindicate_gtk3_la_LDFLAGS = $(libindicate_gtk_la_LDFLAGS) + libindicate_gtk3_la_SOURCES = $(libindicate_gtk_la_SOURCES) +-libindicate_gtk3include_HEADERS = $(libindicate_gtkinclude_HEADERS) ++libindicate_gtk3include_HEADERS = $(indicate_gtk_headers) + libindicate_gtk3includedir = $(libindicate_gtkincludedir) + + pkgconfig_DATA = indicate-gtk$(VER)-0.7.pc +@@ -139,7 +138,7 @@ + vapi_DATA = IndicateGtk$(VER)-0.7.vapi + + IndicateGtk$(VER)-0.7.vapi: IndicateGtk$(VER)-0.7.tmp.gir Makefile.am +- $(VALA_API_GEN) --library=IndicateGtk$(VER)-0.7 \ ++ $(VAPIGEN) --library=IndicateGtk$(VER)-0.7 \ + --pkg $(GTKVALA) \ + --pkg Dbusmenu-0.4 \ + --pkg Indicate-0.7 \ diff --git a/dev-libs/libindicate/files/libindicate-12.10.1-werror.patch b/dev-libs/libindicate/files/libindicate-12.10.1-werror.patch deleted file mode 100644 index 9a330caac03c..000000000000 --- a/dev-libs/libindicate/files/libindicate-12.10.1-werror.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/libindicate-gtk/Makefile.am -+++ b/libindicate-gtk/Makefile.am -@@ -45,3 +45,3 @@ libindicate_gtk_la_CFLAGS = \ - -I $(top_srcdir) \ -- -Wall -Werror \ -+ -Wall \ - $(LIBINDICATEGTK_CFLAGS) ---- a/libindicate/Makefile.am -+++ b/libindicate/Makefile.am -@@ -76,3 +76,3 @@ libindicate_la_CFLAGS = \ - $(COVERAGE_CFLAGS) \ -- -Wall -Werror -+ -Wall diff --git a/dev-libs/libindicate/libindicate-12.10.1-r3.ebuild b/dev-libs/libindicate/libindicate-12.10.1-r4.ebuild index e1cb38a5bbb4..2124b53457b2 100644 --- a/dev-libs/libindicate/libindicate-12.10.1-r3.ebuild +++ b/dev-libs/libindicate/libindicate-12.10.1-r4.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=8 -VALA_MIN_API_VERSION="0.16" VALA_USE_DEPEND="vapigen" -inherit autotools flag-o-matic vala xdg-utils + +inherit autotools vala DESCRIPTION="Library to raise flags on DBus for other components of the desktop" HOMEPAGE="https://launchpad.net/libindicate" @@ -15,7 +15,6 @@ LICENSE="LGPL-2.1 LGPL-3" SLOT="3" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 ~riscv sparc x86" IUSE="gtk +introspection" - RESTRICT="test" # consequence of the -no-mono.patch RDEPEND=" @@ -29,38 +28,27 @@ RDEPEND=" ) introspection? ( >=dev-libs/gobject-introspection-1 ) " -DEPEND="${RDEPEND} - $(vala_depend) +DEPEND="${RDEPEND}" +BDEPEND=" app-text/gnome-doc-utils dev-util/gtk-doc-am gnome-base/gnome-common virtual/pkgconfig + $(vala_depend) " -PATCHES=( - "${FILESDIR}"/${PN}-0.6.1-no-mono.patch - "${FILESDIR}"/${PN}-12.10.1-werror.patch -) +PATCHES=( "${FILESDIR}"/${P}-autotools.patch ) src_prepare() { default - xdg_environment_reset - vala_src_prepare - - sed -i \ - -e "s:vapigen:vapigen-$(vala_best_api_version):" \ - -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" \ - configure.ac || die - eautoreconf } src_configure() { - append-flags -Wno-error + vala_setup # python bindings are only for GTK+-2.x econf \ - --disable-static \ $(use_enable gtk) \ $(use_enable introspection) \ --disable-python \ @@ -69,9 +57,6 @@ src_configure() { } src_install() { - # work around failing parallel installation (-j1) - # until a better fix is available. (bug #469032) - emake -j1 DESTDIR="${D}" install - einstalldocs - find "${D}" -name '*.la' -delete || die + default + find "${ED}" -name '*.la' -delete || die } |