public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-alternatives/tar/
@ 2022-11-28 14:31 Michał Górny
  0 siblings, 0 replies; 7+ messages in thread
From: Michał Górny @ 2022-11-28 14:31 UTC (permalink / raw
  To: gentoo-commits

commit:     e518a7f2b3bc5c35d89541eff4a2baffa8407b0c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 22 21:04:27 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Nov 28 14:31:35 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e518a7f2

app-alternatives/tar: Add an ebuild for /bin/tar symlink

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 app-alternatives/tar/metadata.xml | 20 ++++++++++++++++++++
 app-alternatives/tar/tar-0.ebuild | 36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/app-alternatives/tar/metadata.xml b/app-alternatives/tar/metadata.xml
new file mode 100644
index 000000000000..3bf8c905056c
--- /dev/null
+++ b/app-alternatives/tar/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>base-system@gentoo.org</email>
+		<name>Gentoo Base System</name>
+	</maintainer>
+	<maintainer type="person">
+		<email>mgorny@gentoo.org</email>
+		<name>Michał Górny</name>
+	</maintainer>
+	<use>
+		<flag name="gnu">
+			Symlink to GNU tar (<pkg>app-arch/tar</pkg>)
+		</flag>
+		<flag name="libarchive">
+			Symlink to bsdtar from <pkg>app-arch/libarchive</pkg>
+		</flag>
+	</use>
+</pkgmetadata>

diff --git a/app-alternatives/tar/tar-0.ebuild b/app-alternatives/tar/tar-0.ebuild
new file mode 100644
index 000000000000..dc594b0f8933
--- /dev/null
+++ b/app-alternatives/tar/tar-0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Tar symlink"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Base/Alternatives"
+SRC_URI=""
+S=${WORKDIR}
+
+LICENSE="CC0-1.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="+gnu libarchive split-usr"
+REQUIRED_USE="^^ ( gnu libarchive )"
+
+RDEPEND="
+	gnu? ( >=app-arch/tar-1.34-r2 )
+	libarchive? ( app-arch/libarchive )
+	!<app-arch/tar-1.34-r2
+"
+
+src_install() {
+	local usr_prefix=
+	use split-usr && usr_prefix=../usr/bin/
+
+	if use gnu; then
+		dosym gtar /bin/tar
+		newman - tar.1 <<<".so gtar.1"
+	elif use libarchive; then
+		dosym "${usr_prefix}bsdtar" /bin/tar
+		newman - tar.1 <<<".so bsdtar.1"
+	else
+		die "Invalid USE flag combination (broken REQUIRED_USE?)"
+	fi
+}


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

* [gentoo-commits] repo/gentoo:master commit in: app-alternatives/tar/
@ 2022-12-06 14:47 Michał Górny
  0 siblings, 0 replies; 7+ messages in thread
From: Michał Górny @ 2022-12-06 14:47 UTC (permalink / raw
  To: gentoo-commits

commit:     cbe30238ca28ea10d944d120cae33e5ebd351fd0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  5 19:47:20 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Dec  6 14:46:40 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbe30238

app-alternatives/tar: Use app-alternatives.eclass

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 app-alternatives/tar/tar-0.ebuild | 37 ++++++++++++++++++-------------------
 1 file changed, 18 insertions(+), 19 deletions(-)

diff --git a/app-alternatives/tar/tar-0.ebuild b/app-alternatives/tar/tar-0.ebuild
index dc594b0f8933..b37377fa0f63 100644
--- a/app-alternatives/tar/tar-0.ebuild
+++ b/app-alternatives/tar/tar-0.ebuild
@@ -3,20 +3,18 @@
 
 EAPI=8
 
-DESCRIPTION="Tar symlink"
-HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Base/Alternatives"
-SRC_URI=""
-S=${WORKDIR}
+ALTERNATIVES=(
+	"gnu:>=app-arch/tar-1.34-r2"
+	libarchive:app-arch/libarchive
+)
+
+inherit app-alternatives
 
-LICENSE="CC0-1.0"
-SLOT="0"
+DESCRIPTION="Tar symlink"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="+gnu libarchive split-usr"
-REQUIRED_USE="^^ ( gnu libarchive )"
+IUSE="split-usr"
 
 RDEPEND="
-	gnu? ( >=app-arch/tar-1.34-r2 )
-	libarchive? ( app-arch/libarchive )
 	!<app-arch/tar-1.34-r2
 "
 
@@ -24,13 +22,14 @@ src_install() {
 	local usr_prefix=
 	use split-usr && usr_prefix=../usr/bin/
 
-	if use gnu; then
-		dosym gtar /bin/tar
-		newman - tar.1 <<<".so gtar.1"
-	elif use libarchive; then
-		dosym "${usr_prefix}bsdtar" /bin/tar
-		newman - tar.1 <<<".so bsdtar.1"
-	else
-		die "Invalid USE flag combination (broken REQUIRED_USE?)"
-	fi
+	case $(get_alternative) in
+		gnu)
+			dosym gtar /bin/tar
+			newman - tar.1 <<<".so gtar.1"
+			;;
+		libarchive)
+			dosym "${usr_prefix}bsdtar" /bin/tar
+			newman - tar.1 <<<".so bsdtar.1"
+			;;
+	esac
 }


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

* [gentoo-commits] repo/gentoo:master commit in: app-alternatives/tar/
@ 2022-12-27 11:31 Sam James
  0 siblings, 0 replies; 7+ messages in thread
