gentoo-ebuilds/app-misc/detox/detox-1.4.2-r1.ebuild
Sam James 834868ab02
app-misc/detox: sys-devel/bison -> app-alternatives/yacc
All of these will be using app-alternatives/yacc anyway as they're not unsetting

YACC or LEX, so make the dep reflect reality.

(Included both YACC and LEX out of conservatism.)

Signed-off-by: Sam James <sam@gentoo.org>
2024-01-08 12:21:39 +00:00

44 lines
808 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
MY_P="${PN}-${PV/_/-}"
DESCRIPTION="Safely remove spaces and strange characters from filenames"
HOMEPAGE="http://detox.sourceforge.net/ https://github.com/dharple/detox"
SRC_URI="https://github.com/dharple/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~hppa ~mips ppc x86 ~amd64-linux ~x86-linux"
IUSE=""
S="${WORKDIR}"/${MY_P}
RDEPEND="
!dev-python/detox"
DEPEND="${RDEPEND}"
BDEPEND="
app-alternatives/lex
app-alternatives/yacc
"
src_prepare() {
default
sed \
-e '/detoxrc.sample/d' \
-i Makefile.am || die
eautoreconf
}
src_install() {
default
# bug #811945
insinto /etc
newins etc/detoxrc.sample detoxrc
}