blob: 2a3e01ad81966a66154a5336c0de73b27ab94257 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/kbarcode/kbarcode-2.0.6.ebuild,v 1.3 2008/05/22 20:48:40 maekke Exp $
inherit kde
MY_P="${P/_/}"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="KBarcode is a barcode and label printing application for KDE."
HOMEPAGE="http://www.kbarcode.net/"
SRC_URI="mirror://sourceforge/kbarcode/${MY_P}.tar.gz
doc? ( mirror://sourceforge/kbarcode/kbarcode-2.0.0.pdf )"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="amd64 ppc x86"
IUSE="doc"
DEPEND=">=app-text/barcode-0.98
dev-libs/libpcre"
RDEPEND=">=app-text/barcode-0.98
dev-libs/libpcre
virtual/ghostscript"
need-kde 3.5
PATCHES="${FILESDIR}/kbarcode-2.0.6-desktop-entry-fixes.diff"
src_unpack() {
kde_src_unpack
# does call unsermake...
rm configure
}
src_install() {
kde_src_install
use doc && cp "${DISTDIR}/kbarcode-2.0.0.pdf" "${D}/usr/share/doc/${PF}"
# Application installs mime entry in the wrong place.
dodir /usr/share/mimelnk/application/
cp "${S}"/kbarcode/kbarcode-label.desktop "${D}"/usr/share/mimelnk/application/
}
|