1 |
# $Id$ |
# $Id$ |
2 |
|
|
3 |
sminclude mtools cmake qt4 |
sminclude mtools cmake qt4 |
4 |
|
msetfeature "!check" # no check target in Makefile |
5 |
|
|
6 |
## some global vars ## |
## some global vars ## |
7 |
export KDEDIR=/usr |
export KDEDIR=/usr |
19 |
export KDEDIRS=${KDEDIR} |
export KDEDIRS=${KDEDIR} |
20 |
|
|
21 |
# some sane default values |
# some sane default values |
22 |
: ${PCATEGORIE="kde-base"} |
: ${PCAT="kde-base"} |
23 |
: ${SRCFILE="${PNAME/4/}-${PVER}.tar.bz2"} |
if [[ -z ${SRCFILE} ]] |
24 |
|
then |
25 |
|
if [[ ${PVER//.} -ge 483 ]] |
26 |
|
then |
27 |
|
KDE4_TARBALL_EXTENSION="tar.xz" |
28 |
|
else |
29 |
|
KDE4_TARBALL_EXTENSION="tar.bz2" |
30 |
|
fi |
31 |
|
fi |
32 |
|
: ${SRCFILE="${PNAME/4/}-${PVER}.${KDE4_TARBALL_EXTENSION}"} |
33 |
: ${SRCDIR="${BUILDDIR}/${PNAME/4/}-${PVER}"} |
: ${SRCDIR="${BUILDDIR}/${PNAME/4/}-${PVER}"} |
34 |
: ${DESCRIPTION="${PNAME}"} |
: ${DESCRIPTION="${PNAME}"} |
35 |
: ${HOMEPAGE="http://www.kde.org/"} |
: ${HOMEPAGE="http://www.kde.org/"} |
36 |
|
|
37 |
DEPEND="${DEPEND} |
if [[ ${PNAME} != oxygen-icons ]] |
38 |
>= x11-libs/libXt-1 |
then |
39 |
>= x11-libs/libXinerama-1 |
DEPEND="${DEPEND} |
40 |
>= x11-libs/qt4-gui-4.7 |
>= x11-libs/libXt-1 |
41 |
>= x11-libs/qt4-qt3support-4.7 |
>= x11-libs/libXinerama-1 |
42 |
>= x11-libs/qt4-script-4.7 |
>= x11-libs/qt4-gui-4.8 |
43 |
>= x11-libs/qt4-sql-4.7 |
>= x11-libs/qt4-qt3support-4.8 |
44 |
>= x11-libs/qt4-svg-4.7 |
>= x11-libs/qt4-script-4.8 |
45 |
>= x11-libs/qt4-test-4.7 |
>= x11-libs/qt4-sql-4.8 |
46 |
>= x11-libs/qt4-dbus-4.7 |
>= x11-libs/qt4-svg-4.8 |
47 |
>= x11-libs/qt4-opengl-4.7 |
>= x11-libs/qt4-test-4.8 |
48 |
>= x11-libs/qt4-webkit-4.7" |
>= x11-libs/qt4-dbus-4.8 |
49 |
|
>= x11-libs/qt4-opengl-4.8 |
50 |
|
>= x11-libs/qt4-webkit-4.8 |
51 |
|
>= x11-libs/qt4-declarative-4.8" |
52 |
|
fi |
53 |
|
|
54 |
if [[ ${PNAME} != phonon ]] && [[ ${PNAME} != phonon-backend-* ]] |
if [[ ${PNAME} != phonon ]] && [[ ${PNAME} != phonon-backend-* ]] && [[ ${PNAME} != oxygen-icons ]] |
55 |
then |
then |
56 |
DEPEND="${DEPEND} |
DEPEND="${DEPEND} |
57 |
>= virtual/phonon |
>= virtual/phonon |
59 |
fi |
fi |
60 |
|
|
61 |
SDEPEND="${SDEPEND} |
SDEPEND="${SDEPEND} |
62 |
>= dev-util/cmake-2.8.5 |
>= dev-util/cmake-2.8.12 |
63 |
>= dev-util/pkgconfig-0.25 |
>= dev-util/pkgconfig-0.25 |
64 |
>= x11-proto/xf86vidmodeproto-2 |
>= x11-proto/xf86vidmodeproto-2 |
65 |
>= x11-proto/xineramaproto-1" |
>= x11-proto/xineramaproto-1" |
80 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
81 |
) |
) |
82 |
|
|
83 |
|
UP2DATE="updatecmd -listonly http://download.kde.org/stable/ | grep 'stable/[0-9]' | sed -n 's:.*/\([0-9].*\)/:\1:;$ p'" |
84 |
|
|
85 |
# exported functions and variables for mage-file |
# exported functions and variables for mage-file |
86 |
SPECIAL_VARS="${SPECIAL_VARS} KDEDIR" |
SPECIAL_VARS="${SPECIAL_VARS} KDEDIR" |
87 |
SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} kde4_postinstall kde4_postremove" |
SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} kde4_postinstall kde4_postremove" |
159 |
rm -r ${BINDIR}/${KDEDIR}/share/dbus-1 || die |
rm -r ${BINDIR}/${KDEDIR}/share/dbus-1 || die |
160 |
fi |
fi |
161 |
fi |
fi |
162 |
|
# or if KDECONFDIR != /etc |
163 |
|
if [[ ${KDECONFDIR} != /etc ]] |
164 |
|
then |
165 |
|
if [[ -d ${BINDIR}/${KDECONFDIR}/dbus-1 ]] |
166 |
|
then |
167 |
|
echo -e "${COLYELLOW}Warning: using dbus hotfix, dbus locations should be fixed!${COLDEFAULT}" |
168 |
|
minstalldir /etc || die |
169 |
|
cp -R ${BINDIR}/${KDECONFDIR}/dbus-1 ${BINDIR}/etc/ || die |
170 |
|
rm -r ${BINDIR}/${KDECONFDIR}/dbus-1 || die |
171 |
|
fi |
172 |
|
fi |
173 |
|
|
174 |
cd ${SRCDIR} |
cd ${SRCDIR} |
175 |
local i |
local i |