blob: 6792179d0a092151b404ca2292b987e6529d0cd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/menumaker/menumaker-0.99.7.ebuild,v 1.7 2012/02/05 02:03:35 floppym Exp $
EAPI="3"
PYTHON_DEPEND="2"
inherit multilib python
DESCRIPTION="Utility that scans through the system and generates a menu of installed programs"
HOMEPAGE="http://menumaker.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~ppc x86 ~x86-fbsd"
IUSE="doc"
DEPEND="doc? ( sys-apps/texinfo )"
RDEPEND=""
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_configure() {
econf PYTHON="$(PYTHON)"
}
src_compile() {
emake -j1 || die "emake failed"
if use doc; then
cd doc
emake html || die "Generation of documentation failed"
fi
}
src_install() {
emake -j1 DESTDIR="${D}" install || die "emake install failed"
python_need_rebuild
find "${D}" "(" -name "*.pyc" -o -name "*.pyo" ")" -print0 | xargs -0 rm -fr
dodoc ChangeLog README NEWS AUTHORS INSTALL
if use doc; then
dohtml doc/mmaker.html/*
fi
}
pkg_postinst() {
python_mod_optimize /usr/$(get_libdir)/menumaker
}
pkg_postrm() {
python_mod_cleanup /usr/$(get_libdir)/menumaker
}
|