summaryrefslogtreecommitdiffstats
path: root/trinity-apps/kbarcode/kbarcode-14.1.2.ebuild
blob: 3645d84d017f3dfbd560609b0c1d440a31a1a3c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Copyright 1999-2024 Gentoo Authors
# Copyright 2020-2025 The Trinity Desktop Project
# Distributed under the terms of the GNU General Public License v2

EAPI="8"

TRINITY_EXTRAGEAR_PACKAGING="yes"
TRINITY_HANDBOOK="optional"

TRINITY_LANGS="de el es fi fr hu it nl pl sv tr"
TRINITY_MODULE_TYPE="applications/utilities"
inherit trinity-base-2 optfeature

DESCRIPTION="Barcode and label printing application for TDE"
HOMEPAGE="https://trinitydesktop.org/"

LICENSE="|| ( GPL-2 GPL-3 )"
SLOT="14"
if [[ ${PV} != *9999* ]] ; then
	KEYWORDS="~amd64 ~arm64 ~x86"
fi

IUSE="javascript libbarcode"

DEPEND="
	libbarcode? ( >=app-text/barcode-0.99-r2 )
	dev-libs/libpcre
"
RDEPEND="${DEPEND}
	virtual/imagemagick-tools
	!libbarcode? (
		|| (
			app-text/barcode
			app-text/ghostscript-gpl
		)
	)
"

PATCHES=(
	"${FILESDIR}/${PN}-14.1.4-Fix-build-WITH_NATIVE_GNU_BARCODE-enabled.patch"
)

src_configure() {
	local mycmakeargs=(
		-DBUILD_TRANSLATIONS=ON
		-DWITH_NATIVE_GNU_BARCODE="$(usex libbarcode)"
		-DWITH_JAVASCRIPT="$(usex javascript)"
	)

	trinity-base-2_src_configure
}

pkg_postinst() {
	optfeature "additional barcode formats" app-text/barcode
	optfeature "additional barcode formats" app-text/ghostscript-gpl

	# currently not in portage
	# optfeature "additional barcode formats" app-text/tbarcode
	# optfeature "pdf417 barcode format" app-text/pdf417_encode
}