/textproc/ripgrep/Makefile

https://github.com/openbsd/ports · Makefile · 107 lines · 89 code · 14 blank · 4 comment · 0 complexity · ebe003edc598d93b494dc22782df2b2b MD5 · raw file

  1. # $OpenBSD: Makefile,v 1.19 2020/05/27 09:38:34 paco Exp $
  2. COMMENT = line oriented search tool using Rust's regex library #'
  3. GH_ACCOUNT = BurntSushi
  4. GH_PROJECT = ripgrep
  5. GH_TAGNAME = 12.1.0
  6. CATEGORIES = textproc sysutils
  7. # Unlicense/MIT
  8. PERMIT_PACKAGE = Yes
  9. WANTLIB += c c++abi pthread
  10. # as devel/cargo MODULES adds DISTFILES, GH_* didn't
  11. DISTFILES += ${DISTNAME}${EXTRACT_SUFX}
  12. MODULES = devel/cargo
  13. BUILD_DEPENDS = textproc/asciidoc
  14. MODCARGO_CRATES += aho-corasick 0.7.10 # Unlicense/MIT
  15. MODCARGO_CRATES += atty 0.2.14 # MIT
  16. MODCARGO_CRATES += autocfg 1.0.0 # Apache-2.0 OR MIT
  17. MODCARGO_CRATES += base64 0.12.1 # MIT/Apache-2.0
  18. MODCARGO_CRATES += bitflags 1.2.1 # MIT/Apache-2.0
  19. MODCARGO_CRATES += bstr 0.2.12 # MIT OR Apache-2.0
  20. MODCARGO_CRATES += bytecount 0.6.0 # Apache-2.0/MIT
  21. MODCARGO_CRATES += byteorder 1.3.4 # Unlicense OR MIT
  22. MODCARGO_CRATES += cc 1.0.52 # MIT/Apache-2.0
  23. MODCARGO_CRATES += cfg-if 0.1.10 # MIT/Apache-2.0
  24. MODCARGO_CRATES += clap 2.33.0 # MIT
  25. MODCARGO_CRATES += crossbeam-channel 0.4.2 # MIT/Apache-2.0 AND BSD-2-Clause
  26. MODCARGO_CRATES += crossbeam-utils 0.7.2 # MIT/Apache-2.0
  27. MODCARGO_CRATES += encoding_rs 0.8.22 # MIT/Apache-2.0
  28. MODCARGO_CRATES += encoding_rs_io 0.1.7 # MIT OR Apache-2.0
  29. MODCARGO_CRATES += fnv 1.0.6 # Apache-2.0 / MIT
  30. MODCARGO_CRATES += fs_extra 1.1.0 # MIT
  31. MODCARGO_CRATES += glob 0.3.0 # MIT/Apache-2.0
  32. MODCARGO_CRATES += globset 0.4.5 # Unlicense/MIT
  33. MODCARGO_CRATES += grep 0.2.6 # Unlicense/MIT
  34. MODCARGO_CRATES += grep-cli 0.1.4 # Unlicense/MIT
  35. MODCARGO_CRATES += grep-matcher 0.1.4 # Unlicense/MIT
  36. MODCARGO_CRATES += grep-pcre2 0.1.4 # Unlicense/MIT
  37. MODCARGO_CRATES += grep-printer 0.1.5 # Unlicense/MIT
  38. MODCARGO_CRATES += grep-regex 0.1.8 # Unlicense/MIT
  39. MODCARGO_CRATES += grep-searcher 0.1.7 # Unlicense/MIT
  40. MODCARGO_CRATES += hermit-abi 0.1.12 # MIT/Apache-2.0
  41. MODCARGO_CRATES += ignore 0.4.15 # Unlicense/MIT
  42. MODCARGO_CRATES += itoa 0.4.5 # MIT OR Apache-2.0
  43. MODCARGO_CRATES += jemalloc-sys 0.3.2 # MIT/Apache-2.0
  44. MODCARGO_CRATES += jemallocator 0.3.2 # MIT/Apache-2.0
  45. MODCARGO_CRATES += lazy_static 1.4.0 # MIT/Apache-2.0
  46. MODCARGO_CRATES += libc 0.2.69 # MIT OR Apache-2.0
  47. MODCARGO_CRATES += log 0.4.8 # MIT OR Apache-2.0
  48. MODCARGO_CRATES += maybe-uninit 2.0.0 # Apache-2.0 OR MIT
  49. MODCARGO_CRATES += memchr 2.3.3 # Unlicense/MIT
  50. MODCARGO_CRATES += memmap 0.7.0 # MIT/Apache-2.0
  51. MODCARGO_CRATES += num_cpus 1.13.0 # MIT/Apache-2.0
  52. MODCARGO_CRATES += packed_simd 0.3.3 # MIT/Apache-2.0
  53. MODCARGO_CRATES += pcre2 0.2.3 # Unlicense/MIT
  54. MODCARGO_CRATES += pcre2-sys 0.2.2 # Unlicense/MIT
  55. MODCARGO_CRATES += pkg-config 0.3.17 # MIT/Apache-2.0
  56. MODCARGO_CRATES += proc-macro2 1.0.12 # MIT OR Apache-2.0
  57. MODCARGO_CRATES += quote 1.0.4 # MIT OR Apache-2.0
  58. MODCARGO_CRATES += regex 1.3.7 # MIT OR Apache-2.0
  59. MODCARGO_CRATES += regex-automata 0.1.9 # Unlicense/MIT
  60. MODCARGO_CRATES += regex-syntax 0.6.17 # MIT/Apache-2.0
  61. MODCARGO_CRATES += ryu 1.0.4 # Apache-2.0 OR BSL-1.0
  62. MODCARGO_CRATES += same-file 1.0.6 # Unlicense/MIT
  63. MODCARGO_CRATES += serde 1.0.107 # MIT OR Apache-2.0
  64. MODCARGO_CRATES += serde_derive 1.0.107 # MIT OR Apache-2.0
  65. MODCARGO_CRATES += serde_json 1.0.52 # MIT OR Apache-2.0
  66. MODCARGO_CRATES += strsim 0.8.0 # MIT
  67. MODCARGO_CRATES += syn 1.0.19 # MIT OR Apache-2.0
  68. MODCARGO_CRATES += termcolor 1.1.0 # Unlicense OR MIT
  69. MODCARGO_CRATES += textwrap 0.11.0 # MIT
  70. MODCARGO_CRATES += thread_local 1.0.1 # Apache-2.0/MIT
  71. MODCARGO_CRATES += unicode-width 0.1.7 # MIT/Apache-2.0
  72. MODCARGO_CRATES += unicode-xid 0.2.0 # MIT OR Apache-2.0
  73. MODCARGO_CRATES += walkdir 2.3.1 # Unlicense/MIT
  74. MODCARGO_CRATES += winapi 0.3.8 # MIT/Apache-2.0
  75. MODCARGO_CRATES += winapi-i686-pc-windows-gnu 0.4.0 # MIT/Apache-2.0
  76. MODCARGO_CRATES += winapi-util 0.1.5 # Unlicense/MIT
  77. MODCARGO_CRATES += winapi-x86_64-pc-windows-gnu 0.4.0 # MIT/Apache-2.0
  78. CONFIGURE_STYLE = cargo
  79. PATCHORIG = .openbsd.orig
  80. SEPARATE_BUILD = Yes
  81. MODCARGO_RUSTFLAGS = -C debuginfo=0
  82. RELEASE_DIR = ${MODCARGO_TARGET_DIR}/release
  83. OUT_DIR = ${RELEASE_DIR}/build/ripgrep-*/out
  84. # fish completion excluded as it is shipped with shells/fish
  85. do-install:
  86. ${INSTALL_PROGRAM} ${RELEASE_DIR}/rg ${PREFIX}/bin/
  87. ${INSTALL_MAN} ${OUT_DIR}/rg.1 ${PREFIX}/man/man1/
  88. ${INSTALL_DATA_DIR} ${PREFIX}/share/bash-completion/completions
  89. ${INSTALL_DATA} ${OUT_DIR}/rg.bash \
  90. ${PREFIX}/share/bash-completion/completions/rg
  91. ${INSTALL_DATA_DIR} ${PREFIX}/share/zsh/site-functions
  92. ${INSTALL_DATA} ${OUT_DIR}/_rg.ps1 ${PREFIX}/share/zsh/site-functions/_rg
  93. .include <bsd.port.mk>