mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-13 21:47:44 +00:00
73 lines
1.9 KiB
Bash
73 lines
1.9 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
ECM_HANDBOOK="optional"
|
|
ECM_TEST="true"
|
|
KDE_ORG_COMMIT=128216c02d66638a4d8185c11ad7d89dd5bf008d
|
|
PYTHON_COMPAT=( python3_{11..13} )
|
|
KFMIN=6.16.0
|
|
QTMIN=6.8.1
|
|
inherit ecm kde.org optfeature python-any-r1 xdg
|
|
|
|
DESCRIPTION="BibTeX editor to edit bibliographies used with LaTeX"
|
|
HOMEPAGE="https://apps.kde.org/kbibtex/ https://userbase.kde.org/KBibTeX"
|
|
SRC_URI="https://dev.gentoo.org/~asturm/distfiles/kde/${KDE_ORG_NAME}-${PV}-${KDE_ORG_COMMIT:0:8}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~x86"
|
|
IUSE="webengine"
|
|
|
|
RESTRICT="test"
|
|
|
|
COMMON_DEPEND="
|
|
app-text/poppler[qt6]
|
|
dev-libs/icu:=
|
|
>=dev-qt/qtbase-${QTMIN}:6[dbus,gui,network,widgets,xml]
|
|
>=dev-qt/qtnetworkauth-${QTMIN}:6
|
|
>=kde-frameworks/kcompletion-${KFMIN}:6
|
|
>=kde-frameworks/kconfig-${KFMIN}:6
|
|
>=kde-frameworks/kconfigwidgets-${KFMIN}:6
|
|
>=kde-frameworks/kcoreaddons-${KFMIN}:6
|
|
>=kde-frameworks/kcrash-${KFMIN}:6
|
|
>=kde-frameworks/ki18n-${KFMIN}:6
|
|
>=kde-frameworks/kiconthemes-${KFMIN}:6
|
|
>=kde-frameworks/kio-${KFMIN}:6
|
|
>=kde-frameworks/kitemviews-${KFMIN}:6
|
|
>=kde-frameworks/kjobwidgets-${KFMIN}:6
|
|
>=kde-frameworks/kparts-${KFMIN}:6
|
|
>=kde-frameworks/kservice-${KFMIN}:6
|
|
>=kde-frameworks/ktexteditor-${KFMIN}:6
|
|
>=kde-frameworks/ktextwidgets-${KFMIN}:6
|
|
>=kde-frameworks/kwallet-${KFMIN}:6
|
|
>=kde-frameworks/kwidgetsaddons-${KFMIN}:6
|
|
>=kde-frameworks/kxmlgui-${KFMIN}:6
|
|
virtual/tex-base
|
|
webengine? ( >=dev-qt/qtwebengine-${QTMIN}:6[widgets] )
|
|
"
|
|
RDEPEND="${COMMON_DEPEND}
|
|
!${CATEGORY}/${PN}:5
|
|
dev-tex/bibtex2html
|
|
"
|
|
DEPEND="${COMMON_DEPEND}
|
|
${PYTHON_DEPS}
|
|
>=dev-qt/qtbase-${QTMIN}:6[concurrent]
|
|
"
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DQT_MAJOR_VERSION=6
|
|
$(cmake_use_find_package webengine Qt6WebEngineWidgets)
|
|
)
|
|
|
|
ecm_src_configure
|
|
}
|
|
|
|
pkg_postinst() {
|
|
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
|
optfeature "PDF or PostScript document previews" "kde-apps/okular:6"
|
|
fi
|
|
xdg_pkg_postinst
|
|
}
|