mirror of
https://github.com/gentoo-mirror/steam-overlay.git
synced 2025-04-19 07:49:01 -04:00
dev-libs/libappindicator: Restore last-rited SLOT 2 for Steam
This is a simplified version of the original without extra bindings. Package-Manager: Portage-2.3.96, Repoman-2.3.20 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
parent
1719872d6b
commit
5992520d97
1
dev-libs/libappindicator/Manifest
Normal file
1
dev-libs/libappindicator/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST libappindicator-12.10.0.tar.gz 535562 BLAKE2B a05dc839aaea9fb3fda118d16aac0eb5c35e6c5095a83eb5e8a2af4902bc1da14960fbd57d3cda5d4d5d874023549ce83657a515aa9ee16a54cadfa81062d993 SHA512 317a22a23c8ed84e74207b64b2e9683992d1fb7208176637a051dfe925974f966d1cfa31e650b45eaf839ab61641dee8fbebc8a07882a09b0dd766d88b8d5b9a
|
@ -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
|
||||
])
|
63
dev-libs/libappindicator/libappindicator-12.10.0-r203.ebuild
Normal file
63
dev-libs/libappindicator/libappindicator-12.10.0-r203.ebuild
Normal file
@ -0,0 +1,63 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit autotools multilib-minimal 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 ~x86"
|
||||
|
||||
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}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-util/glib-utils
|
||||
virtual/pkgconfig[${MULTILIB_USEDEP}]
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-conditional-py-bindings.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Don't use -Werror
|
||||
sed -i 's/ -Werror//' {src,tests}/Makefile.{am,in} || die
|
||||
|
||||
xdg_environment_reset
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE=${S} \
|
||||
econf \
|
||||
--disable-introspection \
|
||||
--disable-python \
|
||||
--disable-static \
|
||||
--with-gtk=2
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake -j1 -C src #638782
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake -j1 -C src DESTDIR="${D}" install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
find "${D}" -name "*.la" -delete || die
|
||||
}
|
11
dev-libs/libappindicator/metadata.xml
Normal file
11
dev-libs/libappindicator/metadata.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>chewi@gentoo.org</email>
|
||||
<name>James Le Cuirot</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="launchpad">libappindicator</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user