From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-libs/libappindicator/Manifest | 6 ++ ...indicator-12.10.0-conditional-py-bindings.patch | 72 ++++++++++++++++++ .../libappindicator-12.10.0-vala-inherit.patch | 14 ++++ .../libappindicator-12.10.0-r201.ebuild | 87 ++++++++++++++++++++++ .../libappindicator-12.10.0-r301.ebuild | 72 ++++++++++++++++++ dev-libs/libappindicator/metadata.xml | 8 ++ 6 files changed, 259 insertions(+) create mode 100644 dev-libs/libappindicator/Manifest create mode 100644 dev-libs/libappindicator/files/libappindicator-12.10.0-conditional-py-bindings.patch create mode 100644 dev-libs/libappindicator/files/libappindicator-12.10.0-vala-inherit.patch create mode 100644 dev-libs/libappindicator/libappindicator-12.10.0-r201.ebuild create mode 100644 dev-libs/libappindicator/libappindicator-12.10.0-r301.ebuild create mode 100644 dev-libs/libappindicator/metadata.xml (limited to 'dev-libs/libappindicator') diff --git a/dev-libs/libappindicator/Manifest b/dev-libs/libappindicator/Manifest new file mode 100644 index 000000000000..edaf960d5e64 --- /dev/null +++ b/dev-libs/libappindicator/Manifest @@ -0,0 +1,6 @@ +AUX libappindicator-12.10.0-conditional-py-bindings.patch 2019 BLAKE2B a57b1b2e3ac115ebc7395967f36b2f648abfba2abc32fb77505a77ddb63d3f7e99c0f5ceeeeabdbe541edc6db1f76fc23e28c0df81c0c4bea600d4a0f72b5f26 SHA512 69d86a3d1e930a0f0c79091dba9691610ecb0fcf13c672fc0ff511bb764b7f74f6c42cab558b6412863a8353fe9a8d72c40419db873fdc4716a93ba3bbbd0aea +AUX libappindicator-12.10.0-vala-inherit.patch 561 BLAKE2B 481ebe7b58af89df6a326b79a65f9ac7110c9d82a61efb993051d691d5cc728075bdd5ac904e9986cb0e41780d3e36e1637e5bd58532781934587b8c1bdf458e SHA512 b021bc0ec7fc1b311add7d6f8a9018fa6f5e807168055c95440e5f5d3d6d5b48375e11542b906058a0786194b1911c8bdcab9632573c1f128772ff6d54aa9173 +DIST libappindicator-12.10.0.tar.gz 535562 BLAKE2B a05dc839aaea9fb3fda118d16aac0eb5c35e6c5095a83eb5e8a2af4902bc1da14960fbd57d3cda5d4d5d874023549ce83657a515aa9ee16a54cadfa81062d993 SHA512 317a22a23c8ed84e74207b64b2e9683992d1fb7208176637a051dfe925974f966d1cfa31e650b45eaf839ab61641dee8fbebc8a07882a09b0dd766d88b8d5b9a +EBUILD libappindicator-12.10.0-r201.ebuild 2200 BLAKE2B 003ded270ba2b1eab5f003f028f445344003b0ab0dfd68651f09651ee999f608638e86dbb7a3a15237796c31831ca495fd43c5dcb875f21c477211fed07e1a66 SHA512 857d7e8283ab0701df9ef5f91285ca183de65966581ece8567d7ff290de6069e44f5ad756eac3e87f1c5b622ff45c15ecbddc3d32db804c46162ef2a09779892 +EBUILD libappindicator-12.10.0-r301.ebuild 1883 BLAKE2B 0e1e41b58a9bac1d7a0525f515c649ccc6db3e48dedb6097f1a1abf63eaad76f3b7771287d3f5f83d56748297f3f61dd76146a8058c9267da7e1fdd351bf7b21 SHA512 cc5df908bb9d28e61c39fb81e5bf8bd6b6b631049dff7d4081e3c1de87092b0f69568ae557db3ac1bb520132a940a86c86cec5faa64313e84776601eadc67975 +MISC metadata.xml 250 BLAKE2B 8bd202d452582a51ddf3c4bc92840531d0fee0262d112e5fc1173c8fb95a0776efe14ff15613373fd4acab6082ad6f672e278a9b942e072a643b351e8af4d467 SHA512 161da1b732e0f23b06e0732db24f27cb486e7c673e8585d2f6403dc23147b56b5a64dd09978e3dd2db20e9e6a462daf50fe8bc73774d52445d1f6549d82104e0 diff --git a/dev-libs/libappindicator/files/libappindicator-12.10.0-conditional-py-bindings.patch b/dev-libs/libappindicator/files/libappindicator-12.10.0-conditional-py-bindings.patch new file mode 100644 index 000000000000..c916d9ba2cf6 --- /dev/null +++ b/dev-libs/libappindicator/files/libappindicator-12.10.0-conditional-py-bindings.patch @@ -0,0 +1,72 @@ +--- a/bindings/Makefile.am 2015-07-10 10:04:18.091199191 +0200 ++++ b/bindings/Makefile.am 2015-07-10 10:19:47.047974439 +0200 +@@ -3,8 +3,10 @@ + vala + else + SUBDIRS = \ +- python \ + vala ++if HAS_PYTHON ++SUBDIRS += python ++endif + endif + + if HAS_MONO +--- a/configure.ac 2015-07-16 13:28:41.007502838 +0200 ++++ b/configure.ac_new 2015-07-16 13:53:18.118602877 +0200 +@@ -188,25 +188,37 @@ + PYGTK_REQUIRED=2.14.0 + PYGOBJECT_REQUIRED=0.22 + +-AM_PATH_PYTHON(2.3.5) +-AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)]) ++AC_ARG_ENABLE([python], ++ AC_HELP_STRING([--enable-python], [Enable python for GTK2 build]),, ++ [enable_python=yes]) + +-PKG_CHECK_MODULES(APPINDICATOR_PYTHON, ++if test x"$with_gtk" = x"3" ; then ++ enable_python=no ++fi ++ ++AM_CONDITIONAL(HAS_PYTHON, test x"${enable_python}" != x"no") ++ ++if test x"$enable_python" != x"no" ; then ++ AM_PATH_PYTHON(2.3.5) ++ AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)]) ++ ++ PKG_CHECK_MODULES(APPINDICATOR_PYTHON, + [ + pygtk-2.0 >= $PYGTK_REQUIRED + gtk+-2.0 >= $GTK_REQUIRED_VERSION + pygobject-2.0 >= $PYGOBJECT_REQUIRED + ]) + +-AC_MSG_CHECKING(for pygtk defs) +-PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0` +-AC_SUBST(PYGTK_DEFSDIR) +-AC_MSG_RESULT($PYGTK_DEFSDIR) +- +-AC_MSG_CHECKING(for pygtk codegen) +-PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/codegen.py" +-AC_SUBST(PYGTK_CODEGEN) +-AC_MSG_RESULT($PYGTK_CODEGEN) ++ AC_MSG_CHECKING(for pygtk defs) ++ PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0` ++ AC_SUBST(PYGTK_DEFSDIR) ++ AC_MSG_RESULT($PYGTK_DEFSDIR) ++ ++ AC_MSG_CHECKING(for pygtk codegen) ++ PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/codegen.py" ++ AC_SUBST(PYGTK_CODEGEN) ++ AC_MSG_RESULT($PYGTK_CODEGEN) ++fi + + ######################### + # Check if build tests +@@ -278,4 +290,5 @@ + Tests: $enable_tests + Mono tests: $have_nunit + gcov: $use_gcov ++ Python: $enable_python + ]) diff --git a/dev-libs/libappindicator/files/libappindicator-12.10.0-vala-inherit.patch b/dev-libs/libappindicator/files/libappindicator-12.10.0-vala-inherit.patch new file mode 100644 index 000000000000..e71cb690c15e --- /dev/null +++ b/dev-libs/libappindicator/files/libappindicator-12.10.0-vala-inherit.patch @@ -0,0 +1,14 @@ +# http://bazaar.launchpad.net/~indicator-applet-developers/libappindicator/trunk.12.10/revision/244 +=== modified file 'bindings/vala/appindicator-0.1-custom.vala' +--- a/bindings/vala/appindicator-0.1-custom.vala 2011-09-23 15:46:27 +0000 ++++ b/bindings/vala/appindicator-0.1-custom.vala 2012-10-10 23:33:35 +0000 +@@ -23,7 +23,7 @@ + */ + + namespace AppIndicator { +- [CCode (type_check_function = "IS_APP_INDICATOR")] ++ [CCode (type_check_function = "IS_APP_INDICATOR", type_id = "app_indicator_get_type ()")] + public class Indicator : GLib.Object { + } + } + diff --git a/dev-libs/libappindicator/libappindicator-12.10.0-r201.ebuild b/dev-libs/libappindicator/libappindicator-12.10.0-r201.ebuild new file mode 100644 index 000000000000..171bc7b67fb7 --- /dev/null +++ b/dev-libs/libappindicator/libappindicator-12.10.0-r201.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +VALA_USE_DEPEND="vapigen" + +PYTHON_COMPAT=( python2_7 ) + +inherit autotools eutils multilib-minimal python-single-r1 vala xdg-utils + +DESCRIPTION="A library to allow applications to export a menu into the Unity Menu bar" +HOMEPAGE="https://launchpad.net/libappindicator" +SRC_URI="https://launchpad.net/${PN}/${PV%.*}/${PV}/+download/${P}.tar.gz" + +LICENSE="LGPL-2.1 LGPL-3" +SLOT="2" +KEYWORDS="amd64 ~arm x86" + +IUSE="+introspection python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + >=dev-libs/dbus-glib-0.98[${MULTILIB_USEDEP}] + >=dev-libs/glib-2.26:2[${MULTILIB_USEDEP}] + >=dev-libs/libdbusmenu-0.6.2[gtk,${MULTILIB_USEDEP}] + >=dev-libs/libindicator-12.10.0:0[${MULTILIB_USEDEP}] + x11-libs/gtk+:2[${MULTILIB_USEDEP},introspection?] + introspection? ( >=dev-libs/gobject-introspection-1:= ) + python? ( + ${PYTHON_DEPS} + dev-python/pygtk[${PYTHON_USEDEP}] + ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig[${MULTILIB_USEDEP}] + introspection? ( $(vala_depend) ) +" + +PATCHES=( + "${FILESDIR}"/${P}-conditional-py-bindings.patch + # http://bazaar.launchpad.net/~indicator-applet-developers/libappindicator/trunk.12.10/revision/244 + "${FILESDIR}"/${P}-vala-inherit.patch +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + + xdg_environment_reset + + # Don't use -Werror + sed -i -e 's/ -Werror//' {src,tests}/Makefile.{am,in} || die + + eautoreconf + + # Disable MONO for now because of https://bugs.gentoo.org/382491 + sed -i -e '/^MONO_REQUIRED_VERSION/s:=.*:=9999:' configure || die +} + +multilib_src_configure() { + if multilib_is_native_abi; then + local -x VALAC VALA_API_GEN VAPIGEN_VAPIDIR PKG_CONFIG_PATH + use introspection && vala_src_prepare && export VALA_API_GEN="${VAPIGEN}" + fi + + ECONF_SOURCE=${S} \ + econf \ + --disable-static \ + --with-gtk=2 \ + $(multilib_native_use_enable introspection) \ + $(multilib_native_use_enable python) +} + +multilib_src_install() { + emake -j1 DESTDIR="${D}" install +} + +multilib_src_install_all() { + einstalldocs + prune_libtool_files --modules + + # installed by slot 3 as well + rm -r "${D}"usr/share/gtk-doc || die +} diff --git a/dev-libs/libappindicator/libappindicator-12.10.0-r301.ebuild b/dev-libs/libappindicator/libappindicator-12.10.0-r301.ebuild new file mode 100644 index 000000000000..e346621fec49 --- /dev/null +++ b/dev-libs/libappindicator/libappindicator-12.10.0-r301.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +VALA_USE_DEPEND="vapigen" + +inherit autotools eutils multilib-minimal vala xdg-utils + +DESCRIPTION="A library to allow applications to export a menu into the Unity Menu bar" +HOMEPAGE="https://launchpad.net/libappindicator" +SRC_URI="https://launchpad.net/${PN}/${PV%.*}/${PV}/+download/${P}.tar.gz" + +LICENSE="LGPL-2.1 LGPL-3" +SLOT="3" +KEYWORDS="amd64 ~arm ~arm64 x86" +IUSE="+introspection" + +RDEPEND=" + >=dev-libs/dbus-glib-0.98[${MULTILIB_USEDEP}] + >=dev-libs/glib-2.26:2[${MULTILIB_USEDEP}] + >=dev-libs/libdbusmenu-0.6.2[gtk3,${MULTILIB_USEDEP}] + >=dev-libs/libindicator-12.10.0:3[${MULTILIB_USEDEP}] + >=x11-libs/gtk+-3.2:3[${MULTILIB_USEDEP},introspection?] + introspection? ( >=dev-libs/gobject-introspection-1:= ) +" +DEPEND="${RDEPEND} + introspection? ( $(vala_depend) ) + dev-util/gtk-doc-am + virtual/pkgconfig[${MULTILIB_USEDEP}] +" + +PATCHES=( + "${FILESDIR}"/${P}-conditional-py-bindings.patch + # http://bazaar.launchpad.net/~indicator-applet-developers/libappindicator/trunk.12.10/revision/244 + "${FILESDIR}"/${P}-vala-inherit.patch +) + +src_prepare() { + default + + xdg_environment_reset + + # Don't use -Werror + sed -i -e 's/ -Werror//' {src,tests}/Makefile.{am,in} || die + + eautoreconf + + # Disable MONO for now because of https://bugs.gentoo.org/382491 + sed -i -e '/^MONO_REQUIRED_VERSION/s:=.*:=9999:' configure || die +} + +multilib_src_configure() { + if multilib_is_native_abi; then + local -x VALAC VALA_API_GEN VAPIGEN_VAPIDIR PKG_CONFIG_PATH + use introspection && vala_src_prepare && export VALA_API_GEN="${VAPIGEN}" + fi + + ECONF_SOURCE=${S} \ + econf \ + --disable-static \ + --with-gtk=3 \ + $(multilib_native_use_enable introspection) +} + +multilib_src_install() { + emake -j1 DESTDIR="${D}" install +} + +multilib_src_install_all() { + einstalldocs + prune_libtool_files +} diff --git a/dev-libs/libappindicator/metadata.xml b/dev-libs/libappindicator/metadata.xml new file mode 100644 index 000000000000..d3453a21683f --- /dev/null +++ b/dev-libs/libappindicator/metadata.xml @@ -0,0 +1,8 @@ + + + + + + libappindicator + + -- cgit v1.2.3