Skip to content

Instantly share code, notes, and snippets.

@matsuu
Created April 2, 2009 16:42
Show Gist options
  • Save matsuu/89277 to your computer and use it in GitHub Desktop.
Save matsuu/89277 to your computer and use it in GitHub Desktop.
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit git multilib toolchain-funcs
DESCRIPTION="A better tiling and dynamic window manager"
HOMEPAGE="http://code.stapelberg.de/git/i3"
#SRC_URI="http://code.stapelberg.de/git/i3/snapshot/${P}.tar.bz2"
SRC_URI=""
EGIT_REPO_URI="git://code.stapelberg.de/i3"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
#DEPEND=">=x11-proto/xcb-proto-1.3
# >=x11-libs/libxcb-1.1.93
# >=x11-libs/xcb-util-0.3.3
# doc? (
# >=app-text/asciidoc-8.3
# app-text/xmlto
# app-text/docbook-xml-dtd
# )
# x11-libs/libX11"
DEPEND="x11-proto/xcb-proto
x11-libs/libxcb
x11-libs/xcb-util
x11-libs/libX11"
RDEPEND="${DEPEND}"
src_unpack() {
git_src_unpack
sed -i \
-e "s:/usr/local/include:/usr/include:" \
-e "s:/usr/local/lib:/usr/$(get_libdir):" \
-e "/-O2/d" \
Makefile || die
}
src_compile() {
emake CC="$(tc-getCC)" || die
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc GOALS RFC TODO docs/hacking-howto man/i3.man
dohtml -r website/*
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment