mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-28 02:20:05 +00:00
core/libappindicator: new port
This commit is contained in:
2
core/libappindicator/.checksums
Normal file
2
core/libappindicator/.checksums
Normal file
@@ -0,0 +1,2 @@
|
||||
41910f2005edee9240da1e53fffcdc12 libappindicator-12.10.0.tar.gz
|
||||
54cc5c8643bf53edce25cffa716fcb0e no-python.patch
|
||||
22
core/libappindicator/.pkgfiles
Normal file
22
core/libappindicator/.pkgfiles
Normal file
@@ -0,0 +1,22 @@
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/include/
|
||||
drwxr-xr-x root/root usr/include/libappindicator3-0.1/
|
||||
drwxr-xr-x root/root usr/include/libappindicator3-0.1/libappindicator/
|
||||
-rw-r--r-- root/root usr/include/libappindicator3-0.1/libappindicator/app-indicator-enum-types.h
|
||||
-rw-r--r-- root/root usr/include/libappindicator3-0.1/libappindicator/app-indicator.h
|
||||
drwxr-xr-x root/root usr/lib/
|
||||
drwxr-xr-x root/root usr/lib/girepository-1.0/
|
||||
-rw-r--r-- root/root usr/lib/girepository-1.0/AppIndicator3-0.1.typelib
|
||||
-rw-r--r-- root/root usr/lib/libappindicator3.a
|
||||
lrwxrwxrwx root/root usr/lib/libappindicator3.so -> libappindicator3.so.1.0.0
|
||||
lrwxrwxrwx root/root usr/lib/libappindicator3.so.1 -> libappindicator3.so.1.0.0
|
||||
-rwxr-xr-x root/root usr/lib/libappindicator3.so.1.0.0
|
||||
drwxr-xr-x root/root usr/lib/pkgconfig/
|
||||
-rw-r--r-- root/root usr/lib/pkgconfig/appindicator3-0.1.pc
|
||||
drwxr-xr-x root/root usr/share/
|
||||
drwxr-xr-x root/root usr/share/gir-1.0/
|
||||
-rw-r--r-- root/root usr/share/gir-1.0/AppIndicator3-0.1.gir
|
||||
drwxr-xr-x root/root usr/share/vala/
|
||||
drwxr-xr-x root/root usr/share/vala/vapi/
|
||||
-rw-r--r-- root/root usr/share/vala/vapi/appindicator3-0.1.deps
|
||||
-rw-r--r-- root/root usr/share/vala/vapi/appindicator3-0.1.vapi
|
||||
73
core/libappindicator/no-python.patch
Normal file
73
core/libappindicator/no-python.patch
Normal file
@@ -0,0 +1,73 @@
|
||||
From: Simon McVittie <smcv@debian.org>
|
||||
Date: Thu, 5 Jul 2018 23:51:25 +0100
|
||||
Subject: Disable legacy Python bindings
|
||||
|
||||
Forwarded: not-needed, Debian-specific
|
||||
---
|
||||
bindings/Makefile.am | 6 ------
|
||||
configure.ac | 29 -----------------------------
|
||||
2 files changed, 35 deletions(-)
|
||||
|
||||
diff --git a/bindings/Makefile.am b/bindings/Makefile.am
|
||||
index d1f6d73..b4df7fe 100644
|
||||
--- a/bindings/Makefile.am
|
||||
+++ b/bindings/Makefile.am
|
||||
@@ -1,11 +1,5 @@
|
||||
-if USE_GTK3
|
||||
SUBDIRS = \
|
||||
vala
|
||||
-else
|
||||
-SUBDIRS = \
|
||||
- python \
|
||||
- vala
|
||||
-endif
|
||||
|
||||
if HAS_MONO
|
||||
SUBDIRS += mono
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 5a14c7f..4a7c964 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -181,33 +181,6 @@ AM_CONDITIONAL(BUILD_MONO_TEST, test x${have_nunit} = xyes)
|
||||
with_localinstall="no"
|
||||
AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall], [install all of the files localy instead of system directories (for distcheck)]), with_localinstall=$enableval, with_localinstall=no)
|
||||
|
||||
-###########################
|
||||
-# Python
|
||||
-###########################
|
||||
-
|
||||
-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)])
|
||||
-
|
||||
-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)
|
||||
-
|
||||
#########################
|
||||
# Check if build tests
|
||||
#########################
|
||||
@@ -226,8 +199,6 @@ src/Makefile
|
||||
src/appindicator-0.1.pc
|
||||
src/appindicator3-0.1.pc
|
||||
bindings/Makefile
|
||||
-bindings/python/Makefile
|
||||
-bindings/python/appindicator.override
|
||||
bindings/vala/Makefile
|
||||
bindings/vala/examples/Makefile
|
||||
tests/Makefile
|
||||
25
core/libappindicator/spkgbuild
Normal file
25
core/libappindicator/spkgbuild
Normal file
@@ -0,0 +1,25 @@
|
||||
# description : Library that allow applications to export menus
|
||||
# depends : gtk3 vala gobject-introspection libindicator libdbusmenu dbus-glib
|
||||
|
||||
name=libappindicator
|
||||
version=12.10.0
|
||||
release=1
|
||||
source="https://launchpad.net/libappindicator/${version%.*}/$version/+download/libappindicator-$version.tar.gz
|
||||
no-python.patch"
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
patch -Np1 -i $SRC/no-python.patch
|
||||
|
||||
sed -i 's/-Werror//' src/Makefile.am
|
||||
autoreconf -fi
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--with-gtk=3
|
||||
make
|
||||
make -j1 DESTDIR=$PKG install
|
||||
}
|
||||
Reference in New Issue
Block a user