media-libs/fdk-aac: fix bug 483040
authorAndrew Savchenko <bircoph@gentoo.org>
Fri, 12 Aug 2016 21:47:42 +0000 (00:47 +0300)
committerAndrew Savchenko <bircoph@gentoo.org>
Fri, 12 Aug 2016 21:47:42 +0000 (00:47 +0300)
Rename aac-enc to avoid file collisions with other packages.

Package-Manager: portage-2.3.0
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
media-libs/fdk-aac/fdk-aac-0.1.2.ebuild
media-libs/fdk-aac/fdk-aac-0.1.3.ebuild
media-libs/fdk-aac/fdk-aac-0.1.4.ebuild

index b5cb38ba51bd8dfaef7080ee640f32060091b6d1..c9fb62e6c14715aa5b6dce7190b5ab2e5669e9fb 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -39,3 +39,12 @@ src_configure() {
        )
        autotools-multilib_src_configure
 }
+
+src_install() {
+       autotools-multilib_src_install
+       use examples && mv "${ED}/usr/bin/aac-enc" "${ED}/usr/bin/fdk-aac-enc"
+}
+
+pkg_postinst() {
+       use examples && einfo "aac-enc was renamed to fdk-aac-enc to prevent file collision with other packages"
+}
index 364207767e53b63cb5f2a61337d44b9586f148bf..2a013f721bffa76a2859397193828494c1dcb292 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -39,3 +39,12 @@ src_configure() {
        )
        autotools-multilib_src_configure
 }
+
+src_install() {
+       autotools-multilib_src_install
+       use examples && mv "${ED}/usr/bin/aac-enc" "${ED}/usr/bin/fdk-aac-enc"
+}
+
+pkg_postinst() {
+       use examples && einfo "aac-enc was renamed to fdk-aac-enc to prevent file collision with other packages"
+}
index f7da48059d2df0ce823a313518abe140c761b2e4..3923033057d5f3467e87dccfe264dbef8958f229 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -40,3 +40,12 @@ src_configure() {
        )
        autotools-multilib_src_configure
 }
+
+src_install() {
+       autotools-multilib_src_install
+       use examples && mv "${ED}/usr/bin/aac-enc" "${ED}/usr/bin/fdk-aac-enc"
+}
+
+pkg_postinst() {
+       use examples && einfo "aac-enc was renamed to fdk-aac-enc to prevent file collision with other packages"
+}