Infrastructure changes to allow unsetting template vars/funcs.
xbps-src-112 does not unset those vars/funcs anymore, so it's a work that must be done via common/environment/setup{,-subpkg}.
This commit is contained in:
parent
38c7494c9e
commit
0026342862
10 changed files with 89 additions and 12 deletions
|
@ -5,7 +5,9 @@
|
|||
# =========================================================
|
||||
# DO NOT MODIFY THIS FILE WITHOUT PRIOR WRITTEN PERMISSION!
|
||||
# =========================================================
|
||||
#
|
||||
|
||||
set -a
|
||||
|
||||
# xbps-src version.
|
||||
XBPS_SRC_REQ=110
|
||||
|
||||
|
@ -14,3 +16,5 @@ XBPS_UTILS_REQ=0.33
|
|||
|
||||
# XBPS utils API version.
|
||||
XBPS_UTILS_API_REQ=20140304
|
||||
|
||||
set +a
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
# Common variables that can be used by xbps-src.
|
||||
#
|
||||
# SITE used for ditfiles mirrors. For use in $distfiles.
|
||||
set -a
|
||||
|
||||
SOURCEFORGE_SITE="http://downloads.sourceforge.net/sourceforge"
|
||||
NONGNU_SITE="http://download.savannah.nongnu.org/releases"
|
||||
UBUNTU_SITE="http://archive.ubuntu.com/ubuntu/pool"
|
||||
|
@ -18,3 +20,5 @@ FREEDESKTOP_SITE="http://freedesktop.org/software"
|
|||
# Repetitive sub homepage's with no real project page
|
||||
# ie. some gnome and xorg projects. For use in $homepage.
|
||||
XORG_HOME="http://xorg.freedesktop.org/wiki/"
|
||||
|
||||
set +a
|
||||
|
|
26
common/environment/setup/sourcepkg.sh
Normal file
26
common/environment/setup/sourcepkg.sh
Normal file
|
@ -0,0 +1,26 @@
|
|||
# This shell snippet unsets all variables/functions that can be used in
|
||||
# the package template (excluding subpackages).
|
||||
|
||||
## VARIABLES
|
||||
unset -v pkgname version revision short_desc homepage license maintainer
|
||||
unset -v only_for_archs distfiles checksum build_style
|
||||
unset -v configure_script configure_args wrksrc build_wrksrc create_wrksrc
|
||||
unset -v make_cmd make_build_args make_install_args make_build_target make_install_target
|
||||
unset -v patch_args disable_parallel_build keep_libtool_archives
|
||||
unset -v makedepends hostmakedepends depends
|
||||
unset -v build_options build_options_default bootstrap
|
||||
unset -v CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LD_LIBRARY_PATH
|
||||
unset -v CC CXX CPP GCC LD AR AS RANLIB NM OBJDUMP OBJCOPY STRIP READELF
|
||||
|
||||
# hooks/do-extract/00-distfiles
|
||||
unset -v skip_extraction
|
||||
|
||||
# hooks/post-install/03-strip-and-debug-pkgs
|
||||
unset -v force_debug_pkgs
|
||||
|
||||
## FUNCTIONS
|
||||
unset -f pre_fetch do_fetch post_fetch
|
||||
unset -f pre_extract do_extract post_extract
|
||||
unset -f pre_configure do_configure post_configure
|
||||
unset -f pre_build do_build post_build
|
||||
unset -f pre_install do_install post_install
|
Loading…
Add table
Add a link
Reference in a new issue