xbps-src: added "provides" var for use in templates.
This will add support for virtual packages in XBPS; will be implemented in the following days.
This commit is contained in:
parent
c050445077
commit
5e9f331526
2 changed files with 15 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
#-
|
#-
|
||||||
# Copyright (c) 2008-2010 Juan Romero Pardines.
|
# Copyright (c) 2008-2011 Juan Romero Pardines.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -57,7 +57,8 @@ xbps_write_metadata_pkg()
|
||||||
revision openrc_services system_accounts system_groups \
|
revision openrc_services system_accounts system_groups \
|
||||||
preserve keep_empty_dirs xml_entries sgml_entries \
|
preserve keep_empty_dirs xml_entries sgml_entries \
|
||||||
xml_catalogs sgml_catalogs gconf_entries gconf_schemas \
|
xml_catalogs sgml_catalogs gconf_entries gconf_schemas \
|
||||||
gtk_iconcache_dirs font_dirs dkms_modules
|
gtk_iconcache_dirs font_dirs dkms_modules provides \
|
||||||
|
conflicts
|
||||||
. $XBPS_SRCPKGDIR/${sourcepkg}/${subpkg}.template
|
. $XBPS_SRCPKGDIR/${sourcepkg}/${subpkg}.template
|
||||||
pkgname=${subpkg}
|
pkgname=${subpkg}
|
||||||
set_tmpl_common_vars
|
set_tmpl_common_vars
|
||||||
|
@ -355,6 +356,16 @@ _EOF
|
||||||
echo "</array>" >> $TMPFPROPS
|
echo "</array>" >> $TMPFPROPS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Provides virtual package(s).
|
||||||
|
if [ -n "$provides" ]; then
|
||||||
|
echo "<key>provides</key>" >> $TMPFPROPS
|
||||||
|
echo "<array>" >> $TMPFPROPS
|
||||||
|
for f in ${provides}; do
|
||||||
|
echo "<string>$(echo $f|sed "s|<|\<|g;s|>|\>|g")</string>" >> $TMPFPROPS
|
||||||
|
done
|
||||||
|
echo "</array>" >> $TMPFPROPS
|
||||||
|
fi
|
||||||
|
|
||||||
# Terminate the property list file.
|
# Terminate the property list file.
|
||||||
echo "</dict>" >> $TMPFPROPS
|
echo "</dict>" >> $TMPFPROPS
|
||||||
echo "</plist>" >> $TMPFPROPS
|
echo "</plist>" >> $TMPFPROPS
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#-
|
#-
|
||||||
# Copyright (c) 2008-2010 Juan Romero Pardines.
|
# Copyright (c) 2008-2011 Juan Romero Pardines.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -99,7 +99,7 @@ reset_tmpl_vars()
|
||||||
only_for_archs conf_files keep_libtool_archives \
|
only_for_archs conf_files keep_libtool_archives \
|
||||||
noarch subpackages sourcepkg gtk_iconcache_dirs \
|
noarch subpackages sourcepkg gtk_iconcache_dirs \
|
||||||
abi_depends api_depends triggers openrc_services \
|
abi_depends api_depends triggers openrc_services \
|
||||||
replaces system_accounts system_groups \
|
replaces system_accounts system_groups provides \
|
||||||
build_wrksrc create_wrksrc broken_as_needed \
|
build_wrksrc create_wrksrc broken_as_needed \
|
||||||
ignore_vdeps_dir noverifyrdeps conflicts dkms_modules \
|
ignore_vdeps_dir noverifyrdeps conflicts dkms_modules \
|
||||||
gconf_entries gconf_schemas stow_copy stow_copy_files \
|
gconf_entries gconf_schemas stow_copy stow_copy_files \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue