diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-12 13:08:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-12 13:08:05 +0000 |
commit | 4c4e8e9bf6d1ef49be600d77fcbbd7be716aece7 (patch) | |
tree | c854c61724b1a5430091a4512ef763d26efe5938 /app-arch/unar/unar-1.10.8.ebuild | |
parent | 669bfefc6b9cafab1e89f098b21cf0f89c12d995 (diff) |
gentoo auto-resync : 12:01:2024 - 13:08:05
Diffstat (limited to 'app-arch/unar/unar-1.10.8.ebuild')
-rw-r--r-- | app-arch/unar/unar-1.10.8.ebuild | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app-arch/unar/unar-1.10.8.ebuild b/app-arch/unar/unar-1.10.8.ebuild index 8192fdaf82b2..2470dc335445 100644 --- a/app-arch/unar/unar-1.10.8.ebuild +++ b/app-arch/unar/unar-1.10.8.ebuild @@ -25,9 +25,34 @@ RDEPEND=" DEPEND=" ${RDEPEND} gnustep-base/gnustep-make[native-exceptions]" +BDEPEND=" + || ( + sys-devel/gcc[objc] + gnustep-base/gnustep-make[libobjc2] + )" PATCHES=( "${FILESDIR}"/${P}-Wint-conversion.patch ) +check_objc_toolchain() { + if tc-is-gcc; then + 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]' && + 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 +} + src_prepare() { default # avoid jobserver warning "make[1]: warning: jobserver unavailable: using -j1" |