This repository was archived by the owner on Feb 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +23
-4
lines changed
Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,12 @@ PCFILES = @SAGE_SYSTEM_FACADE_PC_FILES@
4141LN = ln
4242SED = sed
4343
44+ # We need to be able to override this to support ./sage -i -c PKG
45+ SAGE_SPKG = sage-spkg
46+
47+ # These are added to SAGE_SPKG in the call
48+ SAGE_SPKG_OPTIONS = @SAGE_SPKG_OPTIONS@
49+
4450# Generate/install sage-specific .pc files.
4551# see build/pkgs/gsl/spkg-configure.m4
4652$(SAGE_PKGCONFIG ) /gsl.pc :
@@ -203,7 +209,7 @@ pkg_deps = \
203209# $(3): package dependencies
204210define NORMAL_PACKAGE_templ
205211$$(INST ) /$(1 ) -$(2 ) : $(3 )
206- +$(AM_V_at ) sage-logger -p '$$(SAGE_SPKG ) \
212+ +$(AM_V_at ) sage-logger -p '$$(SAGE_SPKG ) $$( SAGE_SPKG_OPTIONS ) \
207213 $(if $(filter $(1 ) ,$(TOOLCHAIN_DEPS ) ) ,--keep-existing) \
208214 $(1 ) -$(2 ) ' '$$(SAGE_LOGS ) /$(1 ) -$(2 ) .log'
209215
Original file line number Diff line number Diff line change 1212AM_V_at =
1313endif
1414
15- # We need to be able to override this to support ./sage -i -c PKG
16- SAGE_SPKG = sage-spkg -y -o
17-
1815# List of targets that can be run using `sage -i` or `sage -f`
1916# These should generally have an associated -clean target for `sage -f` to
2017# work correctly
Original file line number Diff line number Diff line change @@ -423,6 +423,22 @@ if test "$SAGE_INSTALL_CCACHE" = yes ; then
423423fi
424424AC_SUBST ( [ SAGE_TOOLCHAIN] )
425425
426+ AC_ARG_ENABLE ( [ experimental-packages] ,
427+ [ AS_HELP_STRING ( [ --enable-experimental-packages] ,
428+ [ allow installing experimental packages (default: no = ask for user confirmation for each package)] ) ] )
429+ AC_ARG_ENABLE ( [ download-from-upstream-url] ,
430+ [ AS_HELP_STRING ( [ --enable-download-from-upstream-url] ,
431+ [ allow downloading packages from their upstream URL if they cannot be found on the Sage mirrors] ) ] )
432+
433+ SAGE_SPKG_OPTIONS=""
434+ AS_IF ( [ test "x$enable_experimental_packages" = "xyes"] , [
435+ AS_VAR_APPEND ( [ SAGE_SPKG_OPTIONS] , [ " -y"] )
436+ ] )
437+ AS_IF ( [ test "x$enable_download_from_upstream_url" = "xyes"] , [
438+ AS_VAR_APPEND ( [ SAGE_SPKG_OPTIONS] , [ " -o"] )
439+ ] )
440+ AC_SUBST ( [ SAGE_SPKG_OPTIONS] )
441+
426442SAGE_SPKG_COLLECT()
427443
428444# We need sage-env-config to exist before running this.
You can’t perform that action at this time.
0 commit comments