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

Contents of /eclass/enlightenment.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.49 - (show annotations) (download)
Wed Jul 6 20:20:03 2005 UTC (10 years, 1 month 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 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.48 2005/06/01 22:13:02 vapier Exp $
4 #
5 # Author: vapier@gentoo.org
6
7 inherit eutils
8
9 INHERITED="$INHERITED $ECLASS"
10
11 EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_postinst
12
13 ECVS_STATE="release"
14 if [[ ${PV/9999} != ${PV} ]] ; then
15 if [[ -z ${ECVS_MODULE} ]] ; then
16 ECVS_MODULE=${PN}
17 if [[ ${CATEGORY/libs} != ${CATEGORY} ]] ; then
18 ECVS_MODULE="e17/libs/${PN}"
19 else
20 ECVS_MODULE="e17/apps/${PN}"
21 fi
22 fi
23 ECVS_SERVER=${ECVS_SERVER:-cvs.sourceforge.net:/cvsroot/enlightenment}
24 ECVS_STATE="live"
25 inherit cvs
26 elif [[ ${PV/.200?????/} != ${PV} ]] ; then
27 ECVS_STATE="snap"
28 elif [[ ${PV/.00?} != ${PV} ]] ; then
29 EKEY_STATE="snap"
30 fi
31
32 DESCRIPTION="A DR17 production"
33 HOMEPAGE="http://www.enlightenment.org/"
34 case ${ECVS_STATE} in
35 release) SRC_URI="http://enlightenment.freedesktop.org/files/${P}.tar.gz mirror://sourceforge/enlightenment/${P}.tar.gz";;
36 snap) SRC_URI="mirror://gentoo/${P}.tar.bz2";;
37 live) SRC_URI="";;
38 esac
39
40 LICENSE="BSD"
41 SLOT="0"
42 case ${EKEY_STATE:-${ECVS_STATE}} in
43 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 live) KEYWORDS="-*";;
46 esac
47 IUSE="nls doc"
48
49 DEPEND="doc? ( app-doc/doxygen )"
50 RDEPEND="nls? ( sys-devel/gettext )"
51
52 case ${ECVS_STATE} in
53 release) S=${WORKDIR}/${P};;
54 snap) S=${WORKDIR}/${PN};;
55 live) S=${WORKDIR}/${ECVS_MODULE};;
56 esac
57
58 enlightenment_warning_msg() {
59 if [[ ${ECVS_STATE} == "snap" ]] ; then
60 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 elif [[ ${ECVS_STATE} == "live" ]] ; then
65 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 fi
70 }
71
72 enlightenment_die() {
73 enlightenment_warning_msg
74 die "$@"$'\n'"!!! SEND BUG REPORTS TO vapier@gentoo.org NOT THE E TEAM"
75 }
76
77 enlightenment_pkg_setup() {
78 enlightenment_warning_msg
79 }
80
81 # the stupid gettextize script prevents non-interactive mode, so we hax it
82 gettext_modify() {
83 use nls || return 0
84 cp $(which gettextize) "${T}"/ || die "could not copy gettextize"
85 sed -i \
86 -e 's:read dummy < /dev/tty::' \
87 "${T}"/gettextize
88 }
89
90 enlightenment_src_unpack() {
91 if [[ ${ECVS_STATE} == "live" ]] ; then
92 cvs_src_unpack
93 else
94 unpack ${A}
95 fi
96 gettext_modify
97 [[ -s gendoc ]] && chmod a+rx gendoc
98 }
99
100 enlightenment_src_compile() {
101 if [[ ${ECVS_STATE} != "release" ]] || [[ ! -e configure ]] ; then
102 export WANT_AUTOMAKE=${EAUTOMAKE:-1.8}
103 env \
104 PATH="${T}:${PATH}" \
105 NOCONFIGURE=yes \
106 USER=blah \
107 ./autogen.sh \
108 || enlightenment_die "autogen failed"
109 # 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 if [[ ! -z ${EHACKLIBLTDL} ]] ; then
116 cd libltdl
117 autoconf || enlightenment_die "autogen in libltdl failed"
118 cd ..
119 fi
120 fi
121 epunt_cxx
122 econf ${MY_ECONF} || enlightenment_die "econf failed"
123 emake || enlightenment_die "emake failed"
124 use doc && [[ -x ./gendoc ]] && { ./gendoc || enlightenment_die "gendoc failed" ; }
125 }
126
127 enlightenment_src_install() {
128 make install DESTDIR=${D} || enlightenment_die
129 find ${D} -name CVS -type d -exec rm -rf '{}' \; 2>/dev/null
130 dodoc AUTHORS ChangeLog NEWS README TODO ${EDOCS}
131 use doc && [[ -d doc ]] && dohtml -r doc/*
132 }
133
134 enlightenment_pkg_postinst() {
135 enlightenment_warning_msg
136 }

  ViewVC Help
Powered by ViewVC 1.1.20