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

Contents of /trunk/prefix/eclass/xfce42.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: 2496 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.14 2005/02/01 17:43:3# Author: Brad Cowan <bcowan@gentoo.org>
4
5 # Xfce42 Eclass
6 #
7 # Eclass to simplify Xfce4 package installation
8
9 inherit debug
10
11 ## set some variable values:
12 ## COMPRESS is the default compression extension
13 ## ZIP is added to src directory of Xfce packages for when upstream releases .tar.bz2 versions
14 ## INSTALL is default make install directive
15 ## XFCE_VERSION sets the minimum version required for the panel
16
17 COMPRESS=".tar.gz"
18
19 ZIP=""
20
21 INSTALL="make DESTDIR=${D} install"
22
23 XFCE_VERSION="4.2.0"
24
25 ## plugins and base packages default to tar.gz unless bzipped is called
26 ## ZIP is added to the src directory for when the Xfce team releases .tar.bz2 packages
27 bzipped() {
28 COMPRESS=".tar.bz2"
29 ZIP="-bz2"
30 }
31
32 ## plugin function adds the -plugin string to $P and adds the depend on panel version
33 plugin() {
34 [[ -z ${MY_P} ]] && MY_P="${PN}-plugin-${PV}"
35 S=${WORKDIR}/${MY_P}
36 RDEPEND="${RDEPEND} >=xfce-base/xfce4-panel-${XFCE_VERSION}"
37 }
38
39 ## goodies function sets SRC_URI and HOMEPAGE to berlios
40 goodies() {
41 SRC_URI="http://download.berlios.de/xfce-goodies/${MY_P:-${P}}${COMPRESS}"
42 [[ -z ${HOMEPAGE} ]] && HOMEPAGE="http://xfce-goodies.berlios.de/"
43 S=${WORKDIR}/${MY_P:-${P}}
44 }
45
46 ## goodies_plugin calls plugin and goodies funtions in correct order
47 goodies_plugin() {
48 plugin
49 goodies
50 S=${WORKDIR}/${MY_P}
51 }
52
53 ## core_package sets SRC_URI and HOMPAGE for all Xfce core pacgages
54 core_package() {
55 SRC_URI="http://www.xfce.org/archive/xfce-${PV}/src${ZIP}/${P}${COMPRESS}"
56 HOMEPAGE="http://www.xfce.org/"
57 }
58
59 ## single_make sets the -j value to 1 eliminationg parallel builds for broken autotools scripts
60 single_make() {
61 JOBS="-j1"
62 }
63
64 ## want_einstall
65 want_einstall() {
66 INSTALL="einstall"
67 }
68
69 ## LICENSE is set to Xfce base packages default
70 LICENSE="GPL-2"
71 SLOT="0"
72
73 IUSE="${IUSE}"
74
75 RDEPEND=">=x11-libs/gtk+-2.2
76 dev-libs/libxml2
77 >=dev-libs/dbh-1.0.20
78 >=x11-themes/gtk-engines-xfce-2.2.5
79 ${RDEPEND}"
80 DEPEND="${RDEPEND}
81 dev-util/pkgconfig"
82
83 #S="${WORKDIR}/${MY_P:-${P}}"
84
85 xfce42_src_compile() {
86 ## XFCE_CONFIG sets extra config parameters
87 ## JOBS is unset and defaults to make.conf settings
88 ## unless set by single_make
89 econf ${XFCE_CONFIG} || die
90 emake ${JOBS} || die
91 }
92
93 xfce42_src_install() {
94 ## INSTALL is default make install string
95 ${INSTALL} || die
96 }
97
98 EXPORT_FUNCTIONS src_compile src_install

  ViewVC Help
Powered by ViewVC 1.1.20