1 |
commit: b5af1634f41935959a83e8ab6be899a7abd7eb1c |
2 |
Author: Harri Nieminen <moikkis <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Mar 6 14:52:55 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 7 09:11:55 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5af1634 |
7 |
|
8 |
x11-misc/slim: Remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.4, Repoman-2.3.2 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/4142 |
12 |
|
13 |
x11-misc/slim/slim-1.3.6-r3.ebuild | 137 ------------------------------------- |
14 |
1 file changed, 137 deletions(-) |
15 |
|
16 |
diff --git a/x11-misc/slim/slim-1.3.6-r3.ebuild b/x11-misc/slim/slim-1.3.6-r3.ebuild |
17 |
deleted file mode 100644 |
18 |
index 8da12a6b392..00000000000 |
19 |
--- a/x11-misc/slim/slim-1.3.6-r3.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,137 +0,0 @@ |
22 |
-# Copyright 1999-2016 Gentoo Foundation |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=5 |
26 |
- |
27 |
-inherit cmake-utils pam eutils systemd versionator |
28 |
- |
29 |
-DESCRIPTION="Simple Login Manager" |
30 |
-HOMEPAGE="https://sourceforge.net/projects/slim.berlios/" |
31 |
-SRC_URI="mirror://sourceforge/project/${PN}.berlios/${P}.tar.gz" |
32 |
- |
33 |
-LICENSE="GPL-2" |
34 |
-SLOT="0" |
35 |
-KEYWORDS="amd64 arm ~mips ppc ppc64 sparc x86 ~x86-fbsd" |
36 |
-IUSE="branding pam consolekit" |
37 |
-REQUIRED_USE="consolekit? ( pam )" |
38 |
- |
39 |
-RDEPEND="x11-libs/libXmu |
40 |
- x11-libs/libX11 |
41 |
- x11-libs/libXpm |
42 |
- x11-libs/libXft |
43 |
- x11-libs/libXrandr |
44 |
- media-libs/libpng:0= |
45 |
- virtual/jpeg:= |
46 |
- x11-apps/sessreg |
47 |
- consolekit? ( sys-auth/consolekit |
48 |
- sys-apps/dbus ) |
49 |
- pam? ( virtual/pam |
50 |
- !x11-misc/slimlock )" |
51 |
-DEPEND="${RDEPEND} |
52 |
- virtual/pkgconfig |
53 |
- x11-proto/xproto" |
54 |
-PDEPEND="branding? ( >=x11-themes/slim-themes-1.2.3a-r3 )" |
55 |
- |
56 |
-src_prepare() { |
57 |
- # Our Gentoo-specific config changes |
58 |
- epatch "${FILESDIR}"/${P}-config.diff |
59 |
- epatch "${FILESDIR}"/${PN}-1.3.5-arm.patch |
60 |
- epatch "${FILESDIR}"/${P}-honour-cflags.patch |
61 |
- epatch "${FILESDIR}"/${P}-libslim-cmake-fixes.patch |
62 |
- epatch "${FILESDIR}"/${PN}-1.3.5-disable-ck-for-systemd.patch |
63 |
- epatch "${FILESDIR}"/${P}-strip-systemd-unit-install.patch |
64 |
- epatch "${FILESDIR}"/${P}-systemd-session.patch |
65 |
- epatch "${FILESDIR}"/${P}-session-chooser.patch |
66 |
- epatch "${FILESDIR}"/${P}-fix-slimlock-nopam.patch |
67 |
- epatch "${FILESDIR}"/${P}-drop-zlib.patch |
68 |
- epatch "${FILESDIR}"/${P}-freetype.patch |
69 |
- |
70 |
- if use elibc_FreeBSD; then |
71 |
- sed -i -e 's/"-DHAVE_SHADOW"/"-DNEEDS_BASENAME"/' CMakeLists.txt \ |
72 |
- || die |
73 |
- fi |
74 |
- |
75 |
- if use branding; then |
76 |
- sed -i -e 's/ default/ slim-gentoo-simple/' slim.conf || die |
77 |
- fi |
78 |
-} |
79 |
- |
80 |
-src_configure() { |
81 |
- mycmakeargs=( |
82 |
- $(cmake-utils_use pam USE_PAM) |
83 |
- $(cmake-utils_use consolekit USE_CONSOLEKIT) |
84 |
- ) |
85 |
- |
86 |
- cmake-utils_src_configure |
87 |
-} |
88 |
- |
89 |
-src_install() { |
90 |
- cmake-utils_src_install |
91 |
- |
92 |
- if use pam ; then |
93 |
- pamd_mimic system-local-login slim auth account session |
94 |
- pamd_mimic system-local-login slimlock auth |
95 |
- fi |
96 |
- |
97 |
- systemd_dounit slim.service |
98 |
- |
99 |
- insinto /usr/share/slim |
100 |
- newins "${FILESDIR}/Xsession-r3" Xsession |
101 |
- |
102 |
- insinto /etc/logrotate.d |
103 |
- newins "${FILESDIR}/slim.logrotate" slim |
104 |
- |
105 |
- dodoc xinitrc.sample ChangeLog README TODO THEMES |
106 |
-} |
107 |
- |
108 |
-pkg_postinst() { |
109 |
- # massage ${REPLACING_VERSIONS} to come up with whether or not it's a new install |
110 |
- # or if it's older than 1.3.2-r7 |
111 |
- # Note - there should only ever be zero or one version as this package isn't slotted, |
112 |
- # so the logic doesn't worry about what happens if there's two, due to the case where |
113 |
- # a previous emerge attempt failed in the middle of qmerge. |
114 |
- local rv=none |
115 |
- for rv in ${REPLACING_VERSIONS} ; do |
116 |
- if version_is_at_least "1.3.2-r7" "${rv}" ; then |
117 |
- rv=newer |
118 |
- break; |
119 |
- fi |
120 |
- if version_is_at_least "1.0" "${rv}" ; then |
121 |
- rv=older |
122 |
- break; |
123 |
- fi |
124 |
- done |
125 |
- |
126 |
- if [[ ${rv} == none ]]; then |
127 |
- elog |
128 |
- elog "The configuration file is located at /etc/slim.conf." |
129 |
- elog |
130 |
- elog "If you wish ${PN} to start automatically, set DISPLAYMANAGER=\"${PN}\" " |
131 |
- elog "in /etc/conf.d/xdm and run \"rc-update add xdm default\"." |
132 |
- fi |
133 |
- if [[ ${rv} != newer ]]; then |
134 |
- elog |
135 |
- elog "By default, ${PN} is set up to do proper X session selection, including ~/.xsession" |
136 |
- elog "support, as well as selection between sessions available in" |
137 |
- elog "/etc/X11/Sessions/ at login by pressing [F1]." |
138 |
- elog |
139 |
- elog "The XSESSION environment variable is still supported as a default" |
140 |
- elog "if no session has been specified by the user." |
141 |
- elog |
142 |
- elog "If you want to use .xinitrc in the user's home directory for session" |
143 |
- elog "management instead, see README and xinitrc.sample in" |
144 |
- elog "/usr/share/doc/${PF} and change your login_cmd in /etc/slim.conf" |
145 |
- elog "accordingly." |
146 |
- elog |
147 |
- ewarn "Please note that slim supports consolekit directly. Please do not use any " |
148 |
- ewarn "old work-arounds (including calls to 'ck-launch-session' in xinitrc scripts)" |
149 |
- ewarn "and enable USE=\"consolekit\" instead." |
150 |
- ewarn |
151 |
- fi |
152 |
- if ! use pam; then |
153 |
- elog "You have merged ${PN} without USE=\"pam\", this will cause ${PN} to fall back to" |
154 |
- elog "the console when restarting your window manager. If this is not desired, then" |
155 |
- elog "please remerge ${PN} with USE=\"pam\"" |
156 |
- elog |
157 |
- fi |
158 |
-} |