aboutsummaryrefslogtreecommitdiff
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
commit1f860a73dd9b02d4d7e24586a963e9965ba64e9f (patch)
tree5a809982743cdb8b90b573621305ad2c9d8cd4e5
parentSupport brief output mode, bugs 292104, 292117, 292119, and 292120. (diff)
downloadeselect-1f860a73dd9b02d4d7e24586a963e9965ba64e9f.tar.gz
eselect-1f860a73dd9b02d4d7e24586a963e9965ba64e9f.tar.bz2
eselect-1f860a73dd9b02d4d7e24586a963e9965ba64e9f.zip
Use EROOT throughout, Minor updates.
svn path=/trunk/extern/; revision=720
-rw-r--r--modules/wxwidgets.eselect15
1 files changed, 8 insertions, 7 deletions
diff --git a/modules/wxwidgets.eselect b/modules/wxwidgets.eselect
index 48248a8..a4452fd 100644
--- a/modules/wxwidgets.eselect
+++ b/modules/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}"