2022-08-03 11:26:06 +03:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2011-09-07 21:52:54 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2022-08-03 11:26:06 +03:00
|
|
|
EAPI=8
|
2011-09-07 21:52:54 +04:00
|
|
|
|
2022-08-03 11:26:06 +03:00
|
|
|
inherit cmake
|
2011-09-07 21:52:54 +04:00
|
|
|
|
|
|
|
MY_PN="${PN}-core"
|
2022-08-03 11:26:06 +03:00
|
|
|
MM_PV=$(ver_cut '1-2')
|
2011-09-07 21:52:54 +04:00
|
|
|
|
|
|
|
DESCRIPTION="Cairo-dock is a fast, responsive, Mac OS X-like dock."
|
2017-06-08 16:07:37 +03:00
|
|
|
HOMEPAGE="http://www.glx-dock.org"
|
|
|
|
SRC_URI="http://launchpad.net/${MY_PN}/${MM_PV}/${PV}/+download/${P}.tar.gz"
|
2011-09-07 21:52:54 +04:00
|
|
|
|
2017-06-08 16:07:37 +03:00
|
|
|
LICENSE="GPL-3"
|
2011-09-07 21:52:54 +04:00
|
|
|
SLOT="0"
|
2017-06-08 16:07:37 +03:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
2022-08-03 11:26:06 +03:00
|
|
|
IUSE="crypt xcomposite desktop_manager"
|
2011-09-07 21:52:54 +04:00
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
dev-libs/dbus-glib
|
|
|
|
dev-libs/glib:2
|
2017-06-08 16:07:37 +03:00
|
|
|
dev-libs/libxml2:2
|
|
|
|
gnome-base/librsvg:2
|
|
|
|
net-misc/curl
|
2011-09-07 21:52:54 +04:00
|
|
|
sys-apps/dbus
|
|
|
|
x11-libs/cairo
|
2017-06-08 16:07:37 +03:00
|
|
|
x11-libs/pango
|
2011-09-07 21:52:54 +04:00
|
|
|
x11-libs/gtkglext
|
|
|
|
x11-libs/libXrender
|
2022-08-03 11:26:06 +03:00
|
|
|
x11-libs/gtk+:3
|
2017-06-08 16:07:37 +03:00
|
|
|
crypt? ( sys-libs/glibc )
|
2011-09-07 21:52:54 +04:00
|
|
|
xcomposite? (
|
|
|
|
x11-libs/libXcomposite
|
|
|
|
x11-libs/libXinerama
|
|
|
|
x11-libs/libXtst
|
|
|
|
)
|
|
|
|
"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
dev-util/intltool
|
2017-06-08 16:07:37 +03:00
|
|
|
virtual/pkgconfig
|
2011-09-07 21:52:54 +04:00
|
|
|
sys-devel/gettext
|
|
|
|
"
|
|
|
|
|
2022-08-03 11:26:06 +03:00
|
|
|
src_prepare() {
|
|
|
|
# We will install man files manually
|
|
|
|
sed -i -e '/add_subdirectory(man)/d' data/CMakeLists.txt || die
|
|
|
|
|
|
|
|
cmake_src_prepare
|
|
|
|
}
|
|
|
|
|
2017-06-08 16:07:37 +03:00
|
|
|
src_configure() {
|
2022-08-03 11:26:06 +03:00
|
|
|
local mycmakeargs=(
|
|
|
|
$(use desktop_manager && echo "-Denable-desktop-manager=ON" || echo "-Denable-desktop-manager=OFF")
|
|
|
|
-DCMAKE_INSTALL_MANDIR="/usr/share/man/${PV}"
|
2017-06-08 16:07:37 +03:00
|
|
|
)
|
2022-08-03 11:26:06 +03:00
|
|
|
cmake_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
newman data/man/cairo-dock_en.1 cairo-dock_en.1
|
|
|
|
cmake_src_install
|
2011-09-07 21:52:54 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
2017-06-08 16:07:37 +03:00
|
|
|
elog "Additional plugins are available to extend the functionality"
|
|
|
|
elog "of Cairo-Dock. It is recommended to install at least"
|
|
|
|
elog "x11-pluings/cairo-dock-plugins."
|
|
|
|
elog
|
2011-09-07 21:52:54 +04:00
|
|
|
elog "Cairo-Dock is an app that draws on a RGBA GLX visual."
|
|
|
|
elog "Some users have noticed that if the dock is launched,"
|
|
|
|
elog "severals qt4-based applications could crash, like skype or vlc."
|
|
|
|
elog "If you have this problem, add the following line into your bashrc :"
|
|
|
|
echo
|
|
|
|
elog "alias vlc='export XLIB_SKIP_ARGB_VISUALS=1; vlc; unset XLIB_SKIP_ARGB_VISUALS'"
|
|
|
|
elog "see http://www.qtforum.org/article/26669/qt4-mess-up-the-opengl-context.html for more details."
|
|
|
|
}
|