mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
app-shells/pdmenu: fix build with gcc15
Closes: https://bugs.gentoo.org/963348 Closes: https://bugs.gentoo.org/944458 Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Part-of: https://github.com/gentoo/gentoo/pull/43945 Closes: https://github.com/gentoo/gentoo/pull/43945 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
5806c577a2
commit
e0a13da5c4
64
app-shells/pdmenu/pdmenu-1.3.6-r2.ebuild
Normal file
64
app-shells/pdmenu/pdmenu-1.3.6-r2.ebuild
Normal file
@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="A simple console menu program"
|
||||
HOMEPAGE="https://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() {
|
||||
# https://bugs.gentoo.org/963348
|
||||
append-cflags -std=gnu17
|
||||
|
||||
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!"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user