Rename helper-templates to just helpers.

--HG--
extra : convert_revision : cbaa30da99805accbe250d8dee5494c78cb93291
This commit is contained in:
Juan RP 2008-10-30 23:34:05 +01:00
parent 25a6af5a07
commit 5bb36505b1
15 changed files with 9 additions and 9 deletions

View File

@ -3,7 +3,7 @@ pkgname=irssi
version=0.8.12 version=0.8.12
distfiles="http://www.irssi.org/files/$pkgname-$version.tar.bz2" distfiles="http://www.irssi.org/files/$pkgname-$version.tar.bz2"
# We need this to get some perl paths. # We need this to get some perl paths.
. $XBPS_TMPLHELPDIR/perl-module.sh . $XBPS_HELPERSDIR/perl-module.sh
configure_args="--with-proxy --with-perl-lib=$PERL_SITELIBEXP" configure_args="--with-proxy --with-perl-lib=$PERL_SITELIBEXP"
build_style=gnu_configure build_style=gnu_configure
short_desc="Secure and modular IRC client with text mode user interface" short_desc="Secure and modular IRC client with text mode user interface"

16
xbps.sh
View File

@ -67,14 +67,14 @@ set_defvars()
# Directories # Directories
: ${XBPS_TEMPLATESDIR:=$XBPS_DISTRIBUTIONDIR/templates} : ${XBPS_TEMPLATESDIR:=$XBPS_DISTRIBUTIONDIR/templates}
: ${XBPS_TMPLHELPDIR:=$XBPS_DISTRIBUTIONDIR/helper-templates} : ${XBPS_HELPERSDIR:=$XBPS_DISTRIBUTIONDIR/helpers}
: ${XBPS_PKGDB_FPATH:=$XBPS_DESTDIR/.xbps-pkgdb.plist} : ${XBPS_PKGDB_FPATH:=$XBPS_DESTDIR/.xbps-pkgdb.plist}
: ${XBPS_UTILSDIR:=$XBPS_DISTRIBUTIONDIR/utils} : ${XBPS_UTILSDIR:=$XBPS_DISTRIBUTIONDIR/utils}
: ${XBPS_DIGEST_CMD:=$XBPS_UTILSDIR/xbps-digest} : ${XBPS_DIGEST_CMD:=$XBPS_UTILSDIR/xbps-digest}
: ${XBPS_PKGDB_CMD:=$XBPS_UTILSDIR/xbps-pkgdb} : ${XBPS_PKGDB_CMD:=$XBPS_UTILSDIR/xbps-pkgdb}
: ${XBPS_CMPVER_CMD:=$XBPS_UTILSDIR/xbps-cmpver} : ${XBPS_CMPVER_CMD:=$XBPS_UTILSDIR/xbps-cmpver}
local DDIRS="XBPS_TEMPLATESDIR XBPS_TMPLHELPDIR XBPS_UTILSDIR" local DDIRS="XBPS_TEMPLATESDIR XBPS_HELPERSDIR XBPS_UTILSDIR"
for i in ${DDIRS}; do for i in ${DDIRS}; do
eval val="\$$i" eval val="\$$i"
[ ! -d "$val" ] && msg_error "cannot find $i, aborting." [ ! -d "$val" ] && msg_error "cannot find $i, aborting."
@ -728,7 +728,7 @@ configure_src_phase()
# They are all handled by the helper perl-module.sh. # They are all handled by the helper perl-module.sh.
# #
elif [ "$build_style" = "perl_module" ]; then elif [ "$build_style" = "perl_module" ]; then
. $XBPS_TMPLHELPDIR/perl-module.sh . $XBPS_HELPERSDIR/perl-module.sh
perl_module_build $pkgname perl_module_build $pkgname
# #
@ -1149,7 +1149,7 @@ install_pkg()
[ -z "$origin_tmpl" ] && origin_tmpl=$pkgname [ -z "$origin_tmpl" ] && origin_tmpl=$pkgname
if [ -z "$base_chroot" -a -z "$in_chroot" ]; then if [ -z "$base_chroot" -a -z "$in_chroot" ]; then
run_file $XBPS_TMPLHELPDIR/chroot.sh run_file $XBPS_HELPERSDIR/chroot.sh
chroot_pkg_handler install $curpkgn chroot_pkg_handler install $curpkgn
return $? return $?
fi fi
@ -1300,7 +1300,7 @@ stow_pkg()
fi fi
for i in ${postinstall_helpers}; do for i in ${postinstall_helpers}; do
local pihf="$XBPS_TMPLHELPDIR/$i" local pihf="$XBPS_HELPERSDIR/$i"
[ -f "$pihf" ] && . $pihf [ -f "$pihf" ] && . $pihf
done done
} }
@ -1389,7 +1389,7 @@ case "$target" in
build) build)
setup_tmpl $2 setup_tmpl $2
if [ -z "$base_chroot" -a -z "$in_chroot" ]; then if [ -z "$base_chroot" -a -z "$in_chroot" ]; then
run_file $XBPS_TMPLHELPDIR/chroot.sh run_file $XBPS_HELPERSDIR/chroot.sh
chroot_pkg_handler build $2 chroot_pkg_handler build $2
else else
fetch_distfiles $2 fetch_distfiles $2
@ -1403,13 +1403,13 @@ build)
fi fi
;; ;;
chroot) chroot)
run_file $XBPS_TMPLHELPDIR/chroot.sh run_file $XBPS_HELPERSDIR/chroot.sh
chroot_pkg_handler chroot dummy chroot_pkg_handler chroot dummy
;; ;;
configure) configure)
setup_tmpl $2 setup_tmpl $2
if [ -z "$base_chroot" -a -z "$in_chroot" ]; then if [ -z "$base_chroot" -a -z "$in_chroot" ]; then
run_file $XBPS_TMPLHELPDIR/chroot.sh run_file $XBPS_HELPERSDIR/chroot.sh
chroot_pkg_handler configure $2 chroot_pkg_handler configure $2
else else
fetch_distfiles $2 fetch_distfiles $2