1 |
# $Header: /magellan-cvs/smage/include/perl.sminc,v 1.15 2007-06-15 22:06:59 niro Exp $ |
# $Id$ |
2 |
|
|
3 |
# inherits {pre,post}install() and {pre,post}remove() to mage file |
# inherits {pre,post}install() and {pre,post}remove() to mage file |
4 |
INHERITS="${INHERITS} perl" |
INHERITS="${INHERITS} perl" |
87 |
munpack ${SRCFILE} || die |
munpack ${SRCFILE} || die |
88 |
} |
} |
89 |
|
|
90 |
perl_src_compile() |
perl_src_check() |
91 |
{ |
{ |
92 |
cd ${SRCDIR} |
return 0 |
93 |
|
} |
94 |
|
|
95 |
|
perl_run_src_compile() |
96 |
|
{ |
97 |
perlinfo |
perlinfo |
98 |
|
|
99 |
export PERL_MM_USE_DEFAULT=1 |
export PERL_MM_USE_DEFAULT=1 |
127 |
fixlocalpod |
fixlocalpod |
128 |
} |
} |
129 |
|
|
130 |
perl_src_install() |
perl_src_compile() |
131 |
{ |
{ |
132 |
cd ${SRCDIR} |
cd ${SRCDIR} |
133 |
|
perl_run_src_compile $@ || die |
134 |
|
} |
135 |
|
|
136 |
|
perl_multilib_src_compile() |
137 |
|
{ |
138 |
|
local abi |
139 |
|
for abi in ${MULTILIB_ABIS} |
140 |
|
do |
141 |
|
cd ${SRCDIR}-${abi}/${SRCSUBDIR} |
142 |
|
abi-${abi} perl_run_src_compile $@ || die |
143 |
|
done |
144 |
|
} |
145 |
|
|
146 |
|
perl_run_src_install() |
147 |
|
{ |
148 |
local i |
local i |
149 |
local stat |
local stat |
150 |
|
|
179 |
sed -i "s:${BINDIR}:/:g" ${i} || die |
sed -i "s:${BINDIR}:/:g" ${i} || die |
180 |
fi |
fi |
181 |
done |
done |
182 |
|
} |
183 |
|
|
184 |
|
perl_src_install() |
185 |
|
{ |
186 |
|
cd ${SRCDIR} |
187 |
|
perl_run_src_install || die |
188 |
|
|
189 |
local i |
local i |
190 |
for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \ |
for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \ |
197 |
done |
done |
198 |
} |
} |
199 |
|
|
200 |
|
perl_multilib_src_install() |
201 |
|
{ |
202 |
|
local abi |
203 |
|
local saved_SRCDIR="${SRCDIR}" |
204 |
|
|
205 |
|
for abi in ${MULTILIB_ABIS} |
206 |
|
do |
207 |
|
SRCDIR="${saved_SRCDIR}-${abi}/${SRCSUBDIR}" |
208 |
|
cd ${SRCDIR} |
209 |
|
abi-${abi} perl_run_src_install $@ || die |
210 |
|
|
211 |
|
local i |
212 |
|
for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \ |
213 |
|
FAQ LICENSE NEWS README TODO |
214 |
|
do |
215 |
|
if [ -f ${SRCDIR}/${i} ] |
216 |
|
then |
217 |
|
oldminstalldocs ${i} || die |
218 |
|
fi |
219 |
|
done |
220 |
|
done |
221 |
|
SRCDIR="${saved_SRCDIR}" |
222 |
|
} |
223 |
|
|
224 |
export_inherits perl src_prepare src_compile src_install |
export_inherits perl src_prepare src_check |
225 |
|
if [[ ${MULTILIB_BUILD} = true ]] |
226 |
|
then |
227 |
|
export_inherits perl_multilib src_compile src_install |
228 |
|
else |
229 |
|
export_inherits perl src_compile src_install |
230 |
|
fi |