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

Contents of /x11-apps/xinit/xinit-1.3.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Wed Dec 5 11:19:29 2012 UTC (19 months, 2 weeks ago) by grobian
Branch: MAIN
Changes since 1.10: +2 -2 lines
Marked ~x86-linux, bug #444950

(Portage version: 2.2.01.21418-prefix/cvs/Darwin i386, signed Manifest commit with key 0x5F75F607C5C74E89)

1 # Copyright 1999-2012 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.3.2.ebuild,v 1.10 2012/11/27 08:02:10 grobian Exp $
4
5 EAPI=4
6
7 inherit xorg-2
8
9 DESCRIPTION="X Window System initializer"
10
11 LICENSE="${LICENSE} GPL-2"
12 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-linux"
13 IUSE="+minimal"
14
15 RDEPEND="
16 !<x11-base/xorg-server-1.8.0
17 x11-apps/xauth
18 x11-libs/libX11
19 "
20 DEPEND="${RDEPEND}"
21 PDEPEND="x11-apps/xrdb
22 !minimal? (
23 x11-apps/xclock
24 x11-apps/xsm
25 x11-terms/xterm
26 x11-wm/twm
27 )
28 "
29
30 PATCHES=(
31 "${FILESDIR}/0001-Gentoo-customizations.patch"
32 )
33
34 pkg_setup() {
35 xorg-2_pkg_setup
36
37 XORG_CONFIGURE_OPTIONS=(
38 --with-xinitdir="${EPREFIX}"/etc/X11/xinit
39 )
40 }
41
42 src_install() {
43 xorg-2_src_install
44
45 exeinto /etc/X11
46 doexe "${FILESDIR}"/chooser.sh "${FILESDIR}"/startDM.sh
47 exeinto /etc/X11/Sessions
48 doexe "${FILESDIR}"/Xsession
49 exeinto /etc/X11/xinit
50 doexe "${FILESDIR}"/xserverrc
51 exeinto /etc/X11/xinit/xinitrc.d/
52 doexe "${FILESDIR}/00-xhost"
53
54 insinto /usr/share/xsessions
55 doins "${FILESDIR}/Xsession.desktop"
56 }
57
58 pkg_postinst() {
59 xorg-2_pkg_postinst
60 ewarn "If you use startx to start X instead of a login manager like gdm/kdm,"
61 ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or"
62 ewarn "any executable. When you run startx, it will run this as the login session."
63 ewarn "You can set this in a file in /etc/env.d/ for the entire system,"
64 ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)."
65 ewarn "Here's an example of setting it for the whole system:"
66 ewarn " echo XSESSION=\"Gnome\" > /etc/env.d/90xsession"
67 ewarn " env-update && source /etc/profile"
68 }

  ViewVC Help
Powered by ViewVC 1.1.20