From 1cb9280dbf9aa945a3c28cc6d55bde68014002f4 Mon Sep 17 00:00:00 2001 From: Devan Franchini Date: Wed, 15 Feb 2017 22:28:54 -0500 Subject: [PATCH] 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 --- app-admin/webapp-config/webapp-config-9999.ebuild | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app-admin/webapp-config/webapp-config-9999.ebuild b/app-admin/webapp-config/webapp-config-9999.ebuild index 2d1d3c7ad8d0..a1b3ec25500f 100644 --- a/app-admin/webapp-config/webapp-config-9999.ebuild +++ b/app-admin/webapp-config/webapp-config-9999.ebuild @@ -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() { -- 2.26.2