app-admin/webapp-config-9999.ebuild: Makes use of prefix eclass

X-Gentoo-Bug: 608018
X-Gentoo-Bug-URL: https://bugs.gentoo.org/608018

Package-Manager: portage-2.3.3
This commit is contained in:
Devan Franchini
2017-02-15 22:28:54 -05:00
parent b50274c04b
commit 1cb9280dbf

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2016 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -6,7 +6,7 @@ EAPI="5"
PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy )
inherit distutils-r1
inherit distutils-r1 prefix
if [[ ${PV} = 9999* ]]
then
@@ -30,6 +30,11 @@ DEPEND="app-text/xmlto
sys-apps/gentoo-functions"
RDEPEND="portage? ( sys-apps/portage[${PYTHON_USEDEP}] )"
python_prepare_all() {
distutils-r1_python_prepare_all
eprefixify WebappConfig/eprefix.py config/webapp-config
}
python_compile_all() {
emake -C doc/
}
@@ -40,7 +45,7 @@ python_install() {
# distutils does not provide for specifying two different script install
# locations. Since we only install one script here the following should
# be ok
distutils-r1_python_install --install-scripts="/usr/sbin"
distutils-r1_python_install --install-scripts="${EPREFIX}/usr/sbin"
}
python_install_all() {