net-analyzer/wireshark: "Add home-grown" code to make doins faster
authorJeroen Roovers <jer@gentoo.org>
Sun, 16 Dec 2018 14:45:47 +0000 (15:45 +0100)
committerJeroen Roovers <jer@gentoo.org>
Sun, 16 Dec 2018 14:47:27 +0000 (15:47 +0100)
While there, fix tfshark linking in the live ebuild, too.

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Fixes: https://bugs.gentoo.org/656834
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
net-analyzer/wireshark/wireshark-2.9.0-r1.ebuild
net-analyzer/wireshark/wireshark-99999999.ebuild

index d3a4760a0592beb240682a6ed408259f2936c238..ef9526baa665e22b650e25520b6e2c82608c22a2 100644 (file)
@@ -167,31 +167,24 @@ src_install() {
        dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README*
 
        # install headers
-       local wsheader
-       for wsheader in \
-               epan/*.h \
-               epan/crypt/*.h \
-               epan/dfilter/*.h \
-               epan/dissectors/*.h \
-               epan/ftypes/*.h \
-               epan/wmem/*.h \
-               wiretap/*.h \
-               ws_diag_control.h \
-               ws_symbol_export.h \
-               wsutil/*.h
-       do
-               echo "Installing ${wsheader}"
-               insinto /usr/include/wireshark/$( dirname ${wsheader} )
-               doins ${wsheader}
-       done
-
-       for wsheader in \
-               ../${P}_build/config.h \
-               ../${P}_build/version.h
+       insinto /usr/include/wireshark
+       doins ws_diag_control.h ws_symbol_export.h \
+               "${BUILD_DIR}"/config.h "${BUILD_DIR}"/version.h
+
+       local dir dirs=(
+               epan
+               epan/crypt
+               epan/dfilter
+               epan/dissectors
+               epan/ftypes
+               epan/wmem
+               wiretap
+               wsutil
+       )
+       for dir in "${dirs[@]}"
        do
-               echo "Installing ${wsheader}"
-               insinto /usr/include/wireshark
-               doins ${wsheader}
+               insinto /usr/include/wireshark/${dir}
+               doins ${dir}/*.h
        done
 
        #with the above this really shouldn't be needed, but things may be looking
index c6adaa7403d0ac4f364fb5f2bbf67f80db0e4597..1971febe690d5c6da90d1400502aa3fefb692aef 100644 (file)
@@ -80,6 +80,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 PATCHES=(
        "${FILESDIR}"/${PN}-2.4-androiddump.patch
        "${FILESDIR}"/${PN}-2.6.0-redhat.patch
+       "${FILESDIR}"/${PN}-2.9.0-tfshark-libm.patch
        "${FILESDIR}"/${PN}-99999999-androiddump-wsutil.patch
        "${FILESDIR}"/${PN}-99999999-qtsvg.patch
        "${FILESDIR}"/${PN}-99999999-ui-needs-wiretap.patch
@@ -166,31 +167,24 @@ src_install() {
        dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README*
 
        # install headers
-       local wsheader
-       for wsheader in \
-               epan/*.h \
-               epan/crypt/*.h \
-               epan/dfilter/*.h \
-               epan/dissectors/*.h \
-               epan/ftypes/*.h \
-               epan/wmem/*.h \
-               wiretap/*.h \
-               ws_diag_control.h \
-               ws_symbol_export.h \
-               wsutil/*.h
-       do
-               echo "Installing ${wsheader}"
-               insinto /usr/include/wireshark/$( dirname ${wsheader} )
-               doins ${wsheader}
-       done
-
-       for wsheader in \
-               ../${P}_build/config.h \
-               ../${P}_build/version.h
+       insinto /usr/include/wireshark
+       doins ws_diag_control.h ws_symbol_export.h \
+               "${BUILD_DIR}"/config.h "${BUILD_DIR}"/version.h
+
+       local dir dirs=(
+               epan
+               epan/crypt
+               epan/dfilter
+               epan/dissectors
+               epan/ftypes
+               epan/wmem
+               wiretap
+               wsutil
+       )
+       for dir in "${dirs[@]}"
        do
-               echo "Installing ${wsheader}"
-               insinto /usr/include/wireshark
-               doins ${wsheader}
+               insinto /usr/include/wireshark/${dir}
+               doins ${dir}/*.h
        done
 
        #with the above this really shouldn't be needed, but things may be looking