remove ia64 keywords
[gentoo-zh.git] / app-misc / bcompare / bcompare-4.4.7.28397.ebuild
blob9fd5cb4f274893dfaddf6bfe960956f5680088e4
1 # Copyright 1999-2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=7
6 DESCRIPTION="Beyond Compare -- Compare, sync, and merge files and folders"
7 HOMEPAGE="https://www.scootersoftware.com/"
8 SRC_URI="
9         x86? ( https://www.scootersoftware.com/bcompare-${PV}.i386.tar.gz )
10         amd64? ( https://www.scootersoftware.com/bcompare-${PV}.x86_64.tar.gz )"
12 LICENSE="Bcompare"
13 SLOT="0"
14 KEYWORDS="~amd64 ~x86"
16 RESTRICT="bindist"
18 # qt4
19 #       libQtCore.so.4
20 #       libQtGui.so.4
21 # gtk2
22 #       libgtk-x11-2.0.so.0
23 # kde4
24 #       libkdecore.so.5
25 #       libkio.so.5
26 # kde5 32bit
27 #       libKF5CoreAddons.so.5
28 #       libKF5I18n.so.5
29 #       libKF5KIOCore.so.5
30 #       libKF5KIOWidgets.so.5
31 #       libKF5Service.so.5
32 #       libQt5Core.so.5
33 #       libQt5Gui.so.5
34 #       libQt5Widgets.so.5
35 REQUIRES_EXCLUDE="
36         libQtCore.so.4
37         libQtGui.so.4
38         libgtk-x11-2.0.so.0
39         libkdecore.so.5
40         libkio.so.5
41         libKF5CoreAddons.so.5
42         libKF5I18n.so.5
43         libKF5KIOCore.so.5
44         libKF5KIOWidgets.so.5
45         libKF5Service.so.5
46         libQt5Core.so.5
47         libQt5Gui.so.5
48         libQt5Widgets.so.5
50 QA_PRESTRIPPED="
51         /opt/${PN}/lib/beyondcompare/lib7z.so
52         /opt/${PN}/lib/beyondcompare/BCompare
53         /opt/${PN}/lib/beyondcompare/qt4/libQtGui.so.4
54         /opt/${PN}/lib/beyondcompare/qt4/libQtCore.so.4
56 QA_FLAGS_IGNORED="
57         /opt/bcompare/lib64/beyondcompare/bcmount64
58         /opt/bcompare/lib64/beyondcompare/bcmount32
59         /opt/bcompare/lib64/beyondcompare/lib7z.so
60         /opt/bcompare/lib64/beyondcompare/libQt4Pas.so.5
61         /opt/bcompare/lib64/beyondcompare/BCompare
62         /opt/bcompare/lib64/beyondcompare/ext/bcompare_ext_konq.i386.so
63         /opt/bcompare/lib64/beyondcompare/ext/bcompare_ext_konq.amd64.so
64         /opt/bcompare/lib64/beyondcompare/ext/bcompare_ext_kde5.i386.so
65         /opt/bcompare/lib64/beyondcompare/ext/bcompare_ext_kde5.amd64.so
66         /opt/bcompare/lib64/beyondcompare/ext/bcompare_ext_kde.i386.so
67         /opt/bcompare/lib64/beyondcompare/ext/bcompare_ext_kde.amd64.so
68         /opt/bcompare/lib64/beyondcompare/ext/bcompare-ext-thunarx-3.i386.so
69         /opt/bcompare/lib64/beyondcompare/ext/bcompare-ext-thunarx-3.amd64.so
70         /opt/bcompare/lib64/beyondcompare/ext/bcompare-ext-thunarx-2.i386.so
71         /opt/bcompare/lib64/beyondcompare/ext/bcompare-ext-thunarx-2.amd64.so
72         /opt/bcompare/lib64/beyondcompare/ext/bcompare-ext-nemo.i386.so
73         /opt/bcompare/lib64/beyondcompare/ext/bcompare-ext-nemo.amd64.so
74         /opt/bcompare/lib64/beyondcompare/ext/bcompare-ext-nautilus.i386.so
75         /opt/bcompare/lib64/beyondcompare/ext/bcompare-ext-nautilus.amd64.so.ext4
76         /opt/bcompare/lib64/beyondcompare/ext/bcompare-ext-nautilus.amd64.so
77         /opt/bcompare/lib64/beyondcompare/ext/bcompare-ext-caja.i386.so
78         /opt/bcompare/lib64/beyondcompare/ext/bcompare-ext-caja.amd64.so
79         /opt/bcompare/lib64/beyondcompare/qt4/libQtGui.so.4
80         /opt/bcompare/lib64/beyondcompare/qt4/libQtCore.so.4
83 src_unpack() {
84         unpack ${A}
87 src_prepare() {
88         default
90         patchelf --remove-rpath ext/bcompare_ext_kde5.amd64.so || die
91         patchelf --remove-rpath ext/bcompare_ext_kde.amd64.so || die
92         patchelf --remove-rpath ext/bcompare_ext_kde.i386.so || die
95 src_install() {
96         local targetdir="/opt/bcompare"
97         local LAUNCHER="bcompare/bin/bcompare"
99         insinto "${targetdir}"
100         sed -i ./install.sh -e 's/^# Create desktop entry and place.*/exit 0/g' || die
101         sed -i ./install.sh -e "s%^# Copy the files.*%BC_BIN=\"$D/\$BC_BIN\"; BC_LIB=\"$D/\$BC_LIB\";%g" || die
102         sed -i ./install.sh -e "s/^\texit 1.*//g" || die
103         ./install.sh --prefix="${targetdir}" || die
105         dosym "../../opt/${LAUNCHER}" "/usr/bin/bcompare"