diff options
Diffstat (limited to 'kde-misc')
-rw-r--r-- | kde-misc/kscreen/Manifest | 1 | ||||
-rw-r--r-- | kde-misc/kscreen/kscreen-1.0.71_p20150824.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/kde-misc/kscreen/Manifest b/kde-misc/kscreen/Manifest index 8b08392dd08b..736f1ead13e1 100644 --- a/kde-misc/kscreen/Manifest +++ b/kde-misc/kscreen/Manifest @@ -1,2 +1,3 @@ DIST kscreen-1.0.2.1.tar.xz 79372 SHA256 bb9c77ec11f209bfe8170da04f979dbb5cb031681de457fea355517049cca005 SHA512 60841a69d9732071c13761b53bc6c51ce630c440cd09186eff9c7c806939b0afa9b5edddd6e3fa30d1e675d3571e4c23e08d926d409d7e1f05dc107bddac78c1 WHIRLPOOL 4feb2684c5a166333df9faf1abf11b46c24b64a817d4fa723683e262b02909433305c66b15c0260ac99a39b1e7bc0d1250f39bad6200bf99288499f078059a25 DIST kscreen-1.0.71.tar.xz 87368 SHA256 7be811b79fa28420bd8a945e81d05e587b15bdfa7d7aec0ee21c9f1e2dfb540a SHA512 334f5846c596d0da47a19d37e53ac8ea3b5d2916026cfbbe66d604070b0ddae1a006a954a62b62d2bb27b1c3ccc89181201f8d4228b75b28c51f6f25cc14fc63 WHIRLPOOL 83718f928d809b3f226f855a20693da78da0889f9fbc472a33fc96aa984e9cd460b971f748ba5d758937bae9e14b6e51efd7c1fa267274a333832138853b90f3 +DIST kscreen-1.0.71_p20150824.tar.xz 93080 SHA256 ae0a1830d2d7dbb350e217188c77bd30a10decbd56f056f7e2fd0964071d95d4 SHA512 ac1f71219918363d298ee30022a9207da912c4293c6056d8875425b80c70010d7476591ca366eae5af97a298511c0e41ca748ba0c570d632f490eb5c3eae3c84 WHIRLPOOL 77721dc3a03a0a5eee543418379480da2c182497ab58a1aed7e513b228d406588187307ad848ddc3f6e6566e4a2039acec5428d04bcf597816c10b2d018a2f55 diff --git a/kde-misc/kscreen/kscreen-1.0.71_p20150824.ebuild b/kde-misc/kscreen/kscreen-1.0.71_p20150824.ebuild new file mode 100644 index 000000000000..16786c8d3f6e --- /dev/null +++ b/kde-misc/kscreen/kscreen-1.0.71_p20150824.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +VIRTUALX_REQUIRED="test" +DECLARATIVE_REQUIRED="always" +KDE_LINGUAS="ast bg bs ca ca@valencia cs da de el en_GB es et fi fr ga gl hu it +ja ko lt mr nb nds nl nn pa pl pt pt_BR ro ru sk sl sv tr ug uk zh_CN zh_TW" +inherit kde4-base + +DESCRIPTION="Alternative KDE screen management" +HOMEPAGE="https://projects.kde.org/projects/extragear/base/kscreen" +SRC_URI="http://dev.gentoo.org/~kensington/distfiles/${P}.tar.xz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="4" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +IUSE="debug" + +RDEPEND=" + >=dev-libs/qjson-0.8 + >=x11-libs/libkscreen-1.0.4:4 +" +DEPEND="${RDEPEND} + sys-devel/gettext" + +DISPLAY_MESSAGE=false +pkg_preinst() { + if ! has_version ${CATEGORY}/${PN} ; then + DISPLAY_MESSAGE=true + fi + + kde4-base_pkg_preinst +} + +pkg_postinst() { + if [[ "${DISPLAY_MESSAGE}" = true ]]; then + echo + elog "Disable the old screen management:" + elog "# qdbus org.kde.kded /kded org.kde.kded.unloadModule randrmonitor" + elog "# qdbus org.kde.kded /kded org.kde.kded.setModuleAutoloading randrmonitor false" + elog + elog "Enable the kded module for the kscreen based screen management:" + elog "# qdbus org.kde.kded /kded org.kde.kded.loadModule kscreen" + elog + elog "Now simply (un-)plugging displays should enable/disable them, while" + elog "the last state is remembered." + echo + fi + + unset DISPLAY_MESSAGE + + kde4-base_pkg_postinst +} |