Gentoo Archives: gentoo-commits

From: "Jeremy Olexa (darkside)" <darkside@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-misc/slim: slim-1.3.1-r3.ebuild ChangeLog slim-1.3.1-r2.ebuild
Date: Fri, 26 Dec 2008 07:35:08
Message-Id: E1LG7Do-0002sG-TZ@stork.gentoo.org
1 darkside 08/12/26 07:35:00
2
3 Modified: ChangeLog
4 Added: slim-1.3.1-r3.ebuild
5 Removed: slim-1.3.1-r2.ebuild
6 Log:
7 Add USE=branding, if set the default slim theme will be our very own developer's (nightmorph@g.o) theme, yay. Also, make slim start as a daemon again, bug #252353
8 (Portage version: 2.2_rc18/cvs/Linux 2.6.27.10 x86_64)
9
10 Revision Changes Path
11 1.30 x11-misc/slim/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/slim/ChangeLog?rev=1.30&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/slim/ChangeLog?rev=1.30&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/slim/ChangeLog?r1=1.29&r2=1.30
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-misc/slim/ChangeLog,v
20 retrieving revision 1.29
21 retrieving revision 1.30
22 diff -u -r1.29 -r1.30
23 --- ChangeLog 23 Dec 2008 04:50:31 -0000 1.29
24 +++ ChangeLog 26 Dec 2008 07:35:00 -0000 1.30
25 @@ -1,6 +1,15 @@
26 # ChangeLog for x11-misc/slim
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/ChangeLog,v 1.29 2008/12/23 04:50:31 darkside Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/ChangeLog,v 1.30 2008/12/26 07:35:00 darkside Exp $
30 +
31 +*slim-1.3.1-r3 (26 Dec 2008)
32 +
33 + 26 Dec 2008; Jeremy Olexa <darkside@g.o>
34 + files/slim-1.3.1-config.diff, -slim-1.3.1-r2.ebuild,
35 + +slim-1.3.1-r3.ebuild:
36 + Add USE=branding, if set the default slim theme will be our very own
37 + developer's (nightmorph@g.o) theme, yay. Also, make slim start as a daemon
38 + again, bug #252353
39
40 *slim-1.3.1-r2 (23 Dec 2008)
41
42
43
44
45 1.1 x11-misc/slim/slim-1.3.1-r3.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/slim/slim-1.3.1-r3.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/slim/slim-1.3.1-r3.ebuild?rev=1.1&content-type=text/plain
49
50 Index: slim-1.3.1-r3.ebuild
51 ===================================================================
52 # Copyright 1999-2008 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/x11-misc/slim/slim-1.3.1-r3.ebuild,v 1.1 2008/12/26 07:35:00 darkside Exp $
55
56 EAPI=2
57
58 inherit toolchain-funcs pam eutils
59
60 DESCRIPTION="Simple Login Manager"
61 HOMEPAGE="http://slim.berlios.de"
62 SRC_URI="mirror://berlios/${PN}/${P}.tar.gz"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
67 IUSE="branding screenshot pam"
68
69 DEPEND="x11-proto/xproto
70 x11-libs/libXmu
71 x11-libs/libX11
72 x11-libs/libXpm
73 x11-libs/libXft
74 media-libs/libpng
75 media-libs/jpeg
76 pam? ( virtual/pam )"
77 RDEPEND="${DEPEND}
78 x11-apps/sessreg
79 screenshot? ( media-gfx/imagemagick )
80 branding? ( >=x11-themes/slim-themes-1.2.3a-r3 )"
81
82 src_prepare() {
83 # respect C[XX]FLAGS, fix crosscompile,
84 # fix linking order for --as-needed"
85 sed -i -e "s:^CXX=.*:CXX=$(tc-getCXX) ${CXXFLAGS}:" \
86 -e "s:^CC=.*:CC=$(tc-getCC) ${CFLAGS}:" \
87 -e "s:^MANDIR=.*:MANDIR=/usr/share/man:" \
88 -e "s:^\t\(.*\)\ \$(LDFLAGS)\ \(.*\):\t\1\ \2\ \$(LDFLAGS):g" \
89 -r -e "s:^LDFLAGS=(.*):LDFLAGS=\1 ${LDFLAGS}:" \
90 Makefile || die "sed failed in Makefile"
91 epatch "${FILESDIR}/${P}-config.diff"
92
93 if use branding; then
94 sed -i -e 's/ default/ slim-gentoo-simple/' slim.conf || die
95 fi
96
97 }
98
99 src_compile() {
100 if use pam ; then
101 emake USE_PAM=1 || die "emake failed."
102 else
103 emake || die "emake failed."
104 fi
105 }
106
107 src_install() {
108 if use pam ; then
109 emake USE_PAM=1 DESTDIR="${D}" install || die "emake install failed."
110 pamd_mimic_system slim auth account password session
111 else
112 emake DESTDIR="${D}" install || die "emake install failed."
113 fi
114
115 dodoc xinitrc.sample ChangeLog README TODO THEMES
116 }
117
118 pkg_postinst() {
119 elog
120 elog "The configuration file is located at /etc/slim.conf."
121 elog
122 elog "If you wish ${PN} to start automatically, set DISPLAYMANAGER=\"${PN}\" "
123 elog "in /etc/conf.d/xdm and run \"rc-update add xdm default\"."
124 elog "By default, ${PN} will use default XSESSION value set in /etc/rc.conf."
125 elog
126 elog "If you want to use .xinitrc in the user's home directory for session"
127 elog "management instead, see README and xinitrc.sample in"
128 elog "/usr/share/doc/${PF} and change your login_cmd in /etc/slim.conf"
129 elog "accordingly."
130 elog
131 if ! use pam; then
132 elog "You have merged ${PN} without USE=pam, this will cause ${PN} to fall back to"
133 elog "the console when restarting your window manager. If this is not"
134 elog "desired, then please remerge ${PN} with USE=pam"
135 fi
136 }