logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

rimraf-3.0.2.ebuild (777B)


  1. # Copyright 2022 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. inherit nodejs
  5. DESCRIPTION="deep deletion module for node (like 'rm -rf')"
  6. HOMEPAGE="https://github.com/isaacs/rimraf"
  7. SRC_URI="https://github.com/isaacs/rimraf/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
  8. LICENSE="ISC"
  9. SLOT="0"
  10. KEYWORDS="~amd64"
  11. IUSE="test"
  12. #RESTRICT="!test? ( test )"
  13. #DEPEND="test? ( dev-nodejs/tap dev-nodejs/mkdirp )"
  14. RDEPEND="dev-nodejs/glob"
  15. RESTRICT="test"
  16. src_prepare() {
  17. default
  18. sed -i -e '/LICENSE/d' -e '/README.md/d' package.json || die
  19. }
  20. src_install() {
  21. insinto "${NODEJS_SITELIB}${PN}"
  22. doins package.json
  23. cat package.json | jq -r .files[] | while read pkg
  24. do
  25. doins -r "$pkg"
  26. done
  27. }