diff options
author | Thomas Sachau <tommy@gentoo.org> | 2013-08-31 12:29:26 +0000 |
---|---|---|
committer | Thomas Sachau <tommy@gentoo.org> | 2013-08-31 12:29:26 +0000 |
commit | f90357b223e615a160a89ad554002e4ce8d89462 (patch) | |
tree | b1277c77b72b18b399e62c6b145fa9c4af8cb747 /eclass | |
parent | Add unit file (#395209 by Maksim 'max_posedon' Melnikau) (diff) | |
download | gentoo-2-f90357b223e615a160a89ad554002e4ce8d89462.tar.gz gentoo-2-f90357b223e615a160a89ad554002e4ce8d89462.tar.bz2 gentoo-2-f90357b223e615a160a89ad554002e4ce8d89462.zip |
Add git support for live packages using enlightenment.eclass
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ChangeLog | 6 | ||||
-rw-r--r-- | eclass/enlightenment.eclass | 33 |
2 files changed, 29 insertions, 10 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index c002177ee407..90a19ff2df6e 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for eclass directory # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.941 2013/08/28 22:04:16 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.942 2013/08/31 12:29:26 tommy Exp $ + + 31 Aug 2013; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> + enlightenment.eclass: + Add git support for live packages using enlightenment.eclass 28 Aug 2013; Michał Górny <mgorny@gentoo.org> python-utils-r1.eclass: Introduce python_is_python3() to replace the common checks. diff --git a/eclass/enlightenment.eclass b/eclass/enlightenment.eclass index 7ab3694f36e9..ab704f1b9deb 100644 --- a/eclass/enlightenment.eclass +++ b/eclass/enlightenment.eclass @@ -1,6 +1,6 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.99 2013/08/28 02:51:18 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.100 2013/08/31 12:29:26 tommy Exp $ # @ECLASS: enlightenment.eclass # @MAINTAINER: @@ -46,19 +46,33 @@ E_ECONF=() # S EURI_STATE E_LIVE_SERVER_DEFAULT_SVN="http://svn.enlightenment.org/svn/e/trunk" +E_LIVE_SERVER_DEFAULT_GIT="git://git.enlightenment.org" E_STATE="release" if [[ ${PV} == *9999* ]] ; then - E_LIVE_SERVER=${E_LIVE_SERVER:-${E_LIVE_SERVER_DEFAULT_SVN}} + if [[ ${ESVN_URI_APPEND} ]] ; then + E_LIVE_SERVER=${E_LIVE_SERVER:-${E_LIVE_SERVER_DEFAULT_SVN}} + + ESVN_URI_APPEND=${ESVN_URI_APPEND:-${PN}} + ESVN_PROJECT="enlightenment/${ESVN_SUB_PROJECT}" + ESVN_REPO_URI=${ESVN_SERVER:-${E_LIVE_SERVER_DEFAULT_SVN}}/${ESVN_SUB_PROJECT}/${ESVN_URI_APPEND} + E_S_APPEND=${ESVN_URI_APPEND} + E_LIVE_SOURCE="svn" + inherit subversion + elif [[ ${EGIT_URI_APPEND} ]] ; then + E_LIVE_SERVER=${E_LIVE_SERVER:-${E_LIVE_SERVER_DEFAULT_GIT}} + EGIT_URI_APPEND=${EGIT_URI_APPEND:-${PN}} + EGIT_PROJECT="enlightenment/${EGIT_SUB_PROJECT}/${EGIT_URI_APPEND}" + EGIT_REPO_URI=${EGIT_SERVER:-${E_LIVE_SERVER_DEFAULT_GIT}}/${EGIT_SUB_PROJECT}/${EGIT_URI_APPEND}.git + E_S_APPEND=${EGIT_URI_APPEND} + E_LIVE_SOURCE="git" + inherit git-2 + else + die "Either ESVN_URI_APPEND or EGIT_URI_APPEND need to be defined" + fi E_STATE="live" WANT_AUTOTOOLS="yes" - ESVN_URI_APPEND=${ESVN_URI_APPEND:-${PN}} - ESVN_PROJECT="enlightenment/${ESVN_SUB_PROJECT}" - ESVN_REPO_URI=${ESVN_SERVER:-${E_LIVE_SERVER_DEFAULT_SVN}}/${ESVN_SUB_PROJECT}/${ESVN_URI_APPEND} - E_S_APPEND=${ESVN_URI_APPEND} - E_LIVE_SOURCE="svn" - inherit subversion elif [[ -n ${E_SNAP_DATE} ]] ; then E_STATE="snap" else @@ -118,6 +132,7 @@ enlightenment_src_unpack() { if [[ ${E_STATE} == "live" ]] ; then case ${E_LIVE_SOURCE} in svn) subversion_src_unpack;; + git) git-2_src_unpack;; *) die "eek!";; esac else |