params.stk 2.2 KB
Newer Older
1 2
;;;;
;;;; params.stk	-- Stklos-Pkg parameters
3
;;;;
4
;;;; Copyright © 2006-2010 Erick Gallesio - I3S-CNRS/ESSI <eg@essi.fr>
5 6
;;;;
;;;;
7 8 9 10
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
11
;;;;
12 13 14 15
;;;; This program is distributed in the hope that it will be useful,
;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;;; GNU General Public License for more details.
16
;;;;
17 18
;;;; You should have received a copy of the GNU General Public License
;;;; along with this program; if not, write to the Free Software
19
;;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
20
;;;; USA.
21
;;;;
22 23
;;;;           Author: Erick Gallesio [eg@essi.fr]
;;;;    Creation date: 26-Dec-2006 16:23 (eg)
24
;;;; Last file update: 29-Dec-2010 19:15 (eg)
25 26 27
;;;;


28 29 30 31 32 33
(define stklos-pkg-servers-directory
  (make-parameter "" (lambda (x) (ensure-directories-exist x) x)))

(define stklos-pkg-cache-directory
  (make-parameter "" (lambda (x) (ensure-directories-exist x) x)))

34
(define stklos-pkg-directory
35 36 37 38 39
  (make-parameter (%stklos-conf-file "pkg")
		  (lambda (d)
		    (let ((dir (expand-file-name d)))
		      (ensure-directories-exist dir)
		      (stklos-pkg-servers-directory (make-path dir "servers"))
40
		      (stklos-pkg-cache-directory (make-path dir "cache"))
41
		      dir))))
42

Erick Gallesio's avatar
Erick Gallesio committed
43
(define stklos-pkg-system-directory
44
  (make-parameter (make-path (%library-prefix) "lib" "stklos" "pkg")))
45 46


47

48
(define make-command
49
  (make-parameter (or (getenv "MAKE") "make")))
Erick Gallesio's avatar
Erick Gallesio committed
50

51 52 53 54 55 56
(define stklos-pkg-extract-dir
  (make-parameter (getcwd)))

(define stklos-pkg-verbosity
  (make-parameter 0))

Erick Gallesio's avatar
Erick Gallesio committed
57 58 59
(define stklos-pkg-swide
  (make-parameter #f))

60 61 62
(define pkgball-suffix
  (make-parameter ".tar.gz"))

63 64
(define stklos-pkg-default-url
  (make-parameter (or (getenv "STKLOS_SCMPKG_URL")
65
		      "http://www.stklos.net/ScmPkg/Packages")))
66

67 68
(define stklos-pkg-sync-urls
  (make-parameter '(
69
      ("main"   "http://www.stklos.net/ScmPkg/main")
70
      ("stklos" "http://www.stklos.net/ScmPkg/stklos")
71 72
      )))