summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <dirtyepic@gentoo.org>2009-11-13 00:11:31 +0000
committerRyan Hill <dirtyepic@gentoo.org>2009-11-13 00:11:31 +0000
commitfcf648c5db5fce472e8b137142767f6908e00750 (patch)
tree3635a07671480622cd453886ce613ba1c660c8a4
parentSupport brief output mode, bugs 292104, 292117, 292119, and 292120. (diff)
downloadeselect-wxwidgets-fcf648c5db5fce472e8b137142767f6908e00750.tar.gz
eselect-wxwidgets-fcf648c5db5fce472e8b137142767f6908e00750.tar.bz2
eselect-wxwidgets-fcf648c5db5fce472e8b137142767f6908e00750.zip
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
-rw-r--r--wxwidgets.eselect15
1 files 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}"