gentoo-perl-helpers-0.1.0.ebuild 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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="https://github.com/gentoo-perl/${PN}/releases/download/${PV}/${P}.tar.xz"
  7. LICENSE="GPL-2+"
  8. SLOT="0"
  9. KEYWORDS="~amd64 ~x86"
  10. IUSE=""
  11. # Assumed System:
  12. # sys-apps/coreutils
  13. # sys-apps/grep
  14. # sys-apps/findutils
  15. # sys-apps/sed
  16. # app-shells/bash
  17. RDEPEND="
  18. app-portage/portage-utils
  19. sys-apps/portage
  20. "
  21. DEPEND=""
  22. S="${WORKDIR}"
  23. src_prepare() {
  24. sed -i -e "s^@@LIBDIR@@^${EPREFIX}/usr/lib/gentoo-perl-helpers^g" \
  25. -e "s^@@LIBEXECDIR@@^${EPREFIX}/usr/libexec/gentoo-perl-helpers^g" \
  26. "${S}/bin/gentoo-perl" || die "Can't patch bin/gentoo-perl"
  27. default
  28. }
  29. src_compile() { :; }
  30. src_install() {
  31. exeinto /usr/bin
  32. doexe "${S}/bin/"*
  33. exeinto /usr/libexec/gentoo-perl-helpers
  34. doexe "${S}/libexec/"*
  35. insinto /usr/lib/gentoo-perl-helpers
  36. doins "${S}/lib/"*
  37. dodoc "${S}/README.mkdn"
  38. }