X-Git-Url: http://git.kpe.io/?p=lml2.git;a=blobdiff_plain;f=downloads.lisp;h=33d86150ab4fecccf63034f7c4d2351dd48f4f06;hp=99445ef39ae9c305da39a7c78d3267911b516095;hb=d087da5d987f4e02b7c17c197dc61057881cbd8b;hpb=3f79f112db5657614a19231437f75126ef7f01f3 diff --git a/downloads.lisp b/downloads.lisp index 99445ef..33d8615 100644 --- a/downloads.lisp +++ b/downloads.lisp @@ -133,9 +133,9 @@ (dolist (sect sects) (display-sections sect dl-data)) (when giturl - (if gitweb - (lml-format "

Git Repository

~A" gitweb giturl) - (lml-format "

Git Repository

~A" giturl))) + (lml-format "

Git Repository

~A" giturl) + (when gitweb + (lml-format "  [Browse]" gitweb))) (display-footer dl-data))) (defun std-dl-page (pkg-name pkg-base dl-base dl-url &optional giturl gitweb) @@ -165,14 +165,24 @@ (w32-path (merge-pathnames (make-pathname :directory '(:relative "win32") :type :wild :name :wild) + base)) + (mac-path (merge-pathnames + (make-pathname :directory '(:relative "mac") + :type :wild :name :wild) + base)) + (linux-path (merge-pathnames + (make-pathname :directory '(:relative "linux") + :type :wild :name :wild) base))) (display-page pkg-name pkg-base dl-base dl-url giturl gitweb `(("Manual" ,doc-path) - ("Source Code" - (("Unix (.tar.gz)" ,tgz-path) - ("Windows (.zip)" ,zip-path))) + ,@(when (or (directory tgz-path) (directory zip-path)) + `(("Source Code" + (("Unix (.tar.gz)" ,tgz-path) + ("Windows (.zip)" ,zip-path))))) ("Binaries" - (("Linux Binaries" - (("Debian Linux" ,deb-path) - ("RedHat Linux" ,rpm-path))) + (("Linux Binaries" ,linux-path) + ("Linux .deb Packages" ,deb-path) + ("Linux .rpm Packages" ,rpm-path) + ("Mac Binaries" ,mac-path) ("Windows Binaries" ,w32-path))))))))