sys-apps/file: Install /usr/share/misc/magic
authorThomas Deutschmann <whissi@gentoo.org>
Wed, 6 Jun 2018 20:40:21 +0000 (22:40 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Wed, 6 Jun 2018 21:00:12 +0000 (23:00 +0200)
"/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-r1.ebuild [moved from sys-apps/file/file-5.32.ebuild with 96% similarity]
sys-apps/file/file-5.33-r1.ebuild [moved from sys-apps/file/file-5.33.ebuild with 96% similarity]
sys-apps/file/file-9999.ebuild

similarity index 96%
rename from sys-apps/file/file-5.32.ebuild
rename to sys-apps/file/file-5.32-r1.ebuild
index c431956b37884b6066adae20d276f69ad1275c4d..389e0e1c2d7f02ddbdceb6340b8a22ff76237e10 100644 (file)
@@ -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
similarity index 96%
rename from sys-apps/file/file-5.33.ebuild
rename to sys-apps/file/file-5.33-r1.ebuild
index 43f99c6754cbbecafb7b2bde84c9284e8a5c9b9d..ffec3650582fa07822ac75d52e0a23c9528fd0eb 100644 (file)
@@ -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
index 5f51b583c407ab91506966473a4436da4e9d5307..74264b9da48df0f629040468b2c0e39bb1c60edf 100644 (file)
@@ -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