gentoo/app-text/diffpdf/diffpdf-2.1.3-r3.ebuild
Jaak Ristioja beb25dea6a
app-text/diffpdf: add 2.1.3-r3
Patched for Qt6 support and CMake build system, fixed some pkgcheck warnings.

Bug: https://bugs.gentoo.org/947239
Signed-off-by: Jaak Ristioja <jaak@ristioja.ee>
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-03-05 00:18:36 +01:00

38 lines
822 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake desktop
DESCRIPTION="Program that textually or visually compares two PDF files"
HOMEPAGE="https://web.archive.org/web/20250102202818/https://www.qtrac.eu/diffpdf-foss.html"
SRC_URI="https://web.archive.org/web/20201229194512/http://www.qtrac.eu/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
BDEPEND="
>=dev-build/cmake-3.16
>=dev-qt/qttools-6.4.2:6[linguist]
"
RDEPEND="
>=app-text/poppler-22.12[qt6]
>=dev-qt/qtbase-6.4.2:6[gui,widgets]
"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-qt5.patch
"${FILESDIR}"/${P}-qt6.patch
)
src_install() {
cmake_src_install
einstalldocs
doman diffpdf.1
domenu "${FILESDIR}"/${PN}.desktop
newicon images/icon.png ${PN}.png
}