Skip to content

Commit

Permalink
dev-cpp/antlr-cpp: use BDEPEND for app-arch/unzip
Browse files Browse the repository at this point in the history
Package-Manager: Portage-3.0.14-prefix, Repoman-3.0.2
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Apr 18, 2021
1 parent 27ebe41 commit 10e170e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dev-cpp/antlr-cpp/antlr-cpp-4.7.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ inherit cmake
DESCRIPTION="The ANTLR 4 C++ Runtime"
HOMEPAGE="https://www.antlr.org/"
SRC_URI="https://www.antlr.org/download/antlr4-cpp-runtime-${PV}-source.zip -> ${P}.zip"
S="${WORKDIR}"

LICENSE="BSD"
SLOT="4"
KEYWORDS="amd64 ~arm ~ppc x86"

DEPEND="app-arch/unzip"

S="${WORKDIR}"
BDEPEND="app-arch/unzip"

src_prepare() {
sed -i -e "s#DESTINATION lib#DESTINATION $(get_libdir)#" \
"${S}"/runtime/CMakeLists.txt || die "failed sed"

sed -i -e "s#share/doc/libantlr4#share/doc/${P}#g" \
sed -i -e "s#share/doc/libantlr4#share/doc/${PF}#g" \
"${S}"/CMakeLists.txt || die "failed sed"

cmake_src_prepare
Expand Down

0 comments on commit 10e170e

Please sign in to comment.