localepurge-0.5.4-r2.ebuild 1005 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit eutils prefix
  5. DESCRIPTION="Script to recover diskspace on unneeded locale files & localized man pages"
  6. HOMEPAGE="https://gentoo.org
  7. https://cgit.gentoo.org/proj/localepurge.git"
  8. SRC_URI="https://dev.gentoo.org/~hwoarang/distfiles/${P}.tbz2"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos"
  12. IUSE=""
  13. DEPEND=""
  14. RDEPEND="app-shells/bash"
  15. S=${WORKDIR}/${PN}
  16. src_prepare() {
  17. epatch "${FILESDIR}"/${P}-prefix.patch
  18. # 164544
  19. epatch "${FILESDIR}"/${P}-directorysum.patch
  20. # 445910
  21. epatch "${FILESDIR}"/${P}-parentdir.patch
  22. # 452208
  23. epatch "${FILESDIR}"/${P}-evaltotal.patch
  24. eprefixify ${PN}
  25. }
  26. src_install() {
  27. insinto /var/cache/${PN}
  28. doins defaultlist
  29. dosym defaultlist /var/cache/${PN}/localelist
  30. insinto /etc
  31. doins locale.nopurge
  32. dobin ${PN}
  33. doman ${PN}.8
  34. }