gentoo-perl-helpers-0.2.1.ebuild 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. DESCRIPTION="Introspection and Upgrade Assistance tools for Gentoo Perl"
  5. HOMEPAGE="https://github.com/gentoo-perl/gentoo-perl-helpers"
  6. SRC_URI="
  7. https://github.com/gentoo-perl/${PN}/releases/download/${PV}/${P}.tar.xz
  8. mirror://gentoo/${P}.tar.xz
  9. https://dev.gentoo.org/~kentnl/distfiles/${P}.tar.xz
  10. "
  11. LICENSE="GPL-2+"
  12. SLOT="0"
  13. KEYWORDS="~amd64 ~arm64 ~x86"
  14. IUSE=""
  15. # Assumed System:
  16. # sys-apps/coreutils
  17. # sys-apps/grep
  18. # sys-apps/findutils
  19. # sys-apps/sed
  20. # app-shells/bash
  21. # sys-apps/gawk
  22. # app-arch/tar
  23. RDEPEND="
  24. app-portage/portage-utils
  25. sys-apps/portage
  26. "
  27. DEPEND=""
  28. src_prepare() {
  29. sed -i -e "s^@@LIBDIR@@^${EPREFIX}/usr/lib/gentoo-perl-helpers^g" \
  30. -e "s^@@LIBEXECDIR@@^${EPREFIX}/usr/libexec/gentoo-perl-helpers^g" \
  31. "${S}/bin/gentoo-perl" \
  32. "${S}/lib/core-functions.sh" \
  33. || die "Can't patch bin/gentoo-perl"
  34. default
  35. }
  36. src_compile() { :; }
  37. src_install() {
  38. exeinto /usr/bin
  39. doexe "${S}/bin/"*
  40. exeinto /usr/libexec/gentoo-perl-helpers
  41. doexe "${S}/libexec/"*
  42. insinto /usr/lib/gentoo-perl-helpers
  43. doins -r "${S}/lib/"*
  44. dodoc "${S}/README.mkdn" "${S}/Changes"
  45. }