diff options
Diffstat (limited to 'app-mobilephone/wammu/wammu-0.40.ebuild')
-rw-r--r-- | app-mobilephone/wammu/wammu-0.40.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/app-mobilephone/wammu/wammu-0.40.ebuild b/app-mobilephone/wammu/wammu-0.40.ebuild new file mode 100644 index 000000000000..6707609bb58b --- /dev/null +++ b/app-mobilephone/wammu/wammu-0.40.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Front-end for gammu to access mobile phones easily" +HOMEPAGE="http://www.wammu.eu/" +SRC_URI="http://dl.cihar.com/wammu/v0/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="bluetooth gnome" + +RDEPEND="|| ( ( >=app-mobilephone/gammu-1.36 dev-python/python-gammu ) + >=app-mobilephone/gammu-1.25.0[python] ) + >=dev-python/wxpython-2.8:*[${PYTHON_USEDEP}] + bluetooth? ( dev-python/pybluez[${PYTHON_USEDEP}] + gnome? ( net-wireless/gnome-bluetooth ) + )" +DEPEND="${RDEPEND}" + +# Supported languages and translated documentation +# Be sure all languages are prefixed with a single space! +MY_AVAILABLE_LINGUAS=" af ar bg bn ca cs da de el en_GB es et fi fr gl he hu id it ko nl pl pt_BR ro ru sk sv sw tr uk zh_CN zh_TW" +IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}" + +# Required to source locale content out of the box +DISTUTILS_IN_SOURCE_BUILD=1 + +src_prepare() { + local lang support_linguas=no + for lang in ${MY_AVAILABLE_LINGUAS} ; do + if use linguas_${lang} ; then + support_linguas=yes + break + fi + done + # install all languages when all selected LINGUAS aren't supported + if [ "${support_linguas}" = "yes" ]; then + for lang in ${MY_AVAILABLE_LINGUAS} ; do + if ! use linguas_${lang} ; then + rm -r locale/${lang} || die + fi + done + fi + + distutils-r1_src_prepare +} + +src_compile() { + # SKIPWXCHECK: else 'import wx' results in + # Xlib: connection to ":0.0" refused by server + SKIPWXCHECK=yes distutils-r1_src_compile +} + +src_install() { + SKIPWXCHECK=yes distutils-r1_src_install +} |