From fcf648c5db5fce472e8b137142767f6908e00750 Mon Sep 17 00:00:00 2001 From: Ryan Hill Date: Fri, 13 Nov 2009 00:11:31 +0000 Subject: Use EROOT throughout, Minor updates. svn path=/trunk/extern/; revision=720 Filtered-out-of: https://gitweb.gentoo.org/proj/eselect.git/ Filtered-branch: extern Filtered-commit: 1f860a73dd9b02d4d7e24586a963e9965ba64e9f --- wxwidgets.eselect | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/wxwidgets.eselect b/wxwidgets.eselect index 48248a8..a4452fd 100644 --- a/wxwidgets.eselect +++ b/wxwidgets.eselect @@ -1,16 +1,17 @@ # -*-eselect-*- vim: ft=eselect # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-wxwidgets/files/wxwidgets.eselect-0.8,v 1.2 2008/02/08 01:08:07 dirtyepic Exp $ +# $Id$ inherit config DESCRIPTION="Manage the system default wxWidgets profile." -MAINTAINER="dirtyepic@gentoo.org" -VERSION=0.8 +MAINTAINER="wxwidgets@gentoo.org" +SVN_DATE='$Date$' +VERSION=$(svn_date_to_version "${SVN_DATE}") -WXCONFFILE=/var/lib/wxwidgets/current -WXCONFDIR=/usr/lib/wx/config +WXCONFFILE="${EROOT}"/var/lib/wxwidgets/current +WXCONFDIR="${EROOT}"/usr/lib/wx/config find_targets() { local conf @@ -55,7 +56,7 @@ set_config() { # symlink bakefile presets to current slot (Bug #209150) local f - pushd /usr/share/bakefile/presets/ &> /dev/null + pushd "${EROOT}"/usr/share/bakefile/presets/ &> /dev/null for f in .bkl _unix.bkl _win32.bkl; do if [[ -e wx${f} || -L wx${f} ]]; then rm -f wx${f} || die -q "Error removing wx${f}" @@ -124,7 +125,7 @@ do_set() { [[ ! ${#@} -eq 1 ]] \ && die -q "You must specify a profile name or number" - [[ -w "${ROOT}"/var/lib ]] \ + [[ -w "${EROOT}"/var/lib ]] \ || die -q "You need proper write permissions. Please run as root." set_config "${1}" -- cgit v1.2.3-65-gdbad