/[gentoo-x86]/x11-apps/xinit/xinit-1.0.8-r3.ebuild
Gentoo

Contents of /x11-apps/xinit/xinit-1.0.8-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Oct 1 12:23:43 2009 UTC (10 years ago) by remi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
x11-apps/xinit: drop old ebuilds
(Portage version: 2.2_rc42/cvs/Linux i686)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-apps/xinit/xinit-1.0.8-r3.ebuild,v 1.4 2009/05/05 08:24:54 fauli Exp $
4
5 # Must be before x-modular eclass is inherited
6 # This is enabled due to modified Makefile.am from the patches
7 SNAPSHOT="yes"
8
9 inherit x-modular pam
10
11 DESCRIPTION="X Window System initializer"
12
13 LICENSE="${LICENSE} GPL-2"
14 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
15 IUSE="hal minimal pam"
16
17 RDEPEND="x11-apps/xauth
18 x11-libs/libX11
19 hal? ( sys-auth/consolekit )"
20 DEPEND="${RDEPEND}"
21 PDEPEND="!minimal? ( x11-wm/twm
22 x11-apps/xclock
23 x11-apps/xrdb
24 x11-apps/xsm
25 x11-terms/xterm )"
26
27 PATCHES=( "${FILESDIR}"/nolisten-tcp-and-black-background.patch
28 "${FILESDIR}"/gentoo-startx-customization-1.0.8.patch
29 "${FILESDIR}"/xinit-1.0.4-console-kit.patch )
30
31 pkg_setup() {
32 CONFIGURE_OPTIONS="$(use_with hal consolekit)"
33 if use hal; then
34 if ! built_with_use sys-apps/dbus X ; then
35 eerror "You MUST build sys-apps/dbus with the X USE flag enabled."
36 die "You MUST build sys-apps/dbus with the X USE flag enabled."
37 fi
38 fi
39 }
40
41 src_unpack() {
42 x-modular_unpack_source
43 x-modular_patch_source
44
45 sed -i -e "s:^XINITDIR.*:XINITDIR = \$(sysconfdir)/X11/xinit:g" "${S}/Makefile.am"
46
47 x-modular_reconf_source
48 }
49
50 src_install() {
51 x-modular_src_install
52 exeinto /etc/X11
53 doexe "${FILESDIR}"/chooser.sh "${FILESDIR}"/startDM.sh || die
54 exeinto /etc/X11/Sessions
55 doexe "${FILESDIR}"/Xsession || die
56 exeinto /etc/X11/xinit
57 doexe "${FILESDIR}"/xinitrc || die
58 newinitd "${FILESDIR}"/xdm.initd-2 xdm
59 newconfd "${FILESDIR}"/xdm.confd-1 xdm
60 newpamd "${FILESDIR}"/xserver.pamd xserver
61 newenvd "${FILESDIR}"/xsession.env.d 90xsession
62 }
63
64 pkg_postinst() {
65 x-modular_pkg_postinst
66 ewarn "Your XSESSION variable (used by startx) is now set in /etc/env.d/90xsession"
67 }

  ViewVC Help
Powered by ViewVC 1.1.20