perl-Text-BibTeX: rebuild for perl 5.34
This commit is contained in:
parent
38dfa329a9
commit
78bc269a3b
1 changed files with 14 additions and 15 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'perl-Text-BibTeX'
|
# Template file for 'perl-Text-BibTeX'
|
||||||
pkgname=perl-Text-BibTeX
|
pkgname=perl-Text-BibTeX
|
||||||
version=0.88
|
version=0.88
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc="${pkgname/perl-/}-${version}"
|
wrksrc="${pkgname/perl-/}-${version}"
|
||||||
build_style=perl-ModuleBuild
|
build_style=perl-ModuleBuild
|
||||||
hostmakedepends="perl-ExtUtils-LibBuilder perl-Config-AutoConf"
|
hostmakedepends="perl-ExtUtils-LibBuilder perl-Config-AutoConf"
|
||||||
|
@ -13,24 +13,23 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
|
||||||
homepage="https://metacpan.org/release/Text-BibTeX/"
|
homepage="https://metacpan.org/release/Text-BibTeX/"
|
||||||
distfiles="${CPAN_SITE}/Text/${pkgname/perl-/}-${version}.tar.gz"
|
distfiles="${CPAN_SITE}/Text/${pkgname/perl-/}-${version}.tar.gz"
|
||||||
checksum=b014586e68bdbcafb0a2cfa0401eb0a04ea5de8c4d5bc36dd0f7faeab6acf42c
|
checksum=b014586e68bdbcafb0a2cfa0401eb0a04ea5de8c4d5bc36dd0f7faeab6acf42c
|
||||||
|
shlib_requires="libperl.so.5.34"
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
_perlprefix=${XBPS_STATEDIR}/perlprefix-${XBPS_TARGET_MACHINE}
|
export PERL5LIB=${XBPS_STATEDIR}/perlprefix-${XBPS_TARGET_MACHINE}
|
||||||
export PERL5LIB=$_perlprefix
|
|
||||||
|
|
||||||
do_build() {
|
|
||||||
mkdir -p $_perlprefix
|
|
||||||
cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Config"*.p? $_perlprefix
|
|
||||||
cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Errno.pm" $_perlprefix
|
|
||||||
sed -i -e "s;archlibexp => '\(.*\)';archlibexp => '${XBPS_CROSS_BASE}\1';" \
|
|
||||||
${_perlprefix}/Config.pm
|
|
||||||
sed -i -e "s;^archlibexp='\(.*\)';archlibexp='${XBPS_CROSS_BASE}\1';" \
|
|
||||||
${_perlprefix}/Config_heavy.pl
|
|
||||||
|
|
||||||
LD="$CC" ./Build ${make_build_args}
|
|
||||||
}
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
post_configure() {
|
||||||
|
[ "$CROSS_BUILD" ] || return 0
|
||||||
|
mkdir -p $PERL5LIB
|
||||||
|
cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Config"*.p? $PERL5LIB
|
||||||
|
cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Errno.pm" $PERL5LIB
|
||||||
|
sed -i -e "s;archlibexp => '\(.*\)';archlibexp => '${XBPS_CROSS_BASE}\1';" \
|
||||||
|
${PERL5LIB}/Config.pm
|
||||||
|
sed -i -e "s;^archlibexp='\(.*\)';archlibexp='${XBPS_CROSS_BASE}\1';" \
|
||||||
|
${PERL5LIB}/Config_heavy.pl
|
||||||
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
LD="$CC" ./Build ${make_install_args} install
|
LD="$CC" ./Build ${make_install_args} install
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue