blob: 5caa4c0aed36fc6885e5b31609c6a4613459db05 (
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/kdelibs-2.2.ebuild,v 1.11 2001/10/06 14:36:55 azarah Exp $
S=${WORKDIR}/${P}
DESCRIPTION="KDE ${PV} - Libraries"
SRC_PATH="kde/stable/${PV}/src/${P}.tar.bz2"
SRC_URI="ftp://ftp.kde.org/pub/$SRC_PATH
ftp://ftp.fh-heilbronn.de/pub/mirrors/$SRC_PATH
ftp://ftp.sourceforge.net/pub/mirrors/$SRC_PATH
http://www.research.att.com/~leonb/objprelink/kde-admin-acinclude.patch"
HOMEPAGE="http://www.kde.org/"
DEPEND=">=sys-devel/gcc-2.95.2 sys-devel/perl
>=media-libs/audiofile-0.1.9
>=x11-libs/qt-x11-2.3.0
>=sys-apps/bzip2-1.0.1
>=dev-libs/libpcre-3.4
>=dev-libs/libxml2-2.4.1
ssl? ( >=dev-libs/openssl-0.9.6 )
alsa? ( >=media-libs/alsa-lib-0.5.9 )
cups? ( net-print/cups )
objprelink? ( dev-util/objprelink )
sys-devel/autoconf"
RDEPEND=">=sys-devel/gcc-2.95.2
>=media-libs/audiofile-0.1.9
>=media-libs/tiff-3.5.5
>=sys-apps/bzip2-1.0.1
>=dev-libs/libpcre-3.4
>=x11-libs/qt-x11-2.3.0
~kde-base/kde-env-2.2
app-text/sgml-common
alsa? ( >=media-libs/alsa-lib-0.5.9 )
cups? ( net-print/cups )
ssl? ( >=dev-libs/openssl-0.9.6 )
sys-devel/perl dev-lang/python"
src_unpack() {
cd ${WORKDIR}
unpack ${P}.tar.bz2
cd ${S}
use objprelink && patch -p0 < ${DISTDIR}/kde-admin-acinclude.patch
}
src_compile() {
QTBASE=/usr/X11R6/lib/qt
local myopts
if [ "`use ssl`" ] ; then
myopts="--with-ssl-dir=/usr"
else
myopts="--without-ssl"
fi
if [ "`use alsa`" ] ; then
myopts="$myopts --with-alsa"
fi
if [ -z "`use cups`" ] ; then
myopts="$myopts --disable-cups"
fi
if [ "`use qtmt`" ] ; then
myopts="$myopts --enable-mt"
fi
myopts="$myopts --with-ipv6-lookup=no"
fi
use objprelink && myopts="$myopts --enable-objprelink"
try ./configure --prefix=/opt/kde${PV} --host=${CHOST} \
--with-qt-dir=$QTBASE $myopts --with-xinerama \
--disable-libfam
cd ${S}
try make
}
src_install() {
try make install DESTDIR=${D}
dodoc AUTHORS ChangeLog COMPILING COPYING* NAMING NEWS README
docinto html
dodoc *.html
}
pkg_postinst() {
if [ -x "/usr/bin/install-catalog" ] && [ "$ROOT" = "/" ] ; then
# install-catalog --add /etc/sgml/kde-docbook.cat /usr/share/sgml/docbook/kde-customizations/catalog
# install-catalog --add /etc/sgml/kde-docbook.cat /etc/sgml/sgml-docbook.cat
echo
fi
}
pkg_prerm() {
if [ -x "/usr/bin/install-catalog" ] && [ "$ROOT" = "/" ] ; then
if [ -e "/etc/sgml/kde-docbook.cat" ] ; then
# install-catalog --remove /etc/sgml/kde-docbook.cat /usr/share/sgml/docbook/kde-customizations/catalog
# install-catalog --remove /etc/sgml/kde-docbook.cat /etc/sgml/sgml-docbook.cat
echo
fi
fi
}
|