/[gentoo-x86]/eclass/xfconf.eclass
Gentoo

Diff of /eclass/xfconf.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.10
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.1 2009/08/01 20:08:30 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.10 2010/03/24 20:13:15 ssuominen Exp $
4 4
5# @ECLASS: xfconf.eclass 5# @ECLASS: xfconf.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# XFCE maintainers <xfce@gentoo.org> 7# XFCE maintainers <xfce@gentoo.org>
8# @BLURB: Default XFCE ebuild layout 8# @BLURB: Default XFCE ebuild layout
29# @DESCRIPTION: 29# @DESCRIPTION:
30# Define options for econf 30# Define options for econf
31 31
32inherit autotools base fdo-mime gnome2-utils libtool 32inherit autotools base fdo-mime gnome2-utils libtool
33 33
34if ! [[ ${MY_P} ]]; then
34MY_P=${P} 35 MY_P=${P}
36else
37 S=${WORKDIR}/${MY_P}
38fi
39
35SRC_URI="mirror://xfce/xfce-${PV}/src/${MY_P}.tar.bz2" 40SRC_URI="mirror://xfce/xfce/${PV}/src/${MY_P}.tar.bz2"
36 41
37if [[ "${EINTLTOOLIZE}" == "yes" ]]; then 42if [[ "${EINTLTOOLIZE}" == "yes" ]]; then
38 _xfce4_intltool="dev-util/intltool" 43 _xfce4_intltool="dev-util/intltool"
39fi 44fi
40 45
41if [[ "${EAUTORECONF}" == "yes" ]]; then 46if [[ "${EAUTORECONF}" == "yes" ]]; then
42 _xfce4_m4="dev-util/xfce4-dev-tools" 47 _xfce4_m4=">=dev-util/xfce4-dev-tools-4.7.0"
43fi 48fi
44 49
45RDEPEND="" 50RDEPEND=""
46DEPEND="${_xfce4_intltool} 51DEPEND="${_xfce4_intltool}
47 ${_xfce4_m4}" 52 ${_xfce4_m4}"
48 53
49unset _xfce4_intltool 54unset _xfce4_intltool
50unset _xfce4_m4 55unset _xfce4_m4
51 56
52EXPF="src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm" 57XFCONF_EXPF="src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm"
53case ${EAPI:-0} in 58case ${EAPI:-0} in
54 2) EXPF="${EXPF} src_prepare src_configure" ;; 59 3|2) XFCONF_EXPF="${XFCONF_EXPF} src_prepare src_configure" ;;
55 1|0) ;; 60 1|0) ;;
56 *) die "Unknown EAPI." ;; 61 *) die "Unknown EAPI." ;;
57esac 62esac
58EXPORT_FUNCTIONS ${EXPF} 63EXPORT_FUNCTIONS ${XFCONF_EXPF}
59 64
60# @FUNCTION: xfconf_src_unpack 65# @FUNCTION: xfconf_src_unpack
61# @DESCRIPTION: 66# @DESCRIPTION:
62# Run base_src_util autopatch and eautoreconf or elibtoolize 67# Run base_src_util autopatch and eautoreconf or elibtoolize
63xfconf_src_unpack() { 68xfconf_src_unpack() {
64 unpack ${A} 69 unpack ${A}
65 cd "${S}" 70 cd "${S}"
66 has src_prepare ${EXPF} || xfconf_src_prepare 71 has src_prepare ${XFCONF_EXPF} || xfconf_src_prepare
67} 72}
68 73
69# @FUNCTION: xfconf_src_prepare 74# @FUNCTION: xfconf_src_prepare
70# @DESCRIPTION: 75# @DESCRIPTION:
71# Run base_src_util autopatch and eautoreconf or elibtoolize 76# Run base_src_util autopatch and eautoreconf or elibtoolize
72xfconf_src_prepare() { 77xfconf_src_prepare() {
73 base_src_util autopatch 78 base_src_prepare
74 79
75 if [[ "${EINTLTOOLIZE}" == "yes" ]]; then 80 if [[ "${EINTLTOOLIZE}" == "yes" ]]; then
76 intltoolize --force --copy --automake || die "intltoolize failed" 81 intltoolize --force --copy --automake || die "intltoolize failed"
77 fi 82 fi
78 83
79 if [[ "${EAUTORECONF}" == "yes" ]]; then 84 if [[ "${EAUTORECONF}" == "yes" ]]; then
85 has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
80 AT_M4DIR="/usr/share/xfce4/dev-tools/m4macros" eautoreconf 86 AT_M4DIR="${EPREFIX}/usr/share/xfce4/dev-tools/m4macros" eautoreconf
81 else 87 else
82 elibtoolize 88 elibtoolize
83 fi 89 fi
84} 90}
85 91
92 98
93# @FUNCTION: xfconf_src_compile 99# @FUNCTION: xfconf_src_compile
94# @DESCRIPTION: 100# @DESCRIPTION:
95# Run econf with opts in XFCONF variable 101# Run econf with opts in XFCONF variable
96xfconf_src_compile() { 102xfconf_src_compile() {
97 has src_configure ${EXPF} || xfconf_src_configure 103 has src_configure ${XFCONF_EXPF} || xfconf_src_configure
98 emake || die "emake failed" 104 emake || die "emake failed"
99} 105}
100 106
101# @FUNCTION: xfconf_src_install 107# @FUNCTION: xfconf_src_install
102# @DESCRIPTION: 108# @DESCRIPTION:

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20