darwin.doc_cmds: init at 66

This commit is contained in:
Randy Eckenrode
2024-10-10 16:23:13 -04:00
parent e0cf96b02b
commit c640ed88a7
3 changed files with 68 additions and 0 deletions
@@ -0,0 +1,31 @@
# Build settings based on the upstream Xcode project.
# See: https://github.com/apple-oss-distributions/doc_cmds/blob/main/doc_cmds.xcodeproj/project.pbxproj
# Project settings
project('doc_cmds', 'c', version : '@version@')
add_global_arguments('-D__FBSDID=__RCSID', language : 'c')
# Dependencies
cc = meson.get_compiler('c')
zlib = dependency('zlib')
# Binaries
executable(
'makewhatis',
dependencies : [ zlib ],
install : true,
install_dir : get_option('libexecdir'),
sources : [ 'makewhatis/makewhatis.c' ],
)
install_man('makewhatis/makewhatis.8')
install_data(
'makewhatis/makewhatis.local.sh',
install_dir : get_option('libexecdir'),
install_mode : 'r-xr-xr-x',
rename : 'makewhatis.local'
)
install_man('makewhatis/makewhatis.local.8')
@@ -0,0 +1,33 @@
{
lib,
mkAppleDerivation,
pkg-config,
shell_cmds,
zlib,
}:
mkAppleDerivation {
releaseName = "doc_cmds";
outputs = [
"out"
"man"
];
xcodeHash = "sha256-7/ADsfXTKqQhgratg2Twj7JgfFV0/U9rEvtsnX+NFPw=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ zlib ];
postInstall = ''
HOST_PATH='${lib.getBin shell_cmds}/bin' patchShebangs --host "$out/libexec"
'';
meta = {
description = "makewhatis commands for Darwin";
license = [
lib.licenses.bsd2
lib.licenses.bsd3
];
};
}
@@ -39,6 +39,10 @@
"hash": "sha256-TebggzBS/HwEP3W2w2p+XvPDxsQtdTbtKEn9wik653Q=",
"version": "735"
},
"doc_cmds": {
"hash": "sha256-/Mf+RhaTU9O5i95gddZ2h9eDjLezwj3nP6FvryMF54E=",
"version": "66"
},
"file_cmds": {
"hash": "sha256-JYy6HwmultKeZtLfaysbsyLoWg+OaTh7eJu54JkJC0Q=",
"version": "264.1.1"