sys-devel/clang: Inform about utility scripts in postinst
authorMichał Górny <mgorny@gentoo.org>
Wed, 4 Apr 2018 12:27:49 +0000 (14:27 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 4 Apr 2018 13:56:03 +0000 (15:56 +0200)
Closes: https://bugs.gentoo.org/652234

sys-devel/clang/clang-5.0.1.ebuild
sys-devel/clang/clang-6.0.0-r1.ebuild
sys-devel/clang/clang-6.0.9999.ebuild
sys-devel/clang/clang-9999.ebuild

index 400d074875774a0dc3dafe23c7871240fc17b2cf..8ff413171d9e8e69326367a7b0c8ed3fc3121de5 100644 (file)
@@ -309,6 +309,11 @@ pkg_postinst() {
        if [[ ${ROOT} == / && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then
                eselect compiler-shadow update all
        fi
+
+       elog "You can find additional utility scripts in:"
+       elog "  ${EROOT}/usr/lib/llvm/${SLOT}/share/clang"
+       elog "To use these scripts, you will need Python 2.7. Some of them are vim"
+       elog "integration scripts (with instructions inside)."
 }
 
 pkg_postrm() {
index a8ab8bbb6b6a3901699601e0c1f17b2039d2d75e..3a5f777fc01d8e63ffb6c359a3e18f6bde0de7d6 100644 (file)
@@ -308,6 +308,13 @@ pkg_postinst() {
        if [[ ${ROOT} == / && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then
                eselect compiler-shadow update all
        fi
+
+       elog "You can find additional utility scripts in:"
+       elog "  ${EROOT}/usr/lib/llvm/${SLOT}/share/clang"
+       elog "To use these scripts, you will need Python 2.7. Some of them are vim"
+       elog "integration scripts (with instructions inside). The run-clang-tidy.py"
+       elog "scripts requires the following additional package:"
+       elog "  dev-python/pyyaml"
 }
 
 pkg_postrm() {
index 509b47b788fbde87a2a523e38258334ff5f2cd21..5ab3ba4c9fc434da58fd56a0a765ed9dbfa6dfaa 100644 (file)
@@ -280,6 +280,13 @@ pkg_postinst() {
        if [[ ${ROOT} == / && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then
                eselect compiler-shadow update all
        fi
+
+       elog "You can find additional utility scripts in:"
+       elog "  ${EROOT}/usr/lib/llvm/${SLOT}/share/clang"
+       elog "To use these scripts, you will need Python 2.7. Some of them are vim"
+       elog "integration scripts (with instructions inside). The run-clang-tidy.py"
+       elog "scripts requires the following additional package:"
+       elog "  dev-python/pyyaml"
 }
 
 pkg_postrm() {
index 10c2dbd94ce6e8f0eb1a4c271cc9566aace54902..3b9669f610135a3339b23dbcccefbc2cae6f0607 100644 (file)
@@ -281,6 +281,13 @@ pkg_postinst() {
        if [[ ${ROOT} == / && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then
                eselect compiler-shadow update all
        fi
+
+       elog "You can find additional utility scripts in:"
+       elog "  ${EROOT}/usr/lib/llvm/${SLOT}/share/clang"
+       elog "To use these scripts, you will need Python 2.7. Some of them are vim"
+       elog "integration scripts (with instructions inside). The run-clang-tidy.py"
+       elog "scripts requires the following additional package:"
+       elog "  dev-python/pyyaml"
 }
 
 pkg_postrm() {