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

Diff of /eclass/enlightenment.eclass

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

Revision 1.92 Revision 1.93
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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.92 2012/09/12 05:57:40 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.93 2012/09/12 06:03:47 vapier 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
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}

Legend:
Removed from v.1.92  
changed lines
  Added in v.1.93

  ViewVC Help
Powered by ViewVC 1.1.20