blob: 3f66f3ff6d3fd115fc0d1133c459677e278671d7 (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
RESTRICT="mirror"
inherit cmake-utils eutils flag-o-matic multilib vcs-snapshot
DESCRIPTION="If a command is not found (bash/zsh), search ARCH database for packages with similar commands"
HOMEPAGE="https://github.com/metti/command-not-found/"
SRC_URI="http://github.com/metti/${PN}/tarball/v${PV} -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
COMMON="sys-libs/tdb"
DEPEND="${COMMON}"
RDEPEND="${COMMON}"
S="${WORKDIR}/${P}/src"
src_prepare() {
PREFIX=${EPREFIX}
filter-flags -fwhole-program
sed -i -e 1d -e '2i#! /bin/sh' cnf-cron.in || die
sed -i \
-e "s!usr/lib!usr/$(get_libdir)!g" \
-e "/^INSTALL.*cnf\.sh/,/^INSTALL/{/EXECUTE/d}" \
CMakeLists.txt || die
sed -i -e "s/function[[:space:]]*\([^[:space:](]*\)[[:space:]]*(/\1(/" \
cnf.sh || die
epatch_user
}
src_install() {
keepdir /var/lib/cnf
cmake-utils_src_install
}
|