因为这些包的授权或是禁止再散布软件本体、或是禁止对散布收取费用、或是要求授权方书面同意,而它们的 `RESTRICT` 缺少 `bindist`(`app- misc/bcompare` 缺 `mirror`),构建出的二进制包与 distfile 会被当作可以散布,所以按各自的条款补齐。 Signed-off-by: Zakk <zakk@gentoozh.org>
63 lines
1.5 KiB
Bash
63 lines
1.5 KiB
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="Beyond Compare -- Compare, sync, and merge files and folders"
|
|
HOMEPAGE="https://www.scootersoftware.com/"
|
|
SRC_URI="amd64? ( https://www.scootersoftware.com/bcompare-${PV}.x86_64.tar.gz )"
|
|
|
|
LICENSE="Bcompare"
|
|
SLOT="0"
|
|
KEYWORDS="-* ~amd64"
|
|
|
|
RDEPEND="
|
|
app-arch/bzip2
|
|
dev-qt/qtbase:6[X,gui,widgets]
|
|
sys-apps/dbus
|
|
virtual/zlib
|
|
x11-libs/libX11
|
|
x11-libs/libxkbcommon
|
|
"
|
|
|
|
RESTRICT="bindist strip mirror"
|
|
|
|
# Optional shell extensions are installed for KDE/Qt versions not required by the main app.
|
|
REQUIRES_EXCLUDE="
|
|
libQtCore.so.4
|
|
libQtGui.so.4
|
|
libkdecore.so.5
|
|
libkio.so.5
|
|
libKF5CoreAddons.so.5
|
|
libKF5I18n.so.5
|
|
libKF5KIOCore.so.5
|
|
libKF5KIOGui.so.5
|
|
libKF5KIOWidgets.so.5
|
|
libKF5Service.so.5
|
|
libQt5Core.so.5
|
|
libQt5Gui.so.5
|
|
libQt5Widgets.so.5
|
|
libKF6CoreAddons.so.6
|
|
libKF6I18n.so.6
|
|
libKF6KIOCore.so.6
|
|
libKF6KIOGui.so.6
|
|
libKF6KIOWidgets.so.6
|
|
"
|
|
QA_PREBUILT="
|
|
/opt/bcompare/lib64/beyondcompare/*
|
|
/opt/bcompare/lib64/beyondcompare/ext/*
|
|
"
|
|
|
|
src_install() {
|
|
local targetdir="/opt/bcompare"
|
|
local LAUNCHER="bcompare/bin/bcompare"
|
|
|
|
insinto "${targetdir}"
|
|
sed -i ./install.sh -e 's/^# Create desktop entry and place.*/exit 0/g' || die
|
|
sed -i ./install.sh -e "s%^# Copy the files.*%BC_BIN=\"$D/\$BC_BIN\"; BC_LIB=\"$D/\$BC_LIB\";%g" || die
|
|
sed -i ./install.sh -e "s/^\texit 1.*//g" || die
|
|
./install.sh --prefix="${targetdir}" || die
|
|
|
|
dosym "../../opt/${LAUNCHER}" "/usr/bin/bcompare"
|
|
}
|