/[gentoo-alt]/trunk/prefix/dev-lang/perl/perl-5.8.7-r1.ebuild
Gentoo

Diff of /trunk/prefix/dev-lang/perl/perl-5.8.7-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1165 Revision 1166
233 sh Configure -des \ 233 sh Configure -des \
234 -Darchname="${myarch}" \ 234 -Darchname="${myarch}" \
235 -Dcccdlflags='-fPIC' \ 235 -Dcccdlflags='-fPIC' \
236 -Dccdlflags='-rdynamic' \ 236 -Dccdlflags='-rdynamic' \
237 -Dcc="$(tc-getCC)" \ 237 -Dcc="$(tc-getCC)" \
238 -Dprefix="${PREFIX}/usr" \ 238 -Dprefix="${EPREFIX}/usr" \
239 -Dvendorprefix="${PREFIX}/usr" \ 239 -Dvendorprefix="${EPREFIX}/usr" \
240 -Dsiteprefix="${PREFIX}/usr" \ 240 -Dsiteprefix="${EPREFIX}/usr" \
241 -Dlocincpth=' ' \ 241 -Dlocincpth=' ' \
242 -Doptimize="${CFLAGS}" \ 242 -Doptimize="${CFLAGS}" \
243 -Duselargefiles \ 243 -Duselargefiles \
244 -Dd_semctl_semun \ 244 -Dd_semctl_semun \
245 -Dscriptdir="${PREFIX}/usr/bin" \ 245 -Dscriptdir="${EPREFIX}/usr/bin" \
246 -Dman1dir="${PREFIX}/usr/share/man/man1" \ 246 -Dman1dir="${EPREFIX}/usr/share/man/man1" \
247 -Dman3dir="${PREFIX}/usr/share/man/man3" \ 247 -Dman3dir="${EPREFIX}/usr/share/man/man3" \
248 -Dinstallman1dir=${D}/usr/share/man/man1 \ 248 -Dinstallman1dir=${D}/usr/share/man/man1 \
249 -Dinstallman3dir=${D}/usr/share/man/man3 \ 249 -Dinstallman3dir=${D}/usr/share/man/man3 \
250 -Dman1ext='1' \ 250 -Dman1ext='1' \
251 -Dman3ext='3pm' \ 251 -Dman3ext='3pm' \
252 -Dinc_version_list="$inclist" \ 252 -Dinc_version_list="$inclist" \
287 287
288 local installtarget=install 288 local installtarget=install
289 if use minimal || use build ; then 289 if use minimal || use build ; then
290 installtarget=install.perl 290 installtarget=install.perl
291 fi 291 fi
292 make DESTDIR="${DEST}" ${installtarget} || die "Unable to make ${installtarget}" 292 make DESTDIR="${EDEST}" ${installtarget} || die "Unable to make ${installtarget}"
293 293
294 # 2004.07.28 rac 294 # 2004.07.28 rac
295 295
296 # suidperl has had a history of security trouble, and the 296 # suidperl has had a history of security trouble, and the
297 # perldelta has recommended against using it for a while. genone 297 # perldelta has recommended against using it for a while. genone
308 ln -s perl${PV} ${D}/usr/bin/perl 308 ln -s perl${PV} ${D}/usr/bin/perl
309 309
310 cp -f utils/h2ph utils/h2ph_patched 310 cp -f utils/h2ph utils/h2ph_patched
311 epatch ${FILESDIR}/${PN}-h2ph-ansi-header.patch 311 epatch ${FILESDIR}/${PN}-h2ph-ansi-header.patch
312 312
313 LD_LIBRARY_PATH=. ./perl -Ilib utils/h2ph_patched \ 313 LD_LIBRARY_PATH=. DYLD_LIBRARY_PATH=. ./perl -Ilib utils/h2ph_patched \
314 -a -d ${D}/usr/lib/perl5/${PV}/${myarch}${mythreading} <<EOF 314 -a -d ${D}/usr/lib/perl5/${PV}/${myarch}${mythreading} <<EOF
315asm/termios.h 315asm/termios.h
316syscall.h 316syscall.h
317syslimits.h 317syslimits.h
318syslog.h 318syslog.h
329 ${i} > ${i}.new &&\ 329 ${i} > ${i}.new &&\
330 mv ${i}.new ${i} || die "Sed failed" 330 mv ${i}.new ${i} || die "Sed failed"
331 done 331 done
332 332
333 # A poor fix for the miniperl issues 333 # A poor fix for the miniperl issues
334 dosed "s:./miniperl:${PREFIX}/usr/bin/perl:" ${PREFIX}/usr/lib/perl5/${PV}/ExtUtils/xsubpp 334 dosed "s:./miniperl:${EPREFIX}/usr/bin/perl:" ${EPREFIX}/usr/lib/perl5/${PV}/ExtUtils/xsubpp
335 fperms 0444 /usr/lib/perl5/${PV}/ExtUtils/xsubpp 335 fperms 0444 /usr/lib/perl5/${PV}/ExtUtils/xsubpp
336 dosed "s:./miniperl:${PREFIX}/usr/bin/perl:" ${PREFIX}/usr/bin/xsubpp 336 dosed "s:./miniperl:${EPREFIX}/usr/bin/perl:" ${EPREFIX}/usr/bin/xsubpp
337 fperms 0755 /usr/bin/xsubpp 337 fperms 0755 /usr/bin/xsubpp
338 338
339 # This removes ${D} from Config.pm and .packlist 339 # This removes ${D} from Config.pm and .packlist
340 for i in `find ${D} -iname "Config.pm"` `find ${D} -iname ".packlist"`;do 340 for i in `find ${D} -iname "Config.pm"` `find ${D} -iname ".packlist"`;do
341 einfo "Removing ${D} from ${i}..." 341 einfo "Removing ${D} from ${i}..."
574 popd > /dev/null 574 popd > /dev/null
575} 575}
576 576
577pkg_postinst() { 577pkg_postinst() {
578 # Make sure we do not have stale/invalid libperl.so 's ... 578 # Make sure we do not have stale/invalid libperl.so 's ...
579 if [ -f "${ROOT}usr/$(get_libdir)/libperl$(get_libname)" -a ! -L "${ROOT}usr/$(get_libdir)/libperl$(get_libname)" ] 579 if [ -f "${ROOT}/usr/$(get_libdir)/libperl$(get_libname)" -a ! -L "${ROOT}/usr/$(get_libdir)/libperl$(get_libname)" ]
580 then 580 then
581 mv -f ${ROOT}usr/$(get_libdir)/libperl$(get_libname) ${ROOT}usr/$(get_libdir)/libperl$(get_libname).old 581 mv -f ${ROOT}/usr/$(get_libdir)/libperl$(get_libname) ${ROOT}/usr/$(get_libdir)/libperl$(get_libname).old
582 fi 582 fi
583 583
584 local perllib="`readlink -f ${ROOT}usr/$(get_libdir)/libperl$(get_libname) | sed -e 's:^.*/::'`" 584 local perllib="`readlink -f ${ROOT}/usr/$(get_libdir)/libperl$(get_libname) | sed -e 's:^.*/::'`"
585 585
586 # If we are installing perl, we need the /usr/lib/libperl.so symlink to 586 # If we are installing perl, we need the /usr/lib/libperl.so symlink to
587 # point to the version of perl we are running, else builing something 587 # point to the version of perl we are running, else builing something
588 # against libperl.so will break ... 588 # against libperl.so will break ...
589 if [ "${perllib}" != "${LIBPERL}" ] 589 if [ "${perllib}" != "${LIBPERL}" ]
590 then 590 then
591 # Delete stale symlinks 591 # Delete stale symlinks
592 rm -f ${ROOT}usr/$(get_libdir)/libperl$(get_libname) 592 rm -f ${ROOT}/usr/$(get_libdir)/libperl$(get_libname)
593 rm -f ${ROOT}usr/$(get_libdir)/libperl$(get_libname ${PERLSLOT}) 593 rm -f ${ROOT}/usr/$(get_libdir)/libperl$(get_libname ${PERLSLOT})
594 # Regenerate libperl.so.${PERLSLOT} 594 # Regenerate libperl.so.${PERLSLOT}
595 ln -snf ${LIBPERL} ${ROOT}usr/$(get_libdir)/libperl$(get_libname).${PERLSLOT} 595 ln -snf ${LIBPERL} ${ROOT}/usr/$(get_libdir)/libperl$(get_libname ${PERLSLOT})
596 # Create libperl.so (we use the *soname* versioned lib here ..) 596 # Create libperl.so (we use the *soname* versioned lib here ..)
597 ln -snf libperl$(get_libname ${PERLSLOT}) ${ROOT}usr/$(get_libdir)/libperl$(get_libname) 597 ln -snf libperl$(get_libname ${PERLSLOT}) ${ROOT}usr/$(get_libdir)/libperl$(get_libname)
598 fi 598 fi
599 599
600 INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${PV}'|etc|local|perl$/; print "$line\n" }') 600 INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${PV}'|etc|local|perl$/; print "$line\n" }')

Legend:
Removed from v.1165  
changed lines
  Added in v.1166

  ViewVC Help
Powered by ViewVC 1.1.20