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/obconf/obconf-2.0.3_p20111019.ebuild

52 lines
1.1 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=2
inherit autotools fdo-mime eutils
DESCRIPTION="ObConf is a tool for configuring the Openbox window manager"
HOMEPAGE="http://openbox.org/wiki/ObConf:About"
SRC_URI="https://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ppc ppc64 sparc x86 ~x86-fbsd ~arm-linux ~x86-linux"
IUSE="nls"
RDEPEND="gnome-base/libglade:2.0
x11-libs/gtk+:2
x11-libs/startup-notification
>=x11-wm/openbox-3.5.0_p20111019"
DEPEND="${RDEPEND}
virtual/pkgconfig
nls? ( sys-devel/gettext )"
S=${WORKDIR}
src_prepare() {
epatch "${FILESDIR}"/${P}-desktopfile.patch
eautopoint
eautoreconf
}
src_configure() {
econf \
$(use_enable nls)
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc AUTHORS CHANGELOG README || die "dodoc failed"
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}