diff options
Diffstat (limited to 'x11-wm/awesome/awesome-3.0_rc4.ebuild')
-rw-r--r-- | x11-wm/awesome/awesome-3.0_rc4.ebuild | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/x11-wm/awesome/awesome-3.0_rc4.ebuild b/x11-wm/awesome/awesome-3.0_rc4.ebuild new file mode 100644 index 000000000000..d27abeaaf874 --- /dev/null +++ b/x11-wm/awesome/awesome-3.0_rc4.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-wm/awesome/awesome-3.0_rc4.ebuild,v 1.1 2008/08/22 15:49:24 matsuu Exp $ + +EAPI=1 + +inherit cmake-utils eutils + +MY_P="${P/_rc/-rc}" +DESCRIPTION="A dynamic floating and tiling window manager" +HOMEPAGE="http://awesome.naquadah.org/" +SRC_URI="http://awesome.naquadah.org/download/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="dbus doc +imlib" + +RDEPEND=">=x11-libs/libxcb-1.1 + x11-libs/libX11 + >=x11-libs/xcb-util-0.2.1 + x11-libs/cairo + >=dev-libs/glib-2 + dev-libs/libev + >=dev-lang/lua-5.1 + x11-libs/pango + dbus? ( >=sys-apps/dbus-1 ) + imlib? ( media-libs/imlib2 ) + !imlib? ( >=x11-libs/gtk+-2.2 )" + +DEPEND="${RDEPEND} + dev-util/pkgconfig + x11-proto/xcb-proto + >=dev-util/cmake-2.6 + app-text/asciidoc + app-text/xmlto + doc? ( + app-doc/doxygen + media-gfx/graphviz + dev-util/luadoc + )" + +RDEPEND="${RDEPEND} + app-shells/bash" + +S="${WORKDIR}/${MY_P}" + +DOCS="AUTHORS BUGS README" + +pkg_setup() { + if ! built_with_use --missing false x11-libs/cairo xcb; then + eerror "This package you need the useflag xcb enabled on x11-libs/cairo." + eerror "Please emerge x11-libs/cairo again with the xcb useflag" + eerror "enabled." + die "Missing xcb useflag on x11-libs/cairo." + fi +} + +src_compile() { + local myargs="all" + + mycmakeargs="${mycmakeargs} + $(cmake-utils_use_with imlib IMLIB2) + $(cmake-utils_use_with dbus DBUS)" + + if use doc ; then + mycmakeargs="${mycmakeargs} -DGENERATE_LUADOC=ON" + myargs="${myargs} doc" + else + mycmakeargs="${mycmakeargs} -DGENERATE_LUADOC=OFF" + fi + cmake-utils_src_compile ${myargs} +} + +src_install() { + cmake-utils_src_install + + if use doc ; then + dohtml -r "${WORKDIR}"/${PN}_build/doc/html/* || die + mv "${D}"/usr/share/doc/${PN}/luadoc "${D}"/usr/share/doc/${PF}/html/luadoc || die + fi + rm -rf "${D}"/usr/share/doc/${PN} || die + + exeinto /etc/X11/Sessions + newexe "${FILESDIR}"/${PN}-session ${PN} || die +} |