Lines 66-71
Link Here
|
66 |
echo ${VERSIONS} |
66 |
echo ${VERSIONS} |
67 |
} |
67 |
} |
68 |
|
68 |
|
|
|
69 |
# @FUNCTION: qt3_pkg_setup |
70 |
# @MAINTAINER: |
71 |
# Caleb Tennis <caleb@gentoo.org> |
72 |
# Przemyslaw Maciag <troll@gentoo.org> |
73 |
# @DESCRIPTION: |
74 |
# Default pkg_setup function for packages that depends on qt3. If you have to |
75 |
# create ebuilds own pkg_setup in your ebuild, call qt3_pkg_setup in it. |
76 |
# This function uses two global vars from ebuild: |
77 |
# - QT3_BUILT_WITH_USE_CHECK - contains use flags that need to be turned on for |
78 |
# =x11-libs/qt-3* |
79 |
# - QT3_OPTIONAL_BUILT_WITH_USE_CHECK - qt3 flags that provides some |
80 |
# functionality, but can alternatively be disabled in ${CATEGORY}/${PN} |
81 |
# (so qt3 don't have to be recompiled) |
82 |
qt3_pkg_setup() { |
83 |
local requiredflags="" |
84 |
for x in ${QT3_BUILT_WITH_USE_CHECK}; do |
85 |
if ! built_with_use =x11-libs/qt-3* ${x}; then |
86 |
requiredflags="${requiredflags} ${x}" |
87 |
fi |
88 |
done |
89 |
|
90 |
local optionalflags="" |
91 |
for x in ${QT3_OPTIONAL_BUILT_WITH_USE_CHECK}; do |
92 |
if use ${x} && ! built_with_use =x11-libs/qt-3* ${x}; then |
93 |
optionalflags="${optionalflags} ${x}" |
94 |
fi |
95 |
done |
96 |
|
97 |
local diemessage="" |
98 |
if [[ ${requiredflags} != "" ]]; then |
99 |
eerror |
100 |
eerror "(1) In order to compile ${CATEGORY}/${PN} first you need to build" |
101 |
eerror "=x11-libs/qt-3* with USE=\"${requiredflags}\" flag(s)" |
102 |
eerror |
103 |
diemessage="(1) recompile qt3 with \"${requiredflags}\" USE flag(s) ; " |
104 |
fi |
105 |
if [[ ${optionalflags} != "" ]]; then |
106 |
eerror |
107 |
eerror "(2) You are trying to compile ${CATEGORY}/${PN} package with" |
108 |
eerror "USE=\"${optionalflags}\"" |
109 |
eerror "while qt3 is built without this particular flag(s): it will" |
110 |
eerror "not work." |
111 |
eerror |
112 |
eerror "Possible solutions to this problem are:" |
113 |
eerror "a) install package ${CATEGORY}/${PN} without \"${optionalflags}\" USE flag(s)" |
114 |
eerror "b) re-emerge qt3 with \"${optionalflags}\" USE flag(s)" |
115 |
eerror |
116 |
diemessage="${diemessage}(2) recompile qt3 with \"${optionalflags}\" USE flag(s) or disable them for ${PN} package\n" |
117 |
fi |
118 |
|
119 |
[[ ${diemessage} != "" ]] && die "can't emerge ${CATEGORY}/${PN}: ${diemessage}" |
120 |
} |
121 |
|
69 |
# @FUNCTION: eqmake3 |
122 |
# @FUNCTION: eqmake3 |
70 |
# @USAGE: [.pro file] [additional parameters to qmake] |
123 |
# @USAGE: [.pro file] [additional parameters to qmake] |
71 |
# @MAINTAINER: |
124 |
# @MAINTAINER: |