Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] [RFC] vlicense hook
@ 2020-04-23 15:46 sgn
  2020-04-23 15:48 ` sgn
                   ` (40 more replies)
  0 siblings, 41 replies; 42+ messages in thread
From: sgn @ 2020-04-23 15:46 UTC (permalink / raw)
  To: ml

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

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

https://github.com/sgn/void-packages vlicense-hook
https://github.com/void-linux/void-packages/pull/21272

[RFC] vlicense hook


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

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

From 6fbf6fa3e8b0503dff0adc428c5edeb19472a6c9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx+sgn@gmail.com>
Date: Thu, 23 Apr 2020 22:29:35 +0700
Subject: [PATCH 1/3] hook: post-install: install $license_file

---
 common/hooks/post-install/13-vlicense.sh | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 common/hooks/post-install/13-vlicense.sh

diff --git a/common/hooks/post-install/13-vlicense.sh b/common/hooks/post-install/13-vlicense.sh
new file mode 100644
index 00000000000..8b6724fd72d
--- /dev/null
+++ b/common/hooks/post-install/13-vlicense.sh
@@ -0,0 +1,16 @@
+# This hook install $license_file
+
+hook() {
+	local pair file target
+	cd "$wrksrc" || return 0
+	for pair in $license_file
+	do
+		file=${pair%:*}
+		if [ "$file" = "$pair" ]; then
+			target=
+		else
+			target=${pair#*:}
+		fi
+		vlicense "$file" "$target"
+	done
+}

From b74b4c485864aa70e41839199371e96b46ebbe00 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx+sgn@gmail.com>
Date: Thu, 23 Apr 2020 22:39:36 +0700
Subject: [PATCH 2/3] fortune-mod: show case new vlicense hook

---
 srcpkgs/fortune-mod/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/fortune-mod/template b/srcpkgs/fortune-mod/template
index 0eb27936c07..4ac0d9aed23 100644
--- a/srcpkgs/fortune-mod/template
+++ b/srcpkgs/fortune-mod/template
@@ -7,6 +7,7 @@ makedepends="recode-devel"
 short_desc="Implementation of the BSDGames 'fortune' program"
 maintainer="Tj Vanderpoel (bougyman) <tj@rubyists.com>"
 license="BSD-4-Clause-UC"
+license_file="LICENSE"
 homepage="http://www.redellipse.net/code/fortune"
 distfiles="${DEBIAN_SITE}/main/f/fortune-mod/${pkgname}_${version}.orig.tar.gz"
 checksum=fc51aee1f73c936c885f4e0f8b6b48f4f68103e3896eaddc6a45d2b71e14eace
@@ -35,5 +36,4 @@ do_install() {
 	make prefix=${DESTDIR} FORTDIR=${DESTDIR}/usr/bin \
 		COOKIEDIR=$DESTDIR/usr/share/fortunes \
 		install
-	vlicense LICENSE
 }

From 4bd855ae4b5a6ed040aa4ce8fb83cac2b681364a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx+sgn@gmail.com>
Date: Thu, 23 Apr 2020 22:40:13 +0700
Subject: [PATCH 3/3] lua-zlib: showcase complicated hook for vlicense

---
 srcpkgs/lua-zlib/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/lua-zlib/template b/srcpkgs/lua-zlib/template
index dfb6701cb62..8d35cf3743b 100644
--- a/srcpkgs/lua-zlib/template
+++ b/srcpkgs/lua-zlib/template
@@ -8,6 +8,7 @@ makedepends="lua51-devel lua52-devel lua-devel zlib-devel"
 short_desc="Zlib streamng interface for lua"
 maintainer="John Regan <john@jrjrtech.com>"
 license="MIT"
+license_file="lua53/README:LICENSE"
 homepage="https://github.com/brimworks/lua-zlib/"
 distfiles="${homepage}archive/v${version}.tar.gz"
 checksum=26b813ad39c94fc930b168c3418e2e746af3b2e80b92f94f306f6f954cc31e7d
@@ -53,21 +54,20 @@ do_install() {
 		  ${makejobs} install
 		)
 	done
-	vlicense "lua53/README"
 }
 
 lua51-zlib_package() {
 	short_desc+=" - Lua 5.1"
+	license_file="lua51/README:LICENSE"
 	pkg_install() {
 		vmove usr/lib/lua/5.1
-		vlicense "${wrksrc}/lua51/README"
 	}
 }
 
 lua52-zlib_package() {
 	short_desc+=" - Lua 5.2"
+	license_file="lua52/README:LICENSE"
 	pkg_install() {
 		vmove usr/lib/lua/5.2
-		vlicense "${wrksrc}/lua52/README"
 	}
 }

^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2020-09-19  3:42 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-23 15:46 [PR PATCH] [RFC] vlicense hook sgn
2020-04-23 15:48 ` sgn
2020-04-23 16:17 ` pullmoll
2020-04-24  0:10 ` sgn
2020-04-24  1:34 ` ahesford
2020-04-24  1:38 ` ahesford
2020-04-24  3:05 ` Vaelatern
2020-04-24  9:53 ` leahneukirchen
2020-04-24 10:40 ` xtraeme
2020-04-24 10:47 ` leahneukirchen
2020-04-24 14:06 ` Vaelatern
2020-04-24 14:10 ` xtraeme
2020-04-24 14:18 ` Vaelatern
2020-04-24 14:21 ` ahesford
2020-04-24 16:40 ` Chocimier
2020-04-24 16:48 ` leahneukirchen
2020-04-24 17:59 ` sgn
2020-04-24 18:02 ` sgn
2020-04-24 18:02 ` ahesford
2020-04-24 18:06 ` ahesford
2020-04-24 18:17 ` Vaelatern
2020-04-24 18:23 ` ahesford
2020-04-24 19:02 ` Chocimier
2020-04-25  0:31 ` Chocimier
2020-04-26  1:17 ` sgn
2020-04-30  1:06 ` sgn
2020-04-30  3:38 ` ahesford
2020-04-30  4:59 ` Anachron
2020-04-30  8:08 ` sgn
2020-04-30  8:09 ` sgn
2020-04-30 11:21 ` travankor
2020-04-30 11:25 ` travankor
2020-04-30 11:37 ` ahesford
2020-04-30 11:44 ` ahesford
2020-04-30 11:44 ` ahesford
2020-04-30 11:46 ` travankor
2020-04-30 14:45 ` Vaelatern
2020-04-30 17:59 ` Chocimier
2020-04-30 18:02 ` Chocimier
2020-04-30 18:29 ` Chocimier
2020-04-30 18:37 ` Chocimier
2020-09-19  3:42 ` [PR PATCH] [Closed]: " sgn

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).