Files
for-gentoo/sys-apps/entropy-server/entropy-server-9999.ebuild
T
Sławomir Nizio a0abbc35f6 [sys-apps/entropy*] update 9999 to use site-packages
Applies changes that have been introduced here:

commit cd4620e4db

    [sys-apps/entropy*] add future ebuilds for version 320

    (with installation to sitedir)

Tested if they install to destdir.
2019-03-13 23:21:21 +01:00

40 lines
810 B
Bash

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python{2_7,3_6} )
inherit eutils python-single-r1 bash-completion-r1 git-r3
DESCRIPTION="Entropy Package Manager server-side tools"
HOMEPAGE="http://www.sabayon.org"
LICENSE="GPL-2"
EGIT_REPO_URI="https://github.com/Sabayon/entropy.git"
SLOT="0"
KEYWORDS=""
IUSE="+matter"
S="${WORKDIR}/${P}/server"
RDEPEND="sys-apps/entropy[${PYTHON_USEDEP}]
matter? ( app-admin/matter[entropy] )
${PYTHON_DEPS}
"
DEPEND="app-text/asciidoc"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
src_prepare() {
default
python_fix_shebang "${S}"
}
src_install() {
emake DESTDIR="${D}" PYTHON_SITEDIR="$(python_get_sitedir)" install
newbashcomp "${S}/eit-completion.bash" eit
python_optimize
}