diff options
author | Alexandre Rostovtsev <tetromino@gentoo.org> | 2016-02-28 23:49:37 -0500 |
---|---|---|
committer | Alexandre Rostovtsev <tetromino@gentoo.org> | 2016-02-29 00:10:56 -0500 |
commit | 26e71cf6d443000dc60d6f2911eba958991c07ce (patch) | |
tree | 40739dc2da6c0b4b048c766ba43345cc6086cd9f /app-cdr/cdemu | |
parent | app-cdr/cdemu-daemon: bump to 3.0.4 for bug #571034 and eapi6-ify (diff) | |
download | gentoo-26e71cf6d443000dc60d6f2911eba958991c07ce.tar.gz gentoo-26e71cf6d443000dc60d6f2911eba958991c07ce.tar.bz2 gentoo-26e71cf6d443000dc60d6f2911eba958991c07ce.zip |
app-cdr/cdemu: bump to 3.0.1 for bug #571034 and eapi6-ify
Thanks to Rafał Mużyło.
Package-Manager: portage-2.2.27
Diffstat (limited to 'app-cdr/cdemu')
-rw-r--r-- | app-cdr/cdemu/Manifest | 1 | ||||
-rw-r--r-- | app-cdr/cdemu/cdemu-3.0.1.ebuild | 69 |
2 files changed, 70 insertions, 0 deletions
diff --git a/app-cdr/cdemu/Manifest b/app-cdr/cdemu/Manifest index 9089ee8863a8..622a6da9fac0 100644 --- a/app-cdr/cdemu/Manifest +++ b/app-cdr/cdemu/Manifest @@ -1,2 +1,3 @@ DIST cdemu-client-2.1.1.tar.bz2 28474 SHA256 204e626994f61d36423f3b732e180e3b3b20624effdfe91aabffd439c76d3964 SHA512 d764000fadc66b639dd8f20d9bb8fbe3b91d3e20bd207d30a734dc1a9a7fae746e8aad317a3d78cd35b69d0a8acbf8e389598786cadabec6e512640ba5b21be5 WHIRLPOOL 93cb01c3bc16ee69e3fd9ce9080838f4eebc874afe8d6be71c22e44919909144980dd44595a0dbf6fe1add3574061bcd6f523b72644eb52774d974f226c100b9 DIST cdemu-client-3.0.0.tar.bz2 40300 SHA256 359310a57422d5c59c8f93be0da827a2437edb1e62f455f5614089c28e34ae88 SHA512 807fe98dc8743a227484d20587c9f9e06cac649d74d8fdd520dba9bb2a2f268ba977c922333fdcf91201baf4f08595044939f6d5bd4834ec26cf689b6a36f361 WHIRLPOOL bd7d5b0ebe75aad5629f8cdf9f1de04fbdf7ad37400163d69e1eb9bfe35a47bc2bca5b58a031bb022611689d7c7c480fcc98403f883643ccc3cc2049f98fb814 +DIST cdemu-client-3.0.1.tar.bz2 40299 SHA256 cf7b2fedf14bb64df7e318546756e133eef9e018e04218f74891f676eda9e5cd SHA512 3abbedef15f2e30fc53d9f199c7f31b838da16a763d3dcb0e4745d0dd76675c0962e951a378dec3d8b13f024c339d5f3aa978fdf1f7e664332a684ab279d788d WHIRLPOOL 32099514bdbafda3994646cd08ac0f31fa345963090ef7506185db3955d953bbc42be018b970611bb4664f494790cbd99bb577dc169c53b4295110a26f28bf4d diff --git a/app-cdr/cdemu/cdemu-3.0.1.ebuild b/app-cdr/cdemu/cdemu-3.0.1.ebuild new file mode 100644 index 000000000000..df9195c98c62 --- /dev/null +++ b/app-cdr/cdemu/cdemu-3.0.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="6" + +CMAKE_MIN_VERSION="2.8.5" +PYTHON_COMPAT=( python2_7 ) +PLOCALES="no sl sv" + +inherit bash-completion-r1 cmake-utils fdo-mime l10n python-single-r1 + +DESCRIPTION="Command-line tool for controlling cdemu-daemon" +HOMEPAGE="http://cdemu.org" +SRC_URI="mirror://sourceforge/cdemu/cdemu-client-${PV}.tar.bz2" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="+cdemu-daemon" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + dev-python/dbus-python[${PYTHON_USEDEP}] + cdemu-daemon? ( app-cdr/cdemu-daemon:0/7 )" +DEPEND="${RDEPEND} + dev-util/desktop-file-utils + >=dev-util/intltool-0.21 + >=sys-devel/gettext-0.18" + +S=${WORKDIR}/cdemu-client-${PV} + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_prepare() { + python_fix_shebang src/cdemu + eapply -p2 "${FILESDIR}/${PN}-3.0.0-bash-completion-dir.patch" + eapply_user +} + +src_configure() { + DOCS="AUTHORS README" + local mycmakeargs=( + -DPOST_INSTALL_HOOKS=OFF + -DGENTOO_BASHCOMPDIR="$(get_bashcompdir)" + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + # Build system doesn't respect LINGUAS, and changing list of installed + # translations requires error-prone editing of CMakeLists.txt + rm_po() { + rm -r "${ED}"/usr/share/locale/$1 || die + ls "${ED}"/usr/share/locale/* &> /dev/null || rmdir "${ED}"/usr/share/locale || die + } + l10n_for_each_disabled_locale_do rm_po +} + +pkg_postinst() { + fdo-mime_desktop_database_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update +} |