From 51385ddb27365c8ae0d59a511bf6c5ddc6c307ab Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Thu, 1 Mar 2018 17:56:25 +0100 Subject: x11-misc/lightdm-gtk-greeter: Revbump to re-add reboot/shutdown buttons. Package-Manager: Portage-2.3.24, Repoman-2.3.6 --- .../lightdm-gtk-greeter-2.0.4-r1.ebuild | 80 ++++++++++++++++++++++ .../lightdm-gtk-greeter-2.0.4.ebuild | 76 -------------------- 2 files changed, 80 insertions(+), 76 deletions(-) create mode 100644 x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.4-r1.ebuild delete mode 100644 x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.4.ebuild (limited to 'x11-misc') diff --git a/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.4-r1.ebuild b/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.4-r1.ebuild new file mode 100644 index 000000000000..08d490d32438 --- /dev/null +++ b/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.4-r1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit versionator gnome2-utils + +DESCRIPTION="LightDM GTK+ Greeter" +HOMEPAGE="https://launchpad.net/lightdm-gtk-greeter" +SRC_URI="https://launchpad.net/lightdm-gtk-greeter/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz + branding? ( https://dev.gentoo.org/~hwoarang/distfiles/lightdm-gentoo-patch-2.tar.gz )" + +LICENSE="GPL-3 LGPL-3 + branding? ( CC-BY-3.0 )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +IUSE="ayatana branding" + +COMMON_DEPEND="ayatana? ( dev-libs/libindicator:3 ) + x11-libs/gtk+:3 + >=x11-misc/lightdm-1.2.2" + +DEPEND="${COMMON_DEPEND} + dev-util/intltool + sys-devel/gettext + xfce-base/exo" + +RDEPEND="${COMMON_DEPEND} + x11-themes/gnome-themes-standard + >=x11-themes/adwaita-icon-theme-3.14.1" + +GENTOO_BG="gentoo-bg_65.jpg" + +src_prepare() { + # Ok, this has to be fixed in the tarball but I am too lazy to do it. + # I will fix this once I decide to update the tarball with a new gentoo + # background + # Bug #404467 + if use branding; then + sed \ + -e "/xft-hintstyle/s:slight:hintslight:" \ + -e "/background/s:=.*:=/usr/share/lightdm/backgrounds/${GENTOO_BG}:" \ + -i "${WORKDIR}"/${PN}.conf || die + echo 'indicators=~host;~spacer;~clock;~spacer;~session;~language;~a11y;~power;~' \ + >> "${WORKDIR}"/${PN}.conf || die + fi + default + # Add back the reboot/shutdown buttons + echo 'indicators=~host;~spacer;~clock;~spacer;~session;~language;~a11y;~power;~' \ + >> lightdm-gtk-greeter.conf || die +} + +src_configure() { + local myeconfargs=( + --enable-kill-on-sigterm + --enable-at-spi-command="${EPREFIX}/usr/libexec/at-spi-bus-launcher --launch-immediately" + $(use_enable ayatana libindicator) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + + if use branding; then + insinto /etc/lightdm/ + doins "${WORKDIR}"/${PN}.conf + insinto /usr/share/lightdm/backgrounds/ + doins "${WORKDIR}"/${GENTOO_BG} + newdoc "${WORKDIR}"/README.txt README-background.txt + fi +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.4.ebuild b/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.4.ebuild deleted file mode 100644 index bc0dac2f8c00..000000000000 --- a/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.4.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit versionator gnome2-utils - -DESCRIPTION="LightDM GTK+ Greeter" -HOMEPAGE="https://launchpad.net/lightdm-gtk-greeter" -SRC_URI="https://launchpad.net/lightdm-gtk-greeter/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz - branding? ( https://dev.gentoo.org/~hwoarang/distfiles/lightdm-gentoo-patch-2.tar.gz )" - -LICENSE="GPL-3 LGPL-3 - branding? ( CC-BY-3.0 )" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" -IUSE="ayatana branding" - -COMMON_DEPEND="ayatana? ( dev-libs/libindicator:3 ) - x11-libs/gtk+:3 - >=x11-misc/lightdm-1.2.2" - -DEPEND="${COMMON_DEPEND} - dev-util/intltool - sys-devel/gettext - xfce-base/exo" - -RDEPEND="${COMMON_DEPEND} - x11-themes/gnome-themes-standard - >=x11-themes/adwaita-icon-theme-3.14.1" - -GENTOO_BG="gentoo-bg_65.jpg" - -src_prepare() { - # Ok, this has to be fixed in the tarball but I am too lazy to do it. - # I will fix this once I decide to update the tarball with a new gentoo - # background - # Bug #404467 - if use branding; then - sed -i -e "/xft-hintstyle/s:slight:hintslight:" \ - "${WORKDIR}"/${PN}.conf || die - fi - default -} - -src_configure() { - local myeconfargs=( - --enable-kill-on-sigterm - --enable-at-spi-command="${EPREFIX}/usr/libexec/at-spi-bus-launcher --launch-immediately" - $(use_enable ayatana libindicator) - ) - econf "${myeconfargs[@]}" -} - -src_install() { - default - - if use branding; then - insinto /etc/lightdm/ - doins "${WORKDIR}"/${PN}.conf - insinto /usr/share/lightdm/backgrounds/ - doins "${WORKDIR}"/${GENTOO_BG} - sed -i -e \ - "/background/s:=.*:=/usr/share/lightdm/backgrounds/${GENTOO_BG}:" \ - "${D}"/etc/lightdm/${PN}.conf || die - newdoc "${WORKDIR}"/README.txt README-background.txt - fi -} - -pkg_postinst() { - gnome2_icon_cache_update -} - -pkg_postrm() { - gnome2_icon_cache_update -} -- cgit v1.2.3-65-gdbad