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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Dec 16 03:15:04 2014 UTC (4 years, 10 months ago) by heroxbd
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
xinitdir handling for Prefix.

(Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2014 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.4.ebuild,v 1.1 2014/10/23 13:39:48 chithanh Exp $
4
5 EAPI=5
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 ~arm-linux ~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}/${PN}-1.3.3-gentoo-customizations.patch"
32 )
33
34 src_configure() {
35 XORG_CONFIGURE_OPTIONS=(
36 --with-xinitdir="${EPREFIX}"/etc/X11/xinit
37 )
38 xorg-2_src_configure
39 }
40
41 src_install() {
42 xorg-2_src_install
43
44 exeinto /etc/X11
45 doexe "${FILESDIR}"/chooser.sh "${FILESDIR}"/startDM.sh
46 exeinto /etc/X11/Sessions
47 doexe "${FILESDIR}"/Xsession
48 exeinto /etc/X11/xinit
49 newexe "${FILESDIR}"/xserverrc.1 xserverrc
50 exeinto /etc/X11/xinit/xinitrc.d/
51 doexe "${FILESDIR}"/00-xhost
52
53 insinto /usr/share/xsessions
54 doins "${FILESDIR}"/Xsession.desktop
55 }
56
57 pkg_postinst() {
58 xorg-2_pkg_postinst
59 ewarn "If you use startx to start X instead of a login manager like gdm/kdm,"
60 ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or"
61 ewarn "any executable. When you run startx, it will run this as the login session."
62 ewarn "You can set this in a file in /etc/env.d/ for the entire system,"
63 ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)."
64 ewarn "Here's an example of setting it for the whole system:"
65 ewarn " echo XSESSION=\"Gnome\" > /etc/env.d/90xsession"
66 ewarn " env-update && source /etc/profile"
67 }

  ViewVC Help
Powered by ViewVC 1.1.20