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

Diff of /eclass/enlightenment.eclass

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

Revision 1.99 Revision 1.100
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2013 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.99 2013/08/28 02:51:18 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.100 2013/08/31 12:29:26 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
44# KEYWORDS EKEY_STATE 44# KEYWORDS EKEY_STATE
45# SRC_URI EURI_STATE 45# SRC_URI EURI_STATE
46# S EURI_STATE 46# S EURI_STATE
47 47
48E_LIVE_SERVER_DEFAULT_SVN="http://svn.enlightenment.org/svn/e/trunk" 48E_LIVE_SERVER_DEFAULT_SVN="http://svn.enlightenment.org/svn/e/trunk"
49E_LIVE_SERVER_DEFAULT_GIT="git://git.enlightenment.org"
49 50
50E_STATE="release" 51E_STATE="release"
51if [[ ${PV} == *9999* ]] ; then 52if [[ ${PV} == *9999* ]] ; then
53 if [[ ${ESVN_URI_APPEND} ]] ; then
52 E_LIVE_SERVER=${E_LIVE_SERVER:-${E_LIVE_SERVER_DEFAULT_SVN}} 54 E_LIVE_SERVER=${E_LIVE_SERVER:-${E_LIVE_SERVER_DEFAULT_SVN}}
55
56 ESVN_URI_APPEND=${ESVN_URI_APPEND:-${PN}}
57 ESVN_PROJECT="enlightenment/${ESVN_SUB_PROJECT}"
58 ESVN_REPO_URI=${ESVN_SERVER:-${E_LIVE_SERVER_DEFAULT_SVN}}/${ESVN_SUB_PROJECT}/${ESVN_URI_APPEND}
59 E_S_APPEND=${ESVN_URI_APPEND}
60 E_LIVE_SOURCE="svn"
61 inherit subversion
62 elif [[ ${EGIT_URI_APPEND} ]] ; then
63 E_LIVE_SERVER=${E_LIVE_SERVER:-${E_LIVE_SERVER_DEFAULT_GIT}}
64 EGIT_URI_APPEND=${EGIT_URI_APPEND:-${PN}}
65 EGIT_PROJECT="enlightenment/${EGIT_SUB_PROJECT}/${EGIT_URI_APPEND}"
66 EGIT_REPO_URI=${EGIT_SERVER:-${E_LIVE_SERVER_DEFAULT_GIT}}/${EGIT_SUB_PROJECT}/${EGIT_URI_APPEND}.git
67 E_S_APPEND=${EGIT_URI_APPEND}
68 E_LIVE_SOURCE="git"
69 inherit git-2
70 else
71 die "Either ESVN_URI_APPEND or EGIT_URI_APPEND need to be defined"
72 fi
53 E_STATE="live" 73 E_STATE="live"
54 WANT_AUTOTOOLS="yes" 74 WANT_AUTOTOOLS="yes"
55 75
56 ESVN_URI_APPEND=${ESVN_URI_APPEND:-${PN}}
57 ESVN_PROJECT="enlightenment/${ESVN_SUB_PROJECT}"
58 ESVN_REPO_URI=${ESVN_SERVER:-${E_LIVE_SERVER_DEFAULT_SVN}}/${ESVN_SUB_PROJECT}/${ESVN_URI_APPEND}
59 E_S_APPEND=${ESVN_URI_APPEND}
60 E_LIVE_SOURCE="svn"
61 inherit subversion
62elif [[ -n ${E_SNAP_DATE} ]] ; then 76elif [[ -n ${E_SNAP_DATE} ]] ; then
63 E_STATE="snap" 77 E_STATE="snap"
64else 78else
65 E_STATE="release" 79 E_STATE="release"
66fi 80fi
116 130
117enlightenment_src_unpack() { 131enlightenment_src_unpack() {
118 if [[ ${E_STATE} == "live" ]] ; then 132 if [[ ${E_STATE} == "live" ]] ; then
119 case ${E_LIVE_SOURCE} in 133 case ${E_LIVE_SOURCE} in
120 svn) subversion_src_unpack;; 134 svn) subversion_src_unpack;;
135 git) git-2_src_unpack;;
121 *) die "eek!";; 136 *) die "eek!";;
122 esac 137 esac
123 else 138 else
124 unpack ${A} 139 unpack ${A}
125 fi 140 fi

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.100

  ViewVC Help
Powered by ViewVC 1.1.20