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/app-portage/elogv/elogv-0.7.6.1.ebuild

76 lines
2.0 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-portage/elogv/elogv-0.7.6.1.ebuild,v 1.1 2013/05/09 01:09:20 sping Exp $
EAPI="3"
PYTHON_DEPEND="2"
PYTHON_USE_WITH="ncurses"
inherit distutils eutils prefix
DESCRIPTION="Curses based utility to parse the contents of elogs created by Portage"
HOMEPAGE="https://github.com/gentoo/elogv"
SRC_URI="https://github.com/gentoo/${PN}/archive/${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE="linguas_de linguas_es linguas_it linguas_pl"
DEPEND=""
RDEPEND=""
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
distutils_src_prepare
}
src_install() {
distutils_src_install
dodoc README || die
# Remove unused man pages/LC_MESSAGES according to the linguas flags
if ! use linguas_de ; then
rm -rf "${ED}"/usr/share/locale/de
rm -rf "${ED}"/usr/share/man/de
fi
if ! use linguas_es ; then
rm -rf "${ED}"/usr/share/locale/es
rm -rf "${ED}"/usr/share/man/es
fi
if ! use linguas_it ; then
rm -rf "${ED}"/usr/share/locale/it
rm -rf "${ED}"/usr/share/man/it
fi
if ! use linguas_pl ; then
rm -rf "${ED}"/usr/share/locale/pl
rm -rf "${ED}"/usr/share/man/pl
fi
}
pkg_postinst() {
distutils_pkg_postinst
elog
elog "In order to use this software, you need to activate"
elog "Portage's elog features. Required is"
elog " PORTAGE_ELOG_SYSTEM=\"save\" "
elog "and at least one out of "
elog " PORTAGE_ELOG_CLASSES=\"warn error info log qa\""
elog "More information on the elog system can be found"
elog "in ${EPREFIX}/etc/make.conf.example"
elog
elog "To operate properly this software needs the directory"
elog "${PORT_LOGDIR:-${EPREFIX}/var/log/portage}/elog created, belonging to group portage."
elog "To start the software as a user, add yourself to the portage"
elog "group."
elog
}