darwin.patch_cmds: remove code for macOS < 11
This commit is contained in:
@@ -8,7 +8,6 @@ project('patch_cmds', 'c', version : '@version@')
|
||||
# Dependencies
|
||||
cc = meson.get_compiler('c')
|
||||
|
||||
libbsd = dependency('libbsd-overlay', required : false)
|
||||
libutil = cc.find_library('util')
|
||||
|
||||
|
||||
@@ -30,7 +29,6 @@ install_man('cmp/cmp.1')
|
||||
|
||||
executable(
|
||||
'diff',
|
||||
dependencies : [ libbsd ],
|
||||
include_directories : 'diff',
|
||||
install : true,
|
||||
sources : [
|
||||
@@ -79,7 +77,6 @@ install_man('diffstat/diffstat.1')
|
||||
|
||||
executable(
|
||||
'patch',
|
||||
dependencies : [ libbsd ],
|
||||
include_directories : 'patch',
|
||||
install : true,
|
||||
sources : [
|
||||
@@ -96,7 +93,6 @@ install_man('patch/patch.1')
|
||||
|
||||
executable(
|
||||
'sdiff',
|
||||
dependencies : [ libbsd ],
|
||||
include_directories : 'sdiff',
|
||||
install : true,
|
||||
sources : [
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
apple-sdk,
|
||||
libbsd,
|
||||
libutil,
|
||||
mkAppleDerivation,
|
||||
pkg-config,
|
||||
@@ -19,10 +18,7 @@ mkAppleDerivation {
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs =
|
||||
[ libutil ]
|
||||
# diff, patch, and sdiff need `strtonum`, which requires the 11.0 SDK.
|
||||
++ lib.optionals (lib.versionOlder (lib.getVersion apple-sdk) "11.0") [ libbsd ];
|
||||
buildInputs = [ libutil ];
|
||||
|
||||
meta = {
|
||||
description = "BSD patch commands for Darwin";
|
||||
|
||||
Reference in New Issue
Block a user