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

Diff of /eclass/enlightenment.eclass

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

Revision 1.87 Revision 1.95
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2012 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/enlightenment.eclass,v 1.87 2010/09/18 08:38:08 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.95 2012/10/22 10:14:31 tommy Exp $
4 4
5# @ECLASS: enlightenment.eclass 5# @ECLASS: enlightenment.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# enlightenment@gentoo.org 7# enlightenment@gentoo.org
8# @BLURB: simplify enlightenment package management 8# @BLURB: simplify enlightenment package management
30# SRC_URI $P.tar.bz2 30# SRC_URI $P.tar.bz2
31# S $WORKDIR/$P 31# S $WORKDIR/$P
32# 32#
33# live $PV has a 9999 marker 33# live $PV has a 9999 marker
34# KEYWORDS "" 34# KEYWORDS ""
35# SRC_URI cvs/svn/etc... up 35# SRC_URI svn/etc... up
36# S $WORKDIR/$E_S_APPEND 36# S $WORKDIR/$E_S_APPEND
37# 37#
38# Overrides: 38# Overrides:
39# KEYWORDS EKEY_STATE 39# KEYWORDS EKEY_STATE
40# SRC_URI EURI_STATE 40# SRC_URI EURI_STATE
41# S EURI_STATE 41# S EURI_STATE
42 42
43#E_LIVE_DEFAULT_CVS="cvs.sourceforge.net:/cvsroot/enlightenment"
44E_LIVE_SERVER_DEFAULT_CVS="anoncvs.enlightenment.org:/var/cvs/e"
45E_LIVE_SERVER_DEFAULT_SVN="http://svn.enlightenment.org/svn/e/trunk" 43E_LIVE_SERVER_DEFAULT_SVN="http://svn.enlightenment.org/svn/e/trunk"
46 44
47E_STATE="release" 45E_STATE="release"
48if [[ ${PV/9999} != ${PV} ]] ; then 46if [[ ${PV} == *9999* ]] ; then
49 E_LIVE_SERVER=${E_LIVE_SERVER:-${E_LIVE_SERVER_DEFAULT_SVN}} 47 E_LIVE_SERVER=${E_LIVE_SERVER:-${E_LIVE_SERVER_DEFAULT_SVN}}
50 E_STATE="live" 48 E_STATE="live"
51 WANT_AUTOTOOLS="yes" 49 WANT_AUTOTOOLS="yes"
52 50
53 # force people to opt-in to legacy cvs
54 if [[ -n ${ECVS_MODULE} ]] ; then
55 ECVS_SERVER=${ECVS_SERVER:-${E_LIVE_SERVER_DEFAULT_CVS}}
56 E_LIVE_SOURCE="cvs"
57 E_S_APPEND=${ECVS_MODULE}
58 inherit cvs
59 else
60 ESVN_URI_APPEND=${ESVN_URI_APPEND:-${PN}} 51 ESVN_URI_APPEND=${ESVN_URI_APPEND:-${PN}}
61 ESVN_PROJECT="enlightenment/${ESVN_SUB_PROJECT}" 52 ESVN_PROJECT="enlightenment/${ESVN_SUB_PROJECT}"
62 ESVN_REPO_URI=${ESVN_SERVER:-${E_LIVE_SERVER_DEFAULT_SVN}}/${ESVN_SUB_PROJECT}/${ESVN_URI_APPEND} 53 ESVN_REPO_URI=${ESVN_SERVER:-${E_LIVE_SERVER_DEFAULT_SVN}}/${ESVN_SUB_PROJECT}/${ESVN_URI_APPEND}
63 E_S_APPEND=${ESVN_URI_APPEND} 54 E_S_APPEND=${ESVN_URI_APPEND}
64 E_LIVE_SOURCE="svn" 55 E_LIVE_SOURCE="svn"
65 inherit subversion 56 inherit subversion
66 fi
67elif [[ -n ${E_SNAP_DATE} ]] ; then 57elif [[ -n ${E_SNAP_DATE} ]] ; then
68 E_STATE="snap" 58 E_STATE="snap"
69else 59else
70 E_STATE="release" 60 E_STATE="release"
71fi 61fi
84 inherit autotools 74 inherit autotools
85fi 75fi
86 76
87ENLIGHTENMENT_EXPF="src_unpack src_compile src_install" 77ENLIGHTENMENT_EXPF="src_unpack src_compile src_install"
88case "${EAPI:-0}" in 78case "${EAPI:-0}" in
89 2|3|4) ENLIGHTENMENT_EXPF+=" src_prepare src_configure" ;; 79 2|3|4|5) ENLIGHTENMENT_EXPF+=" src_prepare src_configure" ;;
90 *) ;; 80 *) ;;
91esac 81esac
92EXPORT_FUNCTIONS ${ENLIGHTENMENT_EXPF} 82EXPORT_FUNCTIONS ${ENLIGHTENMENT_EXPF}
93 83
94DESCRIPTION="A DR17 production" 84DESCRIPTION="A DR17 production"
95HOMEPAGE="http://www.enlightenment.org/" 85HOMEPAGE="http://www.enlightenment.org/"
106 snap) KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-interix ~x86-solaris ~x64-solaris";; 96 snap) KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-interix ~x86-solaris ~x64-solaris";;
107 live) KEYWORDS="";; 97 live) KEYWORDS="";;
108esac 98esac
109IUSE="nls doc" 99IUSE="nls doc"
110 100
111DEPEND="doc? ( app-doc/doxygen )" 101DEPEND="doc? ( app-doc/doxygen )
102 ${E_PYTHON:+>=dev-python/setuptools-0.6_rc9}
103 ${E_CYTHON:+>=dev-python/cython-0.12.1}"
112RDEPEND="nls? ( sys-devel/gettext )" 104RDEPEND="nls? ( sys-devel/gettext )"
113[[ -n ${E_PYTHON} ]] && DEPEND+=" >=dev-python/setuptools-0.6_rc9"
114[[ -n ${E_CYTHON} ]] && DEPEND+=" >=dev-python/cython-0.12.1"
115 105
116case ${EURI_STATE:-${E_STATE}} in 106case ${EURI_STATE:-${E_STATE}} in
117 release) S=${WORKDIR}/${P};; 107 release) S=${WORKDIR}/${P};;
118 snap) S=${WORKDIR}/${P};; 108 snap) S=${WORKDIR}/${P};;
119 live) S=${WORKDIR}/${E_S_APPEND};; 109 live) S=${WORKDIR}/${E_S_APPEND};;
120esac 110esac
121 111
122enlightenment_src_unpack() { 112enlightenment_src_unpack() {
123 if [[ ${E_STATE} == "live" ]] ; then 113 if [[ ${E_STATE} == "live" ]] ; then
124 case ${E_LIVE_SOURCE} in 114 case ${E_LIVE_SOURCE} in
125 cvs) cvs_src_unpack;;
126 svn) subversion_src_unpack;; 115 svn) subversion_src_unpack;;
127 *) die "eek!";; 116 *) die "eek!";;
128 esac 117 esac
129 else 118 else
130 unpack ${A} 119 unpack ${A}
131 fi 120 fi
132 hasq src_prepare ${ENLIGHTENMENT_EXPF} || enlightenment_src_prepare 121 has src_prepare ${ENLIGHTENMENT_EXPF} || enlightenment_src_prepare
133} 122}
134 123
135enlightenment_src_prepare() { 124enlightenment_src_prepare() {
125 epatch_user
136 [[ -s gendoc ]] && chmod a+rx gendoc 126 [[ -s gendoc ]] && chmod a+rx gendoc
137 if [[ ${WANT_AUTOTOOLS} == "yes" ]] ; then 127 if [[ ${WANT_AUTOTOOLS} == "yes" ]] ; then
138 [[ -d po ]] && eautopoint -f 128 [[ -d po ]] && eautopoint -f
139 # autotools require README, when README.in is around, but README 129 # autotools require README, when README.in is around, but README
140 # is created later in configure step 130 # is created later in configure step
153 143
154 econf ${MY_ECONF} 144 econf ${MY_ECONF}
155} 145}
156 146
157enlightenment_src_compile() { 147enlightenment_src_compile() {
158 hasq src_configure ${ENLIGHTENMENT_EXPF} || enlightenment_src_configure 148 has src_configure ${ENLIGHTENMENT_EXPF} || enlightenment_src_configure
159 149
160 emake || die 150 V=1 emake || die
161 151
162 if use doc ; then 152 if use doc ; then
163 if [[ -x ./gendoc ]] ; then 153 if [[ -x ./gendoc ]] ; then
164 ./gendoc || die 154 ./gendoc || die
165 else 155 elif emake -j1 -n doc >&/dev/null ; then
166 emake doc || die 156 V=1 emake doc || die
167 fi 157 fi
168 fi 158 fi
169} 159}
170 160
171enlightenment_src_install() { 161enlightenment_src_install() {
172 emake install DESTDIR="${D}" || die 162 V=1 emake install DESTDIR="${D}" || die
173 find "${D}" '(' -name CVS -o -name .svn -o -name .git ')' -type d -exec rm -rf '{}' \; 2>/dev/null 163 find "${D}" '(' -name CVS -o -name .svn -o -name .git ')' -type d -exec rm -rf '{}' \; 2>/dev/null
174 for d in AUTHORS ChangeLog NEWS README TODO ${EDOCS}; do 164 for d in AUTHORS ChangeLog NEWS README TODO ${EDOCS}; do
175 [[ -f ${d} ]] && dodoc ${d} 165 [[ -f ${d} ]] && dodoc ${d}
176 done 166 done
177 use doc && [[ -d doc ]] && dohtml -r doc/* 167 use doc && [[ -d doc ]] && dohtml -r doc/*

Legend:
Removed from v.1.87  
changed lines
  Added in v.1.95

  ViewVC Help
Powered by ViewVC 1.1.20