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-shells/pdmenu/pdmenu-1.2.89.ebuild

54 lines
1.2 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/pdmenu/pdmenu-1.2.89.ebuild,v 1.15 2012/07/08 15:26:09 armin76 Exp $
DESCRIPTION="A simple console menu program"
HOMEPAGE="http://joeyh.name/code/pdmenu/"
SRC_URI="mirror://debian/pool/main/p/pdmenu/pdmenu_${PV}.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 )"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${PN}
RESTRICT="test"
src_compile() {
econf \
$(use_with gpm) \
$(use_enable nls) \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
dodoc doc/ANNOUNCE doc/BUGS doc/TODO
if use examples; then
insinto /usr/share/doc/${PF}
doins -r examples
fi
mv doc/pdmenu.man doc/pdmenu.1
mv doc/pdmenurc.man doc/pdmenurc.5
doman doc/pdmenu.1 doc/pdmenurc.5
dobin pdmenu
}
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!"
}