/[gentoo-alt]/trunk/prefix/eclass/xfce4.eclass
Gentoo

Contents of /trunk/prefix/eclass/xfce4.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 982 - (show annotations) (download)
Thu Feb 2 04:20:17 2006 UTC (13 years, 2 months ago) by kito
File size: 2461 byte(s)
Initial eclass import from gentoo-x86
1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/xfce4.eclass,v 1.21 2005/08/22 16:20:30 swegener Exp $
4 # Author: Brad Cowan <bcowan@gentoo.org>
5
6 # Xfce4 Eclass
7 #
8 # Eclass to simplify Xfce4 package installation
9
10
11 if [[ ${BZIPPED} = "1" ]];then
12 COMPRESS=".tar.bz2"
13 ZIP="-bz2"
14 else
15 COMPRESS=".tar.gz"
16 ZIP=""
17 fi
18
19 if [[ ${GOODIES_PLUGIN} = "1" ]]; then
20 [[ -z ${MY_P} ]] && MY_P="${PN}-plugin-${PV}"
21 SRC_URI="http://download.berlios.de/xfce-goodies/${MY_P}${COMPRESS}"
22 [[ -z ${HOMEPAGE} ]] && HOMEPAGE="http://xfce-goodies.berlios.de/"
23 [[ -z ${XFCE_VERSION} ]] && XFCE_VERSION="4.2.0"
24 RDEPEND="${RDEPEND} >=xfce-base/xfce4-panel-${XFCE_VERSION}"
25 fi
26
27 if [[ ${PLUGIN} = "1" ]]; then
28 MY_P="${PN}-plugin-${PV}"
29 [[ -z ${XFCE_VERSION} ]] && XFCE_VERSION="4.2.0"
30 RDEPEND="${RDEPEND} >=xfce-base/xfce4-panel-${XFCE_VERSION}"
31 fi
32
33 if [[ ${GOODIES} = "1" ]]; then
34 SRC_URI="http://download.berlios.de/xfce-goodies/${MY_P:-${P}}${COMPRESS}"
35 [[ -z ${HOMEPAGE} ]] && HOMEPAGE="http://xfce-goodies.berlios.de/"
36 fi
37
38 [[ -n ${SRC_URI} ]] \
39 || SRC_URI="http://www.xfce.org/archive/xfce-${PV}/src${ZIP}/${P}${COMPRESS}"
40
41 [[ ${XFCE_META} = "1" ]] \
42 && SRC_URI=""
43
44 [[ -z ${LICENSE} ]] \
45 && LICENSE="GPL-2"
46
47 [[ -z ${HOMEPAGE} ]] \
48 && HOMEPAGE="http://www.xfce.org/"
49
50 SLOT="0"
51 IUSE="debug doc"
52
53 RDEPEND="virtual/x11
54 >=x11-libs/gtk+-2.2
55 dev-libs/libxml2
56 x11-libs/startup-notification
57 >=dev-libs/dbh-1.0.20
58 >=x11-themes/gtk-engines-xfce-2.2.5
59 ${RDEPEND}"
60 DEPEND="${RDEPEND}
61 dev-util/pkgconfig"
62
63 [[ -z ${XFCE_S} ]] \
64 && S="${WORKDIR}/${MY_P:-${P}}" \
65 || S="${XFCE_S}"
66
67 xfce4_src_compile() {
68 if [[ "${DEBUG_OFF}" = "1" ]] && use debug; then
69 XFCE_CONFIG="${XFCE_CONFIG}"
70 elif use debug; then
71 XFCE_CONFIG="${XFCE_CONFIG} --enable-debug=yes"
72 fi
73
74 if [[ ${XFCE_META} = "1" ]]; then
75 einfo "Meta Build, Nothing to compile."
76 else
77 econf ${XFCE_CONFIG} || die
78
79 if [[ "${SINGLE_MAKE}" = "1" ]]; then
80 emake -j1 || die
81 else
82 emake || die
83 fi
84 fi
85 }
86
87 xfce4_src_install() {
88 if [[ ${XFCE_META} = "1" ]]; then
89 einfo "Meta Build, Nothing to install."
90 else
91 if [[ "${WANT_EINSTALL}" = "1" ]]; then
92 einstall || die
93 else
94 make DESTDIR=${D} install || die
95 fi
96
97 if use doc; then
98 dodoc ${XFCE_DOCS} AUTHORS INSTALL README COPYING ChangeLog HACKING NEWS THANKS TODO
99 fi
100 fi
101 }
102
103 EXPORT_FUNCTIONS src_compile src_install

  ViewVC Help
Powered by ViewVC 1.1.20