From 86ab3bef5094906d9edde66d147a5abb922877f2 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Fri, 26 Feb 2016 16:13:29 +0100 Subject: [PATCH] voip/blink: initial import of version 1.4.2 --- packages/voip/blink/blink-1.4.2.exheres-0 | 59 +++++++++++++++++++ .../blink/files/blink-1.4.2-data-path.patch | 19 ++++++ 2 files changed, 78 insertions(+) create mode 100644 packages/voip/blink/blink-1.4.2.exheres-0 create mode 100644 packages/voip/blink/files/blink-1.4.2-data-path.patch diff --git a/packages/voip/blink/blink-1.4.2.exheres-0 b/packages/voip/blink/blink-1.4.2.exheres-0 new file mode 100644 index 00000000..19ce2526 --- /dev/null +++ b/packages/voip/blink/blink-1.4.2.exheres-0 @@ -0,0 +1,59 @@ +# Copyright 2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require gtk-icon-cache +require setup-py [ import=distutils blacklist="3" multibuild=false ] + +SUMMARY="A state of the art, easy to use SIP client" +HOMEPAGE="http://iCanBlink.com" +DOWNLOADS="http://download.ag-projects.com/BlinkQt/blink-${PV}.tar.gz" + +LICENCES="GPL-3" +SLOT="0" +MYOPTIONS="" +PLATFORMS="~amd64 ~x86" + +DEPENDENCIES=" + build: + dev-python/Cython[python_abis:*(-)?] + build+run: + net-libs/libvncserver + run: + dev-python/PyQt4[webkit][python_abis:*(-)?] + dev-python/lxml[python_abis:*(-)?] + dev-python/python-application[python_abis:*(-)?] + dev-python/python-cjson[python_abis:*(-)?] + dev-python/python-dateutil[python_abis:*(-)?] + dev-python/python-eventlib[python_abis:*(-)?] + dev-python/python-sipsimple[python_abis:*(-)?] + dev-python/zopeinterface[python_abis:*(-)?] + net-twisted/TwistedCore[python_abis:*(-)?] +" + +DEFAULT_SRC_PREPARE_PATCHES=( + "${FILES}/${PNV}-data-path.patch" +) + +src_install() { + setup-py_src_install + + insinto /usr/share/icons/hicolor/48x48/apps + newins resources/icons/blink48.png blink.png + insinto /usr/share/icons/hicolor/64x64/apps + newins resources/icons/blink64.png blink.png + insinto /usr/share/icons/hicolor/512x512/apps + doins resources/icons/blink.png + + insinto /usr/share/applications + hereins ${PN}.desktop << EOF +[Desktop Entry] +Name=Blink +Type=Application +Comment=${SUMMARY} +Exec=${PN} +TryExec=${PN} +Icon=${PN} +Categories=Network;Telephony; +EOF +} + diff --git a/packages/voip/blink/files/blink-1.4.2-data-path.patch b/packages/voip/blink/files/blink-1.4.2-data-path.patch new file mode 100644 index 00000000..922c7c32 --- /dev/null +++ b/packages/voip/blink/files/blink-1.4.2-data-path.patch @@ -0,0 +1,19 @@ +From: Julian Ospald +Date: Tue Sep 8 10:10:18 UTC 2015 +Subject: Fix data path fallback + +Distutils installs into "/usr/share/blink", but +blink was unable to find it on gentoo, probably due +to python-exec magic. + +--- blink-1.4.1/blink/resources.py ++++ blink-1.4.1/blink/resources.py +@@ -71,7 +71,7 @@ + if os.path.exists(os.path.join(application_directory, 'resources', 'blink.ui')): + cls._cached_directory = os.path.join(application_directory, 'resources').decode(sys.getfilesystemencoding()) + else: +- cls._cached_directory = os.path.join(application_directory, 'share', 'blink').decode(sys.getfilesystemencoding()) ++ cls._cached_directory = os.path.join('/usr', 'share', 'blink').decode(sys.getfilesystemencoding()) + return DirectoryContextManager(cls._cached_directory) + + @classmethod