You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-misc/openbox-menu/openbox-menu-0.5.0.ebuild

44 lines
1005 B

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/openbox-menu/openbox-menu-0.5.0.ebuild,v 1.1 2013/08/24 23:47:56 hasufell Exp $
EAPI=5
inherit eutils toolchain-funcs
DESCRIPTION="Another dynamic menu generator for Openbox"
HOMEPAGE="http://mimasgpc.free.fr/openbox-menu_en.html"
SRC_URI="http://mimarchlinux.googlecode.com/files/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+icons svg"
REQUIRED_USE="svg? ( icons )"
CDEPEND="dev-libs/glib:2
lxde-base/menu-cache
x11-libs/gtk+:2"
RDEPEND="${CDEPEND}
icons? ( x11-wm/openbox[imlib,svg?] )
!icons? ( x11-wm/openbox )"
DEPEND="${CDEPEND}
virtual/pkgconfig"
pkg_setup() {
if [[ ${MERGE_TYPE} != binary ]]; then
tc-export CC PKG_CONFIG
fi
}
src_prepare() {
epatch "${FILESDIR}"/${P}-build.patch
epatch_user
}
src_compile() {
emake \
$(usex icons "ICONS=1" "ICONS=0") \
$(usex svg "SVG_ICONS=1" "SVG_ICONS=0")
}