1 # Copyright 1999-2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION
="Beyond Compare -- Compare, sync, and merge files and folders"
7 HOMEPAGE
="https://www.scootersoftware.com/"
9 x86? ( https://www.scootersoftware.com/bcompare-${PV}.i386.tar.gz )
10 amd64? ( https://www.scootersoftware.com/bcompare-${PV}.x86_64.tar.gz )"
14 KEYWORDS
="~amd64 ~x86"
27 # libKF5CoreAddons.so.5
30 # libKF5KIOWidgets.so.5
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
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
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
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"