mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
app-arch/unar: update objc check
Drop pkg_pretend. Use positive USE flag checks. Closes: https://bugs.gentoo.org/933814 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
@@ -35,22 +35,18 @@ PATCHES=( "${FILESDIR}"/${P}-Wint-conversion.patch )
|
||||
|
||||
check_objc_toolchain() {
|
||||
if tc-is-gcc; then
|
||||
has_version 'sys-devel/gcc[-objc]' &&
|
||||
has_version 'sys-devel/gcc[objc]' ||
|
||||
die "GCC requires sys-devel/gcc with USE=objc"
|
||||
elif tc-is-clang; then
|
||||
has_version 'gnustep-base/gnustep-make[-libobjc2]' &&
|
||||
has_version 'gnustep-base/gnustep-make[libobjc2]' ||
|
||||
die "Clang requires gnustep-base/gnustep-make with USE=libobjc2"
|
||||
else
|
||||
die "${PN} can only be build using GCC or Clang"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && check_objc_toolchain
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && check_objc_toolchain
|
||||
[[ ${MERGE_TYPE} == binary ]] || check_objc_toolchain
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
|
||||
Reference in New Issue
Block a user