From: Sam James @ 2022-12-27 11:31 UTC (permalink / raw
  To: gentoo-commits

commit:     095959a8b33fa608917c68a89f7ee8befa458a1a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 27 11:31:12 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 27 11:31:12 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=095959a8

app-alternatives/tar: Stabilize 0 amd64, #886017

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-alternatives/tar/tar-0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-alternatives/tar/tar-0.ebuild b/app-alternatives/tar/tar-0.ebuild
index b37377fa0f63..c32fb9edfd43 100644
--- a/app-alternatives/tar/tar-0.ebuild
+++ b/app-alternatives/tar/tar-0.ebuild
@@ -11,7 +11,7 @@ ALTERNATIVES=(
 inherit app-alternatives
 
 DESCRIPTION="Tar symlink"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="split-usr"
 
 RDEPEND="


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

* [gentoo-commits] repo/gentoo:master commit in: app-alternatives/tar/
@ 2022-12-27 13:40 Sam James
  0 siblings, 0 replies; 7+ messages in thread
From: Sam James @ 2022-12-27 13:40 UTC (permalink / raw
  To: gentoo-commits

commit:     8ea80fdf83c204ccf534da998dae9153428de420
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 27 13:39:13 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 27 13:39:13 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ea80fdf

app-alternatives/tar: Stabilize 0 arm, #886017

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-alternatives/tar/tar-0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-alternatives/tar/tar-0.ebuild b/app-alternatives/tar/tar-0.ebuild
index c32fb9edfd43..c4e1eaeb79e4 100644
--- a/app-alternatives/tar/tar-0.ebuild
+++ b/app-alternatives/tar/tar-0.ebuild
@@ -11,7 +11,7 @@ ALTERNATIVES=(
 inherit app-alternatives
 
 DESCRIPTION="Tar symlink"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="split-usr"
 
 RDEPEND="


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

* [gentoo-commits] repo/gentoo:master commit in: app-alternatives/tar/
@ 2022-12-27 13:40 Sam James
  0 siblings, 0 replies; 7+ messages in thread
From: Sam James @ 2022-12-27 13:40 UTC (permalink / raw
  To: gentoo-commits

commit:     77c68a53c9f548660db0a103a00cd126b07663e3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 27 13:39:41 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 27 13:39:41 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77c68a53

app-alternatives/tar: Stabilize 0 arm64, #886017

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-alternatives/tar/tar-0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-alternatives/tar/tar-0.ebuild b/app-alternatives/tar/tar-0.ebuild
index c4e1eaeb79e4..067085895738 100644
--- a/app-alternatives/tar/tar-0.ebuild
+++ b/app-alternatives/tar/tar-0.ebuild
@@ -11,7 +11,7 @@ ALTERNATIVES=(
 inherit app-alternatives
 
 DESCRIPTION="Tar symlink"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="split-usr"
 
 RDEPEND="


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

* [gentoo-commits] repo/gentoo:master commit in: app-alternatives/tar/
@ 2022-12-27 19:45 Sam James
  0 siblings, 0 replies; 7+ messages in thread
From: Sam James @ 2022-12-27 19:45 UTC (permalink / raw
  To: gentoo-commits

commit:     89a8aa7b3ce7550c4140f6c15f10807c8b2539f2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 27 19:37:07 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 27 19:45:31 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89a8aa7b

app-alternatives/tar: Stabilize 0 hppa, #886017

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-alternatives/tar/tar-0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-alternatives/tar/tar-0.ebuild b/app-alternatives/tar/tar-0.ebuild
index b14ec3a28d0b..00d2b2f5d562 100644
--- a/app-alternatives/tar/tar-0.ebuild
+++ b/app-alternatives/tar/tar-0.ebuild
@@ -11,7 +11,7 @@ ALTERNATIVES=(
 inherit app-alternatives
 
 DESCRIPTION="Tar symlink"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="split-usr"
 
 RDEPEND="


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

* [gentoo-commits] repo/gentoo:master commit in: app-alternatives/tar/
@ 2022-12-27 19:53 Sam James
  0 siblings, 0 replies; 7+ messages in thread
From: Sam James @ 2022-12-27 19:53 UTC (permalink / raw
  To: gentoo-commits

commit:     67c702b9cab2c3366f855b5a083ae33da982891b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 27 19:47:13 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 27 19:53:23 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67c702b9

app-alternatives/tar: Stabilize 0 ppc64, #886017

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-alternatives/tar/tar-0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-alternatives/tar/tar-0.ebuild b/app-alternatives/tar/tar-0.ebuild
index 8dad062de70f..a62d6ee20436 100644
--- a/app-alternatives/tar/tar-0.ebuild
+++ b/app-alternatives/tar/tar-0.ebuild
@@ -11,7 +11,7 @@ ALTERNATIVES=(
 inherit app-alternatives
 
 DESCRIPTION="Tar symlink"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ~ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="split-usr"
 
 RDEPEND="


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

end of thread, other threads:[~2022-12-27 19:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-06 14:47 [gentoo-commits] repo/gentoo:master commit in: app-alternatives/tar/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2022-12-27 19:53 Sam James
2022-12-27 19:45 Sam James
2022-12-27 13:40 Sam James
2022-12-27 13:40 Sam James
2022-12-27 11:31 Sam James
2022-11-28 14:31 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox