aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2019-01-23 08:01:15 +0100
committerPatrick Spek <p.spek@tyil.nl>2019-01-23 08:01:15 +0100
commitef0fda32b7843d6276a487b4f177914bcde04c22 (patch)
tree34af8ce4b8f24d62f5b933ed90eb5c941233b26f
parent3b020875bb6a225185d65d4f2bf79c446b52ee85 (diff)
downloadApp::CPAN-ef0fda32b7843d6276a487b4f177914bcde04c22.tar.gz
App::CPAN-ef0fda32b7843d6276a487b4f177914bcde04c22.tar.bz2
Prepare App::CPAN for running in a Docker container
-rw-r--r--Dockerfile12
-rw-r--r--META6.json4
-rw-r--r--lib/App/CPAN/Feed.pm62
3 files changed, 16 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..7938235
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,12 @@
+FROM tyil/rakudo-star:latest
+
+COPY bin bin
+COPY lib lib
+COPY META6.json META6.json
+
+ENV PERL6LIB=/root/lib
+
+RUN apk add --no-cache curl git libpq libressl-dev \
+ && zef install --deps-only . \
+ && zef upgrade META6 \
+ && apk del curl git
diff --git a/META6.json b/META6.json
index a9328a6..e26e326 100644
--- a/META6.json
+++ b/META6.json
@@ -5,15 +5,17 @@
],
"depends": [
"DBIish",
+ "DOM::Tiny",
"File::Temp",
"META6:version<0.0.21+>:api<1.0>:auth<github:jonathanstowe>",
+ "OpenSSL",
"XML"
],
"description": "Utilities to interact with CPAN",
"license": "AGPL-3.0",
"meta-version": 0,
"name": "App::CPAN",
- "perl": "6.d",
+ "perl": "6.c",
"provides": {
"App::CPAN::Bin::Import": "lib/App/CPAN/Bin/Import.pm6",
"App::CPAN::Database": "lib/App/CPAN/Database.pm6",
diff --git a/lib/App/CPAN/Feed.pm6 b/lib/App/CPAN/Feed.pm6
index 4937af2..d4f99d4 100644
--- a/lib/App/CPAN/Feed.pm6
+++ b/lib/App/CPAN/Feed.pm6
@@ -63,7 +63,7 @@ multi sub parse-nntp-feed (
my %item = %(
title => @package-parts.head(*-1).join("-"),
version => @package-parts.tail,
- link => '/authors/id/' ~ .text.words.tail,
+ link => '/authors/id/' ~ .text.split(":", 2).tail.trim,
author => @parts[2],
perl => $perl,
);