1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 CMAKE_MIN_VERSION="2.8.5"
8 PYTHON_COMPAT=( python2_7 )
11 inherit bash-completion-r1 cmake-utils eutils fdo-mime l10n python-single-r1
13 DESCRIPTION="Command-line tool for controlling cdemu-daemon"
14 HOMEPAGE="http://cdemu.org"
15 SRC_URI="mirror://sourceforge/cdemu/cdemu-client-${PV}.tar.bz2"
19 KEYWORDS="amd64 ~hppa x86"
21 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
23 RDEPEND="${PYTHON_DEPS}
24 dev-python/dbus-python[${PYTHON_USEDEP}]
25 cdemu-daemon? ( app-cdr/cdemu-daemon:0/7 )"
27 dev-util/desktop-file-utils
28 >=dev-util/intltool-0.21
29 >=sys-devel/gettext-0.18"
31 S=${WORKDIR}/cdemu-client-${PV}
34 python-single-r1_pkg_setup
38 python_fix_shebang src/cdemu
39 epatch "${FILESDIR}/${PN}-3.0.0-bash-completion-dir.patch"
45 -DPOST_INSTALL_HOOKS=OFF
46 -DGENTOO_BASHCOMPDIR="$(get_bashcompdir)"
48 cmake-utils_src_configure
52 cmake-utils_src_install
53 # Build system doesn't respect LINGUAS, and changing list of installed
54 # translations requires error-prone editing of CMakeLists.txt
56 rm -r "${ED}"/usr/share/locale/$1 || die
57 ls "${ED}"/usr/share/locale/* &> /dev/null || rmdir "${ED}"/usr/share/locale || die
59 l10n_for_each_disabled_locale_do rm_po
63 fdo-mime_desktop_database_update
67 fdo-mime_desktop_database_update