Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/eselect-wxwidgets/files: wxrc-0.7 wx-config-0.7 digest-eselect-wxwidgets-0.7-r1 digest-eselect-wxwidgets-0.7
Date: Sun, 23 Dec 2007 04:02:58
Message-Id: E1J6I37-0002ms-0W@stork.gentoo.org
1 dirtyepic 07/12/23 04:02:49
2
3 Modified: wxrc-0.7 wx-config-0.7
4 Added: digest-eselect-wxwidgets-0.7-r1
5 Removed: digest-eselect-wxwidgets-0.7
6 Log:
7 Fix wxrc wrapper to work when called from eclass and push out various small
8 local changes i forgot to commit.
9 (Portage version: 2.1.4_rc10)
10
11 Revision Changes Path
12 1.2 app-admin/eselect-wxwidgets/files/wxrc-0.7
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-wxwidgets/files/wxrc-0.7?rev=1.2&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-wxwidgets/files/wxrc-0.7?rev=1.2&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-wxwidgets/files/wxrc-0.7?r1=1.1&r2=1.2
17
18 Index: wxrc-0.7
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-admin/eselect-wxwidgets/files/wxrc-0.7,v
21 retrieving revision 1.1
22 retrieving revision 1.2
23 diff -u -r1.1 -r1.2
24 --- wxrc-0.7 20 Dec 2007 00:11:50 -0000 1.1
25 +++ wxrc-0.7 23 Dec 2007 04:02:48 -0000 1.2
26 @@ -1,50 +1,49 @@
27 #!/bin/bash -
28 #
29 # /usr/bin/wxrc
30 -# a lame wrapper by dirtyepic@g.o
31 +#
32 +# a lame wxrc wrapper by dirtyepic@g.o
33
34 _wxerror() {
35 - echo "An error occurred while calling wxrc:"
36 - echo
37 - echo " ${1}"
38 - echo
39 - echo "Please use \`eselect wxwidgets\` to select an available profile and try again."
40 - exit 1
41 -}
42 -
43 -# Ebuilds should not use this wrapper and use wxwidgets.eclass instead.
44 -if [[ -n ${EBUILD_PHASE} ]]; then
45 - cat <<- EOF
46 -"
47 -
48 -
49 -*** This ebuild is attempting to use /usr/bin/wxrc directly.
50 -*** Please see wxwidgets.eclass for instructions how to add wxWidgets support
51 -*** to your package.
52 -
53 -
54 -"
55 - EOF
56 + echo "An error occurred while calling wxrc:"
57 + echo
58 + echo " ${1}"
59 + echo
60 + echo "Please use \`eselect wxwidgets\` to select an available profile and try again."
61 exit 1
62 -fi
63 +}
64
65 if [[ -n ${WX_ECLASS_CONFIG} ]]; then
66 - ${WX_ECLASS_CONFIG} "$@"
67 - exit 0
68 + $(${WX_ECLASS_CONFIG} --utility=wxrc) "$@"
69 + exit 0
70 +#elif [[ -n ${EBUILD_PHASE} ]]; then
71 +# cat <<- EOF
72 +# "
73 +#
74 +#
75 +# *** This ebuild is attempting to use /usr/bin/wx-config directly.
76 +# *** Please see wxwidgets.eclass for instructions how to add wxWidgets support
77 +# *** to your package.
78 +#
79 +#
80 +# "
81 +# EOF
82 +# exit 1
83 else
84 - if [[ -e /var/lib/wxwidgets/current ]]; then
85 - source /var/lib/wxwidgets/current
86 - else
87 - _wxerror "Cannot find wxWidgets profile configuration file ( /var/lib/wxwidgets/current )"
88 - fi
89 + if [[ -e /var/lib/wxwidgets/current ]]; then
90 + source /var/lib/wxwidgets/current
91 + else
92 + _wxerror "Cannot find wxWidgets profile configuration file ( /var/lib/wxwidgets/current )"
93 + fi
94
95 - [[ ${WXCONFIG} == none ]] && _wxerror "No profile currently selected"
96 + [[ ${WXCONFIG} == none ]] && _wxerror "No profile currently selected"
97
98 - if [[ -f /usr/lib/wx/config/${WXCONFIG} \
99 - && -x /usr/lib/wx/config/${WXCONFIG} ]]; then
100 - $(/usr/lib/wx/config/${WXCONFIG} --utility=wxrc) "$@"
101 - else
102 - _wxerror "Cannot find wxWidgets profile ( ${WXCONFIG} )"
103 + if [[ -f /usr/lib/wx/config/${WXCONFIG} \
104 + && -x /usr/lib/wx/config/${WXCONFIG} ]]; then
105 + $(/usr/lib/wx/config/${WXCONFIG} --utility=wxrc) "$@"
106 + else
107 + _wxerror "Cannot find wxWidgets profile ( ${WXCONFIG} )"
108 fi
109 exit 0
110 fi
111 +
112
113
114
115 1.2 app-admin/eselect-wxwidgets/files/wx-config-0.7
116
117 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-wxwidgets/files/wx-config-0.7?rev=1.2&view=markup
118 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-wxwidgets/files/wx-config-0.7?rev=1.2&content-type=text/plain
119 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/eselect-wxwidgets/files/wx-config-0.7?r1=1.1&r2=1.2
120
121 Index: wx-config-0.7
122 ===================================================================
123 RCS file: /var/cvsroot/gentoo-x86/app-admin/eselect-wxwidgets/files/wx-config-0.7,v
124 retrieving revision 1.1
125 retrieving revision 1.2
126 diff -u -r1.1 -r1.2
127 --- wx-config-0.7 20 Dec 2007 00:11:50 -0000 1.1
128 +++ wx-config-0.7 23 Dec 2007 04:02:48 -0000 1.2
129 @@ -13,25 +13,22 @@
130 exit 1
131 }
132
133 -# Ebuilds should not use this wrapper and use wxwidgets.eclass instead.
134 -#if [[ -n ${EBUILD_PHASE} ]]; then
135 +if [[ -n ${WX_ECLASS_CONFIG} ]]; then
136 + ${WX_ECLASS_CONFIG} "$@"
137 + exit 0
138 +#elif [[ -n ${EBUILD_PHASE} ]]; then
139 # cat <<- EOF
140 -#"
141 +# "
142 #
143 #
144 -#*** This ebuild is attempting to use /usr/bin/wx-config directly.
145 -#*** Please see wxwidgets.eclass for instructions how to add wxWidgets support
146 -#*** to your package.
147 +# *** This ebuild is attempting to use /usr/bin/wx-config directly.
148 +# *** Please see wxwidgets.eclass for instructions how to add wxWidgets support
149 +# *** to your package.
150 #
151 #
152 -#"
153 +# "
154 # EOF
155 # exit 1
156 -#fi
157 -
158 -if [[ -n ${WX_ECLASS_CONFIG} ]]; then
159 - ${WX_ECLASS_CONFIG} "$@"
160 - exit 0
161 else
162 if [[ -e /var/lib/wxwidgets/current ]]; then
163 source /var/lib/wxwidgets/current
164
165
166
167 1.1 app-admin/eselect-wxwidgets/files/digest-eselect-wxwidgets-0.7-r1
168
169 <<Binary file>>
170
171
172 --
173 gentoo-commits@g.o mailing list