yum-3.4.3_p20130218.ebuild 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. PYTHON_COMPAT=( python2_7 )
  5. PYTHON_REQ_USE="sqlite"
  6. MY_PV="a119004"
  7. MY_P="${PN}-${MY_PV}"
  8. inherit eutils multilib python-single-r1
  9. DESCRIPTION="automatic updater and package installer/remover for rpm systems"
  10. HOMEPAGE="http://yum.baseurl.org/"
  11. SRC_URI="https://dev.gentoo.org/~creffett/distfiles/${P}.tar.gz"
  12. LICENSE="GPL-2"
  13. SLOT="0"
  14. KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
  15. IUSE="test"
  16. RDEPEND="${PYTHON_DEPS}
  17. app-arch/rpm[${PYTHON_USEDEP}]
  18. dev-python/sqlitecachec[${PYTHON_USEDEP}]
  19. dev-libs/libxml2[python,${PYTHON_USEDEP}]
  20. dev-python/urlgrabber[${PYTHON_USEDEP}]"
  21. DEPEND="${RDEPEND}
  22. dev-util/intltool
  23. test? ( dev-python/nose[${PYTHON_USEDEP}] )"
  24. S="${WORKDIR}/${MY_P}"
  25. src_prepare() {
  26. sed -i -e 's/make/$(MAKE)/' Makefile || die
  27. sed -i -e "s:lib:$(get_libdir):g" rpmUtils/Makefile yum/Makefile || die
  28. }
  29. src_install() {
  30. emake DESTDIR="${ED}" install
  31. python_optimize "${D%/}$(python_get_sitedir)" "${ED%/}/usr/share/yum-cli"
  32. rm -r "${ED%/}/etc/rc.d" || die
  33. }