Github messages for voidlinux
 help / color / mirror / Atom feed
From: dataCobra <dataCobra@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] docker: install manpages
Date: Fri, 18 Nov 2022 15:10:25 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40597@inbox.vuxu.org> (raw)

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

There is a new pull request by dataCobra against master on the void-packages repository

https://github.com/dataCobra/void-packages docker
https://github.com/void-linux/void-packages/pull/40597

docker: install manpages
#### Testing the changes
- I tested the changes in this PR: **YES**

I've added the mechanism to build and install the manpages for docker.


A patch file from https://github.com/void-linux/void-packages/pull/40597.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-docker-40597.patch --]
[-- Type: text/x-diff, Size: 1604 bytes --]

From ce67e0645157f2a61004fb83518e2c3f55c1f8b5 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Fri, 18 Nov 2022 14:58:02 +0100
Subject: [PATCH] docker: install manpages

---
 srcpkgs/docker-cli/template | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/docker-cli/template b/srcpkgs/docker-cli/template
index 0a07c5de340b..90344faee2b5 100644
--- a/srcpkgs/docker-cli/template
+++ b/srcpkgs/docker-cli/template
@@ -1,14 +1,14 @@
 # Template file for 'docker-cli'
 pkgname=docker-cli
 version=20.10.21
-revision=1
+revision=2
 build_style=go
 go_package="github.com/docker/cli/cmd/docker"
 go_import_path="github.com/docker/cli"
 _cli_ver_path="github.com/docker/cli/cli/version"
 go_ldflags="-X \"${_cli_ver_path}.Version=${version}\"
  -X \"${_cli_ver_path}.GitCommit=tag v${version}\""
-hostmakedepends="pkg-config"
+hostmakedepends="pkg-config go-md2man"
 depends="git"
 short_desc="Command-line interface for the Docker daemon"
 maintainer="Andrea Brancaleoni <abc@pompel.me>"
@@ -22,10 +22,21 @@ pre_build() {
 	go_ldflags+=" -X \"${_cli_ver_path}.BuildTime=$(date +%Y-%m-%dT%H:%M:%SZ)\""
 }
 
+post_build() {
+	./man/md2man-all.sh
+}
+
 post_install() {
 	vcompletion contrib/completion/fish/docker.fish fish docker
 	vcompletion contrib/completion/zsh/_docker zsh docker
 	vcompletion contrib/completion/bash/docker bash docker
+
+	vman man/man1/docker-run.1
+	vman man/man1/docker.1
+	vman man/man1/docker-build.1
+	vman man/man5/Dockerfile.5
+	vman man/man5/docker-config-json.5
+	vman man/man8/dockerd.8
 }
 
 docker_package() {

             reply	other threads:[~2022-11-18 14:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-18 14:10 dataCobra [this message]
2022-11-19  4:10 ` [PR PATCH] [Merged]: " classabbyamp

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

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

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40597@inbox.vuxu.org \
    --to=datacobra@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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.
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 NNTP newsgroup(s).