unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: SourceForge URLs changed
Date: Fri, 15 Jul 2016 23:00:09 -0400	[thread overview]
Message-ID: <20160716030009.GA18350@jasmine> (raw)
In-Reply-To: <20160716025800.GA17853@jasmine>

[-- Attachment #1: Type: text/plain, Size: 211 bytes --]

On Fri, Jul 15, 2016 at 10:58:00PM -0400, Leo Famulari wrote:
> Alex Kost helpfully provided a Guile script to return all packages that
> download from SourceForge (attached).

As always, I forgot to attach it.

[-- Attachment #2: paste_781793 --]
[-- Type: text/plain, Size: 928 bytes --]

(use-modules
 (ice-9 regex)
 (ice-9 format)
 (srfi srfi-2)
 (gnu packages)
 (guix packages))

;; (define sourceforge-uri-rx (make-regexp "mirror://sourceforge"))
(define sourceforge-uri-rx (make-regexp "sourceforge"))

(define (sourceforge-package? package)
  (and-let* ((source (package-source package))
             (uri (origin-uri source)))
    (and (string? uri)
         (regexp-exec sourceforge-uri-rx uri))))

(define sourceforge-packages
  (fold-packages (lambda (pkg res)
                   (if (sourceforge-package? pkg)
                       (cons pkg res)
                       res))
                 '()))

(define (display-sourceforge-packages)
  (for-each (lambda (pkg)
            (format #t "~a@~a:~/~a~%"
                    (package-name pkg)
                    (package-version pkg)
                    (origin-uri (package-source pkg))))
          sourceforge-packages))

(display-sourceforge-packages)

  reply	other threads:[~2016-07-16  3:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-12 23:00 SourceForge URLs changed Ludovic Courtès
2016-07-12 23:37 ` Alex Griffin
2016-07-13 10:16   ` Ludovic Courtès
2016-07-15 15:28     ` Alex Griffin
2016-07-15 17:58       ` Leo Famulari
2016-07-15 18:15         ` Alex Griffin
2016-07-16 12:17           ` Ludovic Courtès
2016-07-16  2:58 ` Leo Famulari
2016-07-16  3:00   ` Leo Famulari [this message]
2016-07-17 20:58   ` Leo Famulari
2016-07-17 21:40     ` Ricardo Wurmus
2016-07-17 21:50       ` Leo Famulari
2016-07-18 18:30     ` Alex Griffin
2016-07-18 22:21       ` Leo Famulari
2016-07-21 14:33   ` Leo Famulari
2016-07-21 15:32     ` Andreas Enge
2016-07-21 16:34       ` Ludovic Courtès
2016-07-21 20:41     ` Alex Griffin
2016-07-21 22:13       ` Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160716030009.GA18350@jasmine \
    --to=leo@famulari.name \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).