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

Contents of /eclass/enlightenment.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.49 - (hide annotations) (download)
Wed Jul 6 20:20:03 2005 UTC (8 years, 9 months ago) by agriffis
Branch: MAIN
Changes since 1.48: +1 -2 lines
Remove ECLASS= and INHERITED= which haven't been necessary for a long time now

1 vapier 1.40 # Copyright 1999-2005 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 agriffis 1.49 # $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.48 2005/06/01 22:13:02 vapier Exp $
4 vapier 1.1 #
5     # Author: vapier@gentoo.org
6    
7 vapier 1.39 inherit eutils
8    
9 vapier 1.1 INHERITED="$INHERITED $ECLASS"
10    
11 vapier 1.3 EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_postinst
12 vapier 1.2
13 vapier 1.23 ECVS_STATE="release"
14 vapier 1.38 if [[ ${PV/9999} != ${PV} ]] ; then
15     if [[ -z ${ECVS_MODULE} ]] ; then
16 vapier 1.41 ECVS_MODULE=${PN}
17 vapier 1.38 if [[ ${CATEGORY/libs} != ${CATEGORY} ]] ; then
18 vapier 1.27 ECVS_MODULE="e17/libs/${PN}"
19     else
20     ECVS_MODULE="e17/apps/${PN}"
21     fi
22     fi
23 vapier 1.41 ECVS_SERVER=${ECVS_SERVER:-cvs.sourceforge.net:/cvsroot/enlightenment}
24 vapier 1.23 ECVS_STATE="live"
25 vapier 1.21 inherit cvs
26 vapier 1.44 elif [[ ${PV/.200?????/} != ${PV} ]] ; then
27 vapier 1.23 ECVS_STATE="snap"
28 vapier 1.45 elif [[ ${PV/.00?} != ${PV} ]] ; then
29     EKEY_STATE="snap"
30 vapier 1.21 fi
31    
32 vapier 1.2 DESCRIPTION="A DR17 production"
33 vapier 1.1 HOMEPAGE="http://www.enlightenment.org/"
34 vapier 1.23 case ${ECVS_STATE} in
35 vapier 1.42 release) SRC_URI="http://enlightenment.freedesktop.org/files/${P}.tar.gz mirror://sourceforge/enlightenment/${P}.tar.gz";;
36 vapier 1.23 snap) SRC_URI="mirror://gentoo/${P}.tar.bz2";;
37     live) SRC_URI="";;
38     esac
39 vapier 1.1
40 vapier 1.10 LICENSE="BSD"
41 vapier 1.2 SLOT="0"
42 vapier 1.43 case ${EKEY_STATE:-${ECVS_STATE}} in
43 vapier 1.40 release) KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 sparc x86";;
44     snap) KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86";;
45 vapier 1.28 live) KEYWORDS="-*";;
46     esac
47 vapier 1.6 IUSE="nls doc"
48 vapier 1.1
49 vapier 1.35 DEPEND="doc? ( app-doc/doxygen )"
50 vapier 1.11 RDEPEND="nls? ( sys-devel/gettext )"
51 vapier 1.1
52 vapier 1.23 case ${ECVS_STATE} in
53 vapier 1.27 release) S=${WORKDIR}/${P};;
54     snap) S=${WORKDIR}/${PN};;
55     live) S=${WORKDIR}/${ECVS_MODULE};;
56 vapier 1.23 esac
57 vapier 1.2
58 vapier 1.3 enlightenment_warning_msg() {
59 vapier 1.44 if [[ ${ECVS_STATE} == "snap" ]] ; then
60 vapier 1.3 ewarn "Please do not contact the E team about bugs in Gentoo."
61     ewarn "Only contact vapier@gentoo.org via e-mail or bugzilla."
62     ewarn "Remember, this stuff is CVS only code so dont cry when"
63     ewarn "I break you :)."
64 vapier 1.44 elif [[ ${ECVS_STATE} == "live" ]] ; then
65 vapier 1.36 eerror "This is a LIVE CVS ebuild."
66     eerror "That means there are NO promises it will work."
67     eerror "If it fails to build, FIX THE CODE YOURSELF"
68     eerror "before reporting any issues."
69 vapier 1.3 fi
70     }
71    
72 vapier 1.16 enlightenment_die() {
73     enlightenment_warning_msg
74     die "$@"$'\n'"!!! SEND BUG REPORTS TO vapier@gentoo.org NOT THE E TEAM"
75     }
76    
77 vapier 1.3 enlightenment_pkg_setup() {
78     enlightenment_warning_msg
79     }
80    
81 vapier 1.1 # the stupid gettextize script prevents non-interactive mode, so we hax it
82     gettext_modify() {
83     use nls || return 0
84 vapier 1.44 cp $(which gettextize) "${T}"/ || die "could not copy gettextize"
85     sed -i \
86     -e 's:read dummy < /dev/tty::' \
87     "${T}"/gettextize
88 vapier 1.2 }
89    
90     enlightenment_src_unpack() {
91 vapier 1.38 if [[ ${ECVS_STATE} == "live" ]] ; then
92 vapier 1.30 cvs_src_unpack
93     else
94     unpack ${A}
95     fi
96 vapier 1.2 gettext_modify
97 vapier 1.47 [[ -s gendoc ]] && chmod a+rx gendoc
98 vapier 1.2 }
99    
100     enlightenment_src_compile() {
101 vapier 1.44 if [[ ${ECVS_STATE} != "release" ]] || [[ ! -e configure ]] ; then
102 vapier 1.41 export WANT_AUTOMAKE=${EAUTOMAKE:-1.8}
103 vapier 1.23 env \
104     PATH="${T}:${PATH}" \
105     NOCONFIGURE=yes \
106     USER=blah \
107     ./autogen.sh \
108     || enlightenment_die "autogen failed"
109 vapier 1.48 # symlinked files will cause sandbox violation
110     for x in config.{guess,sub} ; do
111     [[ ! -L ${x} ]] && continue
112     rm -f ${x}
113     touch ${x}
114     done
115 vapier 1.38 if [[ ! -z ${EHACKLIBLTDL} ]] ; then
116 vapier 1.23 cd libltdl
117     autoconf || enlightenment_die "autogen in libltdl failed"
118     cd ..
119     fi
120 vapier 1.4 fi
121 vapier 1.39 epunt_cxx
122 vapier 1.16 econf ${MY_ECONF} || enlightenment_die "econf failed"
123     emake || enlightenment_die "emake failed"
124 vapier 1.38 use doc && [[ -x ./gendoc ]] && { ./gendoc || enlightenment_die "gendoc failed" ; }
125 vapier 1.2 }
126    
127     enlightenment_src_install() {
128 vapier 1.16 make install DESTDIR=${D} || enlightenment_die
129 vapier 1.6 find ${D} -name CVS -type d -exec rm -rf '{}' \; 2>/dev/null
130 vapier 1.9 dodoc AUTHORS ChangeLog NEWS README TODO ${EDOCS}
131 vapier 1.38 use doc && [[ -d doc ]] && dohtml -r doc/*
132 vapier 1.3 }
133    
134     enlightenment_pkg_postinst() {
135     enlightenment_warning_msg
136 vapier 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20