diff options
Diffstat (limited to 'sys-apps/yum/yum-3.4.3_p20170619.ebuild')
-rw-r--r-- | sys-apps/yum/yum-3.4.3_p20170619.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/sys-apps/yum/yum-3.4.3_p20170619.ebuild b/sys-apps/yum/yum-3.4.3_p20170619.ebuild new file mode 100644 index 000000000000..25ff9b059b59 --- /dev/null +++ b/sys-apps/yum/yum-3.4.3_p20170619.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="sqlite" +inherit python-single-r1 systemd + +DESCRIPTION="automatic updater and package installer/remover for rpm systems" +HOMEPAGE="http://yum.baseurl.org/" +SRC_URI="https://dev.gentoo.org/~pinkbyte/distfiles/snapshots/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~ppc ~x86" + +IUSE="test" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + app-arch/rpm[python,${PYTHON_USEDEP}] + dev-python/sqlitecachec[${PYTHON_USEDEP}] + dev-libs/libxml2[python,${PYTHON_USEDEP}] + dev-python/pyliblzma[${PYTHON_USEDEP}] + dev-python/urlgrabber[${PYTHON_USEDEP}]" + +DEPEND="${RDEPEND} + dev-util/intltool + test? ( dev-python/nose[${PYTHON_USEDEP}] )" + +src_prepare() { + sed -i -e 's/make/$(MAKE)/' Makefile || die + sed -i -e "s:lib:$(get_libdir):g" rpmUtils/Makefile yum/Makefile || die + default +} + +src_install() { + emake INIT=systemd UNITDIR="$(systemd_get_systemunitdir)" DESTDIR="${ED}" install + python_optimize "${D%/}$(python_get_sitedir)" "${ED%/}/usr/share/yum-cli" + rm -r "${ED%/}/etc/rc.d" || die + # bug #563850 + python_fix_shebang "${ED}/usr/bin/yum" +} |