blob: 40ab1921e09ec29e3c9dc7be797c50be2fdccda8 (
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
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-misc/tellico/tellico-1.2.14.ebuild,v 1.6 2008/06/30 20:00:19 nixnut Exp $
inherit kde sgml-catalog eutils
MY_P=${P/_/}
S="${WORKDIR}/${MY_P}"
DESCRIPTION="A collection manager for the KDE environment."
HOMEPAGE="http://www.periapsis.org/tellico"
SRC_URI="http://www.periapsis.org/tellico/download/${MY_P}.tar.gz
mirror://gentoo/kde-admindir-3.5.5.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86"
IUSE="calendar cddb yaz"
RDEPEND=">=dev-libs/libxml2-2.6
>=dev-libs/libxslt-1.0.19
cddb? ( =kde-base/libkcddb-3.5* )
calendar? (
=kde-base/ktnef-3.5*
=kde-base/libkcal-3.5*
)
media-libs/taglib
yaz? ( dev-libs/yaz )"
need-kde 3.5
src_unpack() {
kde_src_unpack
cd "${S}"
# Disabling a single test that is broken with --as-needed. Dug into it,
# not worth fixing unless you're totally bored.
epatch "${FILESDIR}/${P}-disable_formattest.patch"
sed -i -e "s:\(MimeType=.*\):\1;:" tellico.desktop
sed -i -e "s:\(Icon=\).*:\1${PN}:" tellico.desktop
}
src_compile() {
local myconf="$(use_enable cddb libkcddb) $(use_enable calendar libkcal)"
rm -f "${S}/configure"
kde_src_compile
}
pkg_postinst() {
einfo "Installing catalog..."
"${ROOT}"/usr/bin/xmlcatalog --noout --add "delegatePublic" \
"-//Robby Stephenson/DTD Tellico V9.0//EN" \
"file:/"${ROOT}"usr/share/apps/tellico/tellico.dtd" \
"${ROOT}"/etc/xml/catalog
"${ROOT}"/usr/bin/xmlcatalog --noout --add "delegateSystem" \
"http://www.periapsis.org/tellico/dtd/v9/tellico.dtd" \
"file:/"${ROOT}"usr/share/apps/tellico/tellico.dtd" \
"${ROOT}"/etc/xml/catalog
"${ROOT}"/usr/bin/xmlcatalog --noout --add "delegateURI" \
"http://www.periapsis.org/tellico/dtd/v9/tellico.dtd" \
"file:/"${ROOT}"usr/share/apps/tellico/tellico.dtd" \
"${ROOT}"/etc/xml/catalog
}
pkg_postrm() {
"${ROOT}"/usr/bin/xmlcatalog --noout --del \
"file:/"${ROOT}"usr/share/apps/tellico/tellico.dtd" \
"${ROOT}"/etc/xml/catalog
}
|