commit:     cbb01d51517b6c8339d715d4cb8748d860cfb9ad
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Wed Jun  6 20:40:21 2018 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Wed Jun  6 21:00:12 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbb01d51

sys-apps/file: Install /usr/share/misc/magic

"/usr/share/misc/magic" is required for `file -C` command
as used by app-arch/rpm for example.

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 sys-apps/file/{file-5.32.ebuild => file-5.32-r1.ebuild} | 5 +++++
 sys-apps/file/{file-5.33.ebuild => file-5.33-r1.ebuild} | 5 +++++
 sys-apps/file/file-9999.ebuild                          | 5 +++++
 3 files changed, 15 insertions(+)

diff --git a/sys-apps/file/file-5.32.ebuild b/sys-apps/file/file-5.32-r1.ebuild
similarity index 96%
rename from sys-apps/file/file-5.32.ebuild
rename to sys-apps/file/file-5.32-r1.ebuild
index c431956b378..389e0e1c2d7 100644
--- a/sys-apps/file/file-5.32.ebuild
+++ b/sys-apps/file/file-5.32-r1.ebuild
@@ -111,6 +111,11 @@ multilib_src_install() {
 multilib_src_install_all() {
        dodoc ChangeLog MAINT README
 
+       # Required for `file -C`
+       dodir /usr/share/misc/magic
+       insinto /usr/share/misc/magic
+       doins -r magic/Magdir/*
+
        if use python ; then
                cd python || die
                distutils-r1_src_install

diff --git a/sys-apps/file/file-5.33.ebuild b/sys-apps/file/file-5.33-r1.ebuild
similarity index 96%
rename from sys-apps/file/file-5.33.ebuild
rename to sys-apps/file/file-5.33-r1.ebuild
index 43f99c6754c..ffec3650582 100644
--- a/sys-apps/file/file-5.33.ebuild
+++ b/sys-apps/file/file-5.33-r1.ebuild
@@ -112,6 +112,11 @@ multilib_src_install() {
 multilib_src_install_all() {
        dodoc ChangeLog MAINT README
 
+       # Required for `file -C`
+       dodir /usr/share/misc/magic
+       insinto /usr/share/misc/magic
+       doins -r magic/Magdir/*
+
        if use python ; then
                cd python || die
                distutils-r1_src_install

diff --git a/sys-apps/file/file-9999.ebuild b/sys-apps/file/file-9999.ebuild
index 5f51b583c40..74264b9da48 100644
--- a/sys-apps/file/file-9999.ebuild
+++ b/sys-apps/file/file-9999.ebuild
@@ -113,6 +113,11 @@ multilib_src_install() {
 multilib_src_install_all() {
        dodoc ChangeLog MAINT README
 
+       # Required for `file -C`
+       dodir /usr/share/misc/magic
+       insinto /usr/share/misc/magic
+       doins -r magic/Magdir/*
+
        if use python ; then
                cd python || die
                distutils-r1_src_install

Reply via email to