Split pkgs required by xbps-base-chroot, as it was made in Fedora.

- Added an additional shell func to add full (build/run), build
  or run time dependencies to packages. An optional third parameter
  can be used to specify other version than the one set in
  the depends file.
- Use a "depends" file in package directory to specify minimum
  required ABI/API version for a package, so that there's no need
  to set the version all the time in pkgs.
- Updated bash to 4.0.

--HG--
extra : convert_revision : 1aa0ce32d4bdc2cd371eac19ae7bcff2c986b6b3
This commit is contained in:
Juan RP 2009-02-24 07:13:11 +01:00
parent 97821bf458
commit e0030bc0fe
220 changed files with 719 additions and 1304 deletions

View file

@ -56,6 +56,7 @@ xbps_write_metadata_pkg()
if [ ! -f $XBPS_TEMPLATESDIR/${sourcepkg}/${subpkg}.template ]; then
msg_error "Cannot find subpackage template!"
fi
unset run_depends
. $XBPS_TEMPLATESDIR/${sourcepkg}/${subpkg}.template
pkgname=${sourcepkg}-${subpkg}
xbps_write_metadata_pkg_real
@ -65,13 +66,11 @@ xbps_write_metadata_pkg()
[ -n "${subpackages}" ] && [ "$pkg" != "${sourcepkg}" ] && return $?
if [ -n "${subpackages}" ]; then
run_template ${sourcepkg}
unset run_depends
if [ -z "${run_depends}" ]; then
for subpkg in ${subpackages}; do
run_depends="$run_depends ${sourcepkg}-${subpkg}-${version}"
done
fi
for subpkg in ${subpackages}; do
run_depends="$run_depends ${sourcepkg}-${subpkg}-${version}"
done
xbps_write_metadata_pkg_real
}