PageRenderTime 74ms CodeModel.GetById 40ms RepoModel.GetById 0ms app.codeStats 0ms

/textproc/ripgrep/Makefile

https://github.com/freebsd/freebsd-ports
Makefile | 135 lines | 117 code | 17 blank | 1 comment | 1 complexity | d6a5809823b32d8eca1d5334cb1df3bf MD5 | raw file
  1. # Created by: Petteri Valkonen <petteri.valkonen@iki.fi>
  2. PORTNAME= ripgrep
  3. DISTVERSION= 13.0.0
  4. PORTREVISION= 12
  5. CATEGORIES= textproc
  6. MAINTAINER= petteri.valkonen@iki.fi
  7. COMMENT= Command line search tool
  8. LICENSE= MIT UNLICENSE
  9. LICENSE_COMB= dual
  10. LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
  11. LICENSE_FILE_UNLICENSE= ${WRKSRC}/UNLICENSE
  12. BUILD_DEPENDS= asciidoctor:textproc/rubygem-asciidoctor
  13. USES= cargo cpe
  14. CPE_VENDOR= ${PORTNAME}_project
  15. USE_GITHUB= yes
  16. GH_ACCOUNT= BurntSushi
  17. CARGO_CRATES= aho-corasick-0.7.18 \
  18. atty-0.2.14 \
  19. base64-0.13.0 \
  20. bitflags-1.2.1 \
  21. bstr-0.2.16 \
  22. bytecount-0.6.2 \
  23. cc-1.0.68 \
  24. cfg-if-0.1.10 \
  25. cfg-if-1.0.0 \
  26. clap-2.33.3 \
  27. crossbeam-channel-0.5.1 \
  28. crossbeam-utils-0.8.5 \
  29. encoding_rs-0.8.28 \
  30. encoding_rs_io-0.1.7 \
  31. fnv-1.0.7 \
  32. fs_extra-1.2.0 \
  33. glob-0.3.0 \
  34. globset-0.4.7 \
  35. grep-0.2.8 \
  36. grep-cli-0.1.6 \
  37. grep-matcher-0.1.5 \
  38. grep-pcre2-0.1.5 \
  39. grep-printer-0.1.6 \
  40. grep-regex-0.1.9 \
  41. grep-searcher-0.1.8 \
  42. hermit-abi-0.1.18 \
  43. ignore-0.4.18 \
  44. itoa-0.4.7 \
  45. jemalloc-sys-0.3.2 \
  46. jemallocator-0.3.2 \
  47. jobserver-0.1.22 \
  48. lazy_static-1.4.0 \
  49. libc-0.2.97 \
  50. libm-0.1.4 \
  51. log-0.4.14 \
  52. memchr-2.4.0 \
  53. memmap2-0.3.0 \
  54. num_cpus-1.13.0 \
  55. once_cell-1.7.2 \
  56. packed_simd_2-0.3.7 \
  57. pcre2-0.2.3 \
  58. pcre2-sys-0.2.5 \
  59. pkg-config-0.3.19 \
  60. proc-macro2-1.0.27 \
  61. quote-1.0.9 \
  62. regex-1.5.4 \
  63. regex-automata-0.1.10 \
  64. regex-syntax-0.6.25 \
  65. ryu-1.0.5 \
  66. same-file-1.0.6 \
  67. serde-1.0.126 \
  68. serde_derive-1.0.126 \
  69. serde_json-1.0.64 \
  70. strsim-0.8.0 \
  71. syn-1.0.73 \
  72. termcolor-1.1.2 \
  73. textwrap-0.11.0 \
  74. thread_local-1.1.3 \
  75. unicode-width-0.1.8 \
  76. unicode-xid-0.2.2 \
  77. walkdir-2.3.2 \
  78. winapi-0.3.9 \
  79. winapi-i686-pc-windows-gnu-0.4.0 \
  80. winapi-util-0.1.5 \
  81. winapi-x86_64-pc-windows-gnu-0.4.0
  82. RIPGREP_OUTDIR= ${WRKDIR}/cargo-out
  83. CARGO_ENV= RIPGREP_OUTDIR=${RIPGREP_OUTDIR}
  84. PLIST_FILES= bin/rg \
  85. etc/bash_completion.d/rg.bash \
  86. man/man1/rg.1.gz \
  87. share/fish/vendor_completions.d/rg.fish \
  88. share/zsh/site-functions/_rg
  89. PORTDOCS= CHANGELOG.md FAQ.md GUIDE.md
  90. OPTIONS_DEFINE= DOCS PCRE2 SIMD
  91. OPTIONS_DEFAULT=PCRE2
  92. OPTIONS_DEFAULT_aarch64=SIMD
  93. OPTIONS_DEFAULT_amd64= ${OPTIONS_DEFAULT_i386}
  94. OPTIONS_DEFAULT_i386= ${MACHINE_CPU:tu:S/SSE2/SIMD/}
  95. PCRE2_DESC= ${PCRE_DESC} version 2
  96. PCRE2_LIB_DEPENDS= libpcre2-8.so:devel/pcre2
  97. PCRE2_VARS= CARGO_FEATURES+=pcre2
  98. SIMD_MAKE_ENV= RUSTC_BOOTSTRAP=encoding_rs,packed_simd_2
  99. SIMD_VARS= CARGO_FEATURES+=simd-accel ${SIMD_VARS_${ARCH}}
  100. SIMD_VARS_i386= RUSTFLAGS+="-C target-feature=+sse2"
  101. post-patch:
  102. @${REINPLACE_CMD} -e 's|OUT_DIR|RIPGREP_OUTDIR|' ${WRKSRC}/build.rs
  103. post-install:
  104. ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/rg
  105. ${INSTALL_MAN} ${RIPGREP_OUTDIR}/rg.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
  106. @${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d/
  107. ${INSTALL_DATA} ${RIPGREP_OUTDIR}/rg.bash \
  108. ${STAGEDIR}${PREFIX}/etc/bash_completion.d/
  109. @${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d/
  110. ${INSTALL_DATA} ${RIPGREP_OUTDIR}/rg.fish \
  111. ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d/
  112. @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
  113. ${INSTALL_DATA} ${WRKSRC}/complete/_rg \
  114. ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
  115. post-install-DOCS-on:
  116. @${MKDIR} ${STAGEDIR}${DOCSDIR}
  117. cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
  118. .include <bsd.port.mk>