font-util: use replace-interpreter.sh and remove perl-replace-path.sh
helper which isn't used now. --HG-- extra : convert_revision : b1291d48a5b55e229c37e0374a618ab079eaeb83
This commit is contained in:
parent
b9107abc20
commit
dcaa308afe
3 changed files with 6 additions and 23 deletions
|
@ -1,18 +0,0 @@
|
|||
#
|
||||
# This helper transforms files with wrong perl path to the correct
|
||||
# one pointing at XBPS_MASTERDIR/bin/perl.
|
||||
#
|
||||
|
||||
perl_transform_file()
|
||||
{
|
||||
local files="$@"
|
||||
|
||||
[ -z "$files" ] && exit 1
|
||||
|
||||
for f in ${files}; do
|
||||
[ ! -f $f ] && continue
|
||||
$sed_cmd -e "s|^#!.*/usr/bin/perl|#!$XBPS_MASTERDIR/bin/perl|" \
|
||||
$f > $f.in && $mv_cmd -f $f.in $f && \
|
||||
echo "=> Transformed $(basename $f) with correct path."
|
||||
done
|
||||
}
|
6
templates/font-util-runstuff-before-build.sh
Normal file
6
templates/font-util-runstuff-before-build.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
#
|
||||
# Transform perl shebang path with correct one in bdftruncate.pl.
|
||||
#
|
||||
|
||||
. $XBPS_TMPLHELPDIR/replace-interpreter.sh
|
||||
replace_interpreter perl bdftruncate.pl
|
|
@ -13,8 +13,3 @@ long_desc="
|
|||
and generating truncated BDF font from ISO 10646-1-encoded BDF
|
||||
font. It also provides mapping-files (character set tables)
|
||||
and the fontutil pkg-config and autoconf macro files."
|
||||
|
||||
# Transform bdftruncate.pl with correct path.
|
||||
run_stuff_before_build_cmd="
|
||||
. $XBPS_TMPLHELPDIR/perl-replace-path.sh
|
||||
perl_transform_file $wrksrc/bdftruncate.pl"
|
||||
|
|
Loading…
Reference in a new issue