Lines 1-15
Link Here
|
1 |
# -*-eselect-*- vim: ft=eselect |
1 |
# -*-eselect-*- vim: ft=eselect |
2 |
# Copyright 1999-2014 Gentoo Foundation |
2 |
# Copyright 1999-2018 Gentoo Foundation |
3 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# Distributed under the terms of the GNU General Public License v2 |
4 |
|
4 |
|
5 |
inherit config |
5 |
inherit config multilib |
6 |
|
6 |
|
7 |
DESCRIPTION="Manage the system default wxWidgets profile" |
7 |
DESCRIPTION="Manage the system default wxWidgets profile" |
8 |
MAINTAINER="wxwidgets@gentoo.org" |
8 |
MAINTAINER="wxwidgets@gentoo.org" |
9 |
VERSION="20140423" |
9 |
VERSION="20140423" |
10 |
|
10 |
|
11 |
WXCONFFILE="${EROOT}"/var/lib/wxwidgets/current |
11 |
WXCONFFILE="${EROOT}"/var/lib/wxwidgets/current |
12 |
WXCONFDIR="${EROOT}"/usr/lib/wx/config |
12 |
|
|
|
13 |
get_confdir() { |
14 |
echo "${EROOT}/usr/$(get_libdir)/wx/config" |
15 |
} |
13 |
|
16 |
|
14 |
find_targets() { |
17 |
find_targets() { |
15 |
local conf |
18 |
local conf |
Lines 89-94
describe_list() {
Link Here
|
89 |
} |
92 |
} |
90 |
|
93 |
|
91 |
do_list() { |
94 |
do_list() { |
|
|
95 |
local WXCONFDIR=$(get_confdir) |
92 |
local i targets currconf |
96 |
local i targets currconf |
93 |
targets=( $(find_targets) ) |
97 |
targets=( $(find_targets) ) |
94 |
[[ -e ${WXCONFFILE} ]] && currconf=$(load_config ${WXCONFFILE} WXCONFIG) |
98 |
[[ -e ${WXCONFFILE} ]] && currconf=$(load_config ${WXCONFFILE} WXCONFIG) |
Lines 123-128
do_set() {
Link Here
|
123 |
[[ ! -w "${EROOT}"/var/lib/ ]] \ |
127 |
[[ ! -w "${EROOT}"/var/lib/ ]] \ |
124 |
&& die -q "You need write permission to /var/lib to perform this action." |
128 |
&& die -q "You need write permission to /var/lib to perform this action." |
125 |
|
129 |
|
|
|
130 |
local WXCONFDIR=$(get_confdir) |
126 |
set_config "${1}" |
131 |
set_config "${1}" |
127 |
} |
132 |
} |
128 |
|
133 |
|
Lines 133-138
describe_update() {
Link Here
|
133 |
do_update() { |
138 |
do_update() { |
134 |
[[ ! -e ${WXCONFFILE} ]] && do_set none |
139 |
[[ ! -e ${WXCONFFILE} ]] && do_set none |
135 |
|
140 |
|
|
|
141 |
local WXCONFDIR=$(get_confdir) |
136 |
currconf=$(load_config ${WXCONFFILE} WXCONFIG) |
142 |
currconf=$(load_config ${WXCONFFILE} WXCONFIG) |
137 |
|
143 |
|
138 |
# if current config is valid leave it alone |
144 |
# if current config is valid leave it alone |