blob: de614766d82a6ff9108b146d5fdfda6b7c03a27d (
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
60
61
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="A simple console menu program"
HOMEPAGE="http://joeyh.name/code/pdmenu/"
SRC_URI="https://dev.gentoo.org/~bkohler/dist/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~mips x86"
IUSE="nls gpm examples"
DEPEND="
sys-libs/slang
gpm? ( sys-libs/gpm )
nls? ( sys-devel/gettext )"
RESTRICT="test"
PATCHES=(
"${FILESDIR}"/${PN}-impl-dec.patch
)
DOCS=( doc/ANNOUNCE doc/BUGS doc/TODO )
src_prepare() {
default
sed \
-e 's:\(-o pdmenu\):$(LDFLAGS) \1:g' \
-i Makefile || die
}
src_configure() {
CC=$(tc-getCC) econf \
$(use_with gpm) \
$(use_enable nls)
}
src_compile() {
emake CC=$(tc-getCC)
}
src_install() {
dobin "${PN}"
use examples && dodoc -r examples
mv "doc/${PN}.man" "doc/${PN}.1" || die
mv "doc/${PN}rc.man" "doc/${PN}rc.5" || die
doman "doc/${PN}.1" "doc/${PN}rc.5"
einstalldocs
}
pkg_postinst() {
ewarn "Note this part from man page: Security warning! Any exec command"
ewarn "that uses the 'edit' flag will be a security hole. The user need"
ewarn "only to enter text with a ';' in it, and they can run an"
ewarn "arbitrary command after the semicolon!"
}
|