1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit toolchain-funcs
9 DESCRIPTION="A simple console menu program"
10 HOMEPAGE="http://joeyh.name/code/pdmenu/"
11 SRC_URI="mirror://debian/pool/main/p/${PN}/pdmenu_${PV}.tar.gz"
15 KEYWORDS="~amd64 ~mips ~x86"
16 IUSE="nls gpm examples"
21 nls? ( sys-devel/gettext )"
28 "${FILESDIR}"/${PN}-impl-dec.patch
31 DOCS=( doc/ANNOUNCE doc/BUGS doc/TODO )
36 -e 's:\(-o pdmenu\):$(LDFLAGS) \1:g' \
41 CC=$(tc-getCC) econf \
52 use examples && dodoc -r examples
53 mv "doc/${PN}.man" "doc/${PN}.1" || die
54 mv "doc/${PN}rc.man" "doc/${PN}rc.5" || die
55 doman "doc/${PN}.1" "doc/${PN}rc.5"
60 ewarn "Note this part from man page: Security warning! Any exec command"
61 ewarn "that uses the 'edit' flag will be a security hole. The user need"
62 ewarn "only to enter text with a ';' in it, and they can run an"
63 ewarn "arbitrary command after the semicolon!"