Necrose99

fchroot-ebuild

Nov 28th, 2020
746
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Copyright 1999-2020 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3.  
  4. EAPI=7
  5.  
  6. PYTHON_COMPAT=( python3_{7,8,9 )  # 10 rigged with distutils will make an egg/runs..
  7.  
  8. inherit distutils-r1 eutils  python-single-r1
  9.  
  10. DESCRIPTION="Funtoo's franken-chroot tool. , (chroot to arm/arm64/riscv made easy)"
  11. HOMEPAGE="https://pypi.org/project/fchroot/"
  12. SRC_URI="https://files.pythonhosted.org/packages/f2/04/4db5e98e93207dbb9bb71725767a8d016f9aa1e70c9c7892a5c270c3eac6/fchroot-${PV}.tar.gz"
  13.  
  14. #fchroot-0.1.2.tar.gz"
  15. ## fix python compat to gentoo standards. forked from Funtoo's core-kit repo. so previously a mess.  not too Gentoo compat
  16.  
  17.  
  18. LICENSE="Apache-2.0"
  19. SLOT="0"
  20. KEYWORDS="*"
  21.  
  22.  
  23. RDEPEND="${PYTHON_DEPS}"
  24. DEPEND="${RDEPEND}"
  25. # qemu_user_targets_aarch64 etc .. arm riscv64 etc.
  26.  
  27.  
  28. src_install() {
  29. # e/setup.py scripts  3.7 + doesn't give a rats. adds scripts / lib
  30. distutils-r1_python_install_all ${D}/
  31. }
  32.  
  33. post_install() {
  34.  
  35. Einfo " this tool was swiped from funtoo,  at worse github.com/multiarch/qemu-user-static/releases/ for a static bin, CP bin to  /mnt/mychroot/usr/local/bin if chrooting from live usb env "
  36. einfo " this tool takes care of qemu-wrapper and mounting   most of the hassles of staging an arm/arm64/riscV "
  37. einfo " fchroot /mnt/rpi64-gentoo-example  & quick chroot /mnt/rpi64-gentoo-example "
  38. einfo " this tool depends on quemu being built  for qemu_user_targets , arm arm64 or riscV / either ,all / or one you care for.  else you can get static build as mentioned above. "
  39. einfo "to put in you chroot:/usr/local/bin"
  40. }
RAW Paste Data