crossdev-99999999.ebuild 927 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="6"
  4. if [[ ${PV} == "99999999" ]] ; then
  5. inherit git-r3
  6. EGIT_REPO_URI="git://anongit.gentoo.org/proj/crossdev.git"
  7. else
  8. SRC_URI="mirror://gentoo/${P}.tar.xz
  9. https://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
  10. KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
  11. fi
  12. DESCRIPTION="Gentoo Cross-toolchain generator"
  13. HOMEPAGE="https://www.gentoo.org/"
  14. LICENSE="GPL-2"
  15. SLOT="0"
  16. IUSE=""
  17. RDEPEND=">=sys-apps/portage-2.1
  18. >=app-portage/portage-utils-0.55
  19. app-shells/bash
  20. sys-apps/gentoo-functions
  21. !sys-devel/crossdev-wrappers"
  22. DEPEND="app-arch/xz-utils"
  23. PATCHES=(
  24. "${FILESDIR}"/use-new-path-for-functions.sh.patch
  25. )
  26. src_install() {
  27. default
  28. if [[ "${PV}" == "99999999" ]] ; then
  29. sed -i "s:@CDEVPV@:${EGIT_VERSION}:" "${ED%/}"/usr/bin/crossdev || die
  30. fi
  31. }