diff options
Diffstat (limited to 'x11-plugins/cd-plugins-thirdparty/cd-plugins-thirdparty-3.0-r1.ebuild')
-rw-r--r-- | x11-plugins/cd-plugins-thirdparty/cd-plugins-thirdparty-3.0-r1.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/x11-plugins/cd-plugins-thirdparty/cd-plugins-thirdparty-3.0-r1.ebuild b/x11-plugins/cd-plugins-thirdparty/cd-plugins-thirdparty-3.0-r1.ebuild new file mode 100644 index 0000000..ab44552 --- /dev/null +++ b/x11-plugins/cd-plugins-thirdparty/cd-plugins-thirdparty-3.0-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +inherit multilib python-single-r1 + +DESCRIPTION="Third-party plugins for cairo-dock" +HOMEPAGE="http://www.glx-dock.org/mc_album.php?a=8" +SRC_URI_BASE="http://download.tuxfamily.org/glxdock/mediacolor/album8" +SRC_URI="pidgin? ( + ${SRC_URI_BASE}/1333389909_595345263b/Pidgin.tar.gz -> Pidgin-${PV}.tar.gz + http://home.arcor.de/dpolke/distfiles/Pidgin-Purple-theme.tar.bz2 ) + xchat? ( ${SRC_URI_BASE}/1333389867_5c477f03ac/Xchat.tar.gz -> Xchat-${PV}.tar.gz )" + +LICENSE="|| ( GPL-2 GPL-3 )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="pidgin xchat" +REQUIRED_USE="|| ( ${IUSE} ) + ${PYTHON_REQUIRED_USE}" + +RDEPEND="=x11-plugins/cd-plugins-core-${PV}*[python] + ${PYTHON_DEPS}" +DEPEND="" + +S="${WORKDIR}" + +src_prepare() { + python_fix_shebang . + # fix preview link + if use pidgin; then + mv Pidgin/themes/Eve-Wall-E/preview{@,} || die + fi +} + +my_installplugin() { + if use $1; then + local CD_THIRDPARTY_DIR="/usr/$(get_libdir)/cairo-dock/third-party" + dodir "${CD_THIRDPARTY_DIR}" + + sed -e "/^from /s/\(CDApplet\)/cairodock.\1/" \ + -e "/CDApplet$/s/$/ as CDApplet/" \ + -i $2/$2 || die + cp -R $2 "${ED}/${CD_THIRDPARTY_DIR}/" || die + fi +} + +src_install() { + my_installplugin pidgin Pidgin + my_installplugin xchat Xchat +} + +pkg_postinst() { + elog "These plugins can be made available by creating a symlink from" + elog "'${ROOT}usr/$(get_libdir)/cairo-dock/third-party' to" + elog "'\${HOME}/.config/cairo-dock/third-party'" +} |