Skip to content

Commit

Permalink
dev-java/maven-bin: fixed qa and removed useless files in 3.6.2
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/734908
Closes: https://bugs.gentoo.org/734906
Closes: https://bugs.gentoo.org/704618
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Miroslav Šulc <[email protected]>
  • Loading branch information
fordfrog committed Sep 29, 2020
1 parent 54ee957 commit 66a75e6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dev-java/maven-bin/maven-bin-3.6.2.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
Expand Down Expand Up @@ -30,6 +30,11 @@ S="${WORKDIR}/${MY_P}"
MAVEN="${PN}-${SLOT}"
MAVEN_SHARE="/usr/share/${MAVEN}"

QA_FLAGS_IGNORED=(
"${MAVEN_SHARE}/lib/jansi-native/linux32/libjansi.so"
"${MAVEN_SHARE}/lib/jansi-native/linux64/libjansi.so"
)

# TODO:
# We should use jars from packages, instead of what is bundled.
src_install() {
Expand All @@ -48,6 +53,9 @@ src_install() {
# See bug #342901.
echo "CONFIG_PROTECT=\"${MAVEN_SHARE}/conf\"" > "${T}/25${MAVEN}" || die
doenvd "${T}/25${MAVEN}"

# remove broken useless files (bug #734906 and #704618)
rm -r "${ED}"/${MAVEN_SHARE}/lib/jansi-native/freebsd* || die "Failed to remove FreeBSD files"
}

pkg_postinst() {
Expand Down

0 comments on commit 66a75e6

Please sign in to comment.