/[gentoo-x86]/x11-wm/notion/notion-9999.ebuild
Gentoo

Contents of /x11-wm/notion/notion-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat May 11 07:55:07 2013 UTC (13 days, 22 hours ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -3 lines
Fix inherit

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

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-wm/notion/notion-9999.ebuild,v 1.5 2012/10/08 12:34:30 xmw Exp $
4
5 EAPI="4"
6
7 EGIT_REPO_URI="git://notion.git.sourceforge.net/gitroot/notion/notion"
8 EGIT_HAS_SUBMODULES="1"
9
10 inherit eutils git-2 toolchain-funcs multilib
11
12 DESCRIPTION="Notion is a tiling, tabbed window manager for the X window system"
13 HOMEPAGE="http://notion.sourceforge.net"
14
15 LICENSE="LGPL-2.1"
16 SLOT="0"
17 KEYWORDS=""
18 IUSE="nls xinerama +xrandr"
19
20 RDEPEND="dev-lang/lua
21 x11-libs/libSM
22 x11-libs/libX11
23 x11-libs/libXext
24 nls? ( sys-devel/gettext )
25 xinerama? ( x11-libs/libXinerama )
26 xrandr? ( x11-libs/libXrandr )"
27
28 DEPEND="${RDEPEND}
29 virtual/pkgconfig"
30
31 src_prepare() {
32 sed -e "/^CFLAGS=/s:=:+=:" \
33 -e "/^CFLAGS/{s:-Os:: ; s:-g::}" \
34 -e "/^LDFLAGS=/{s:=:+=: ; s:-Wl,--as-needed::}" \
35 -e "/^CC=/s:=:?=:" \
36 -e "s:^\(PREFIX=\).*$:\1${ROOT}usr:" \
37 -e "s:^\(ETCDIR=\).*$:\1${ROOT}etc/notion:" \
38 -e "s:^\(LIBDIR=\).*:\1\$(PREFIX)/$(get_libdir):" \
39 -e "s:^\(DOCDIR=\).*:\1\$(PREFIX)/share/doc/${PF}:" \
40 -e "s:^\(LUA_DIR=\).*$:\1\$(PREFIX)/usr:" \
41 -e "s:^\(VARDIR=\).*$:\1${ROOT}var/cache/${PN}:" \
42 -e "s:^\(X11_PREFIX=\).*:\1\$(PREFIX)/usr:" \
43 -i system-autodetect.mk || die
44 export STRIPPROG=true
45
46 use nls || export DEFINES=" -DCF_NO_LOCALE -DCF_NO_GETTEXT"
47
48 if ! use xinerama ; then
49 sed -e 's/mod_xinerama//g' -i modulelist.mk || die
50 fi
51
52 if ! use xrandr ; then
53 sed -e 's/mod_xrandr//g' -i modulelist.mk || die
54 fi
55
56 tc-export CC
57 }
58
59 src_install() {
60 emake DESTDIR="${D}" install
61
62 exeinto /etc/X11/Sessions
63 doexe "${FILESDIR}"/notion
64
65 insinto /usr/share/xsessions
66 doins "${FILESDIR}"/notion.desktop
67 }
68
69 pkg_postinst() {
70 elog "If you want notion to have an ability to view a file based on its"
71 elog "guessed MIME type you need 'run-mailcap' program in your system."
72 }

  ViewVC Help
Powered by ViewVC 1.1.13