sci-electronics/kicad: Fix desktop file categories, #622052
authorZoltan Puskas <zoltan@sinustrom.info>
Mon, 26 Jun 2017 00:06:35 +0000 (17:06 -0700)
committerMichał Górny <mgorny@gentoo.org>
Tue, 11 Jul 2017 20:01:20 +0000 (22:01 +0200)
Closes: https://github.com/gentoo/gentoo/pull/4990
Package-Manager: Portage-2.3.6, Repoman-2.3.2

sci-electronics/kicad/kicad-4.0.5-r1.ebuild
sci-electronics/kicad/kicad-4.0.6.ebuild

index 85d80609cb07264f35c2fb8322382513c15c5e6b..da56b49911ba9799b096e8f3ed2947fb12056de4 100644 (file)
@@ -66,14 +66,15 @@ src_prepare() {
        # Patch to work with >=boost 1.61
        eapply "${FILESDIR}/${PN}-boost-1.61.patch"
 
-       # remove all the non unix file endings
+       # Remove cvpcb desktop file as it does nothing
+       rm "resources/linux/mime/applications/cvpcb.desktop" || die
+
+       # remove all the non unix file endings and fix application categories in desktop files
        while IFS="" read -d $'\0' -r f; do
                edos2unix "${f}"
+               sed -i '/Categories/s/Development;//' "${f}"
        done < <(find "${S}" -type f -name "*.desktop" -print0)
 
-       # Remove cvpcb desktop file while it does nothing
-       rm "${WORKDIR}/${P}/resources/linux/mime/applications/cvpcb.desktop" || die
-
        # Handle optional minimal install.
        if use minimal; then
                # remove templates as they are not needed to run binaries
index 85d80609cb07264f35c2fb8322382513c15c5e6b..da56b49911ba9799b096e8f3ed2947fb12056de4 100644 (file)
@@ -66,14 +66,15 @@ src_prepare() {
        # Patch to work with >=boost 1.61
        eapply "${FILESDIR}/${PN}-boost-1.61.patch"
 
-       # remove all the non unix file endings
+       # Remove cvpcb desktop file as it does nothing
+       rm "resources/linux/mime/applications/cvpcb.desktop" || die
+
+       # remove all the non unix file endings and fix application categories in desktop files
        while IFS="" read -d $'\0' -r f; do
                edos2unix "${f}"
+               sed -i '/Categories/s/Development;//' "${f}"
        done < <(find "${S}" -type f -name "*.desktop" -print0)
 
-       # Remove cvpcb desktop file while it does nothing
-       rm "${WORKDIR}/${P}/resources/linux/mime/applications/cvpcb.desktop" || die
-
        # Handle optional minimal install.
        if use minimal; then
                # remove templates as they are not needed to run binaries