aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSardem FF7 <sardemff7.pub@gmail.com>2011-04-16 16:28:19 +0200
committerSardem FF7 <sardemff7.pub@gmail.com>2011-04-16 16:33:20 +0200
commitca8fc90f69a6e5e6316bc05ae8d96a84c13f3b03 (patch)
treedcbcf0b19d3bef41bbbe14c765be3bde86895351 /meta-sync
parentAllow a different xulrunner (diff)
downloadsardemff7-ca8fc90f69a6e5e6316bc05ae8d96a84c13f3b03.tar.gz
sardemff7-ca8fc90f69a6e5e6316bc05ae8d96a84c13f3b03.tar.bz2
sardemff7-ca8fc90f69a6e5e6316bc05ae8d96a84c13f3b03.zip
Factorize some stuff to a mozilla-scm-fetch eclass
Diffstat (limited to 'meta-sync')
-rw-r--r--meta-sync/mozilla-repositories/Manifest2
-rw-r--r--meta-sync/mozilla-repositories/mozilla-repositories-9999.ebuild73
2 files changed, 3 insertions, 72 deletions
diff --git a/meta-sync/mozilla-repositories/Manifest b/meta-sync/mozilla-repositories/Manifest
index a17efd1..fbdda05 100644
--- a/meta-sync/mozilla-repositories/Manifest
+++ b/meta-sync/mozilla-repositories/Manifest
@@ -1 +1 @@
-EBUILD mozilla-repositories-9999.ebuild 2588 RMD160 bccefd1db3b3cbf149b7277e5a7225611524ea26 SHA1 2a4efc37e3caf05e0df58772c345b3fd4770bb21 SHA256 ef883bbc23d266839dd545677a8f877ddf7685fa417e13e43766b9ba878cd5a8
+EBUILD mozilla-repositories-9999.ebuild 700 RMD160 be1131a556bb48dc87555a3504ad09c733d42a2f SHA1 8d6bd7afcdd63b063f350c8256e950dcf5dff63f SHA256 3e7e7125494294fa7e261bf2da14be0e225f783f02e4f1aae52886954c1e505b
diff --git a/meta-sync/mozilla-repositories/mozilla-repositories-9999.ebuild b/meta-sync/mozilla-repositories/mozilla-repositories-9999.ebuild
index a0beb5e..159aa1f 100644
--- a/meta-sync/mozilla-repositories/mozilla-repositories-9999.ebuild
+++ b/meta-sync/mozilla-repositories/mozilla-repositories-9999.ebuild
@@ -2,42 +2,14 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-EAPI="4"
-
-inherit eutils
+inherit mozilla-scm-fetch
use enigmail && inherit cvs
-MOZ_HG_BASE_URI="http://hg.mozilla.org"
-
DESCRIPTION="Mozilla Mercurial repositories"
HOMEPAGE="${MOZ_HG_BASE_URI}"
-SRC_URI=""
-
-XULRUNNER_HG_MODULE="mozilla-central"
-MOZDOM_HG_MODULE="dom-inspector"
-THUNDERBIRD_HG_MODULE="comm-central"
-LDAP_SDKS_HG_MODULE="projects/ldap-sdks"
-
-# Enigmail CVS stuff
-ECVS_USER="guest"
-ECVS_PASS="guest"
-ECVS_SERVER="mozdev.org:/cvs"
-ECVS_MODULE="enigmail/src"
KEYWORDS="~amd64 ~x86"
-IUSE="enigmail mozdom thunderbird"
-
-REQUIRE_USE="
- enigmail? ( thunderbird )
- "
-
-LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
-SLOT="0"
-
-: ${EHG_STORE_DIR:=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/hg-src}
-: ${EHG_CLONE_CMD:=hg clone ${EHG_QUIET:+--quiet} --pull --noupdate}
-: ${EHG_PULL_CMD:=hg pull ${EHG_QUIET:+--quiet}}
-: ${EHG_OFFLINE:=${ESCM_OFFLINE}}
+IUSE="enigmail thunderbird"
DEPEND="
dev-vcs/mercurial
@@ -46,47 +18,6 @@ RDEPEND=""
S="${WORKDIR}"
-function moz_hg_fetch {
- debug-print-function ${FUNCNAME} ${*}
-
- local repo=${1}
- local module="$(basename "${repo}")"
-
-
- # Should be set but blank to prevent using $HOME/.hgrc
- export HGRCPATH=
-
- # Check ${EHG_STORE_DIR} directory:
- addwrite "$(dirname "${EHG_STORE_DIR}")" || die "addwrite failed"
- if [[ ! -d "${EHG_STORE_DIR}" ]]; then
- mkdir -p "${EHG_STORE_DIR}" || die "failed to create ${EHG_STORE_DIR}"
- chmod -f g+rw "${EHG_STORE_DIR}" || \
- die "failed to chown ${EHG_STORE_DIR}"
- fi
-
- # Create project directory:
- mkdir -p "${EHG_STORE_DIR}/mozilla" || \
- die "failed to create ${EHG_STORE_DIR}/mozilla"
- chmod -f g+rw "${EHG_STORE_DIR}/mozilla" || \
- echo "Warning: failed to chmod g+rw mozilla"
- cd "${EHG_STORE_DIR}/mozilla" || \
- die "failed to cd to ${EHG_STORE_DIR}/mozilla"
-
- # Clone/update repository:
- if [[ ! -d "${module}" ]]; then
- einfo "Cloning ${repo} to ${EHG_STORE_DIR}/mozilla/${module}"
- ${EHG_CLONE_CMD} "${repo}" "${module}" || {
- rm -rf "${module}"
- die "failed to clone ${repo}"
- }
- cd "${module}"
- elif [[ -z "${EHG_OFFLINE}" ]]; then
- einfo "Updating ${EHG_STORE_DIR}/mozilla/${module} from ${repo}"
- cd "${module}" || die "failed to cd to ${module}"
- ${EHG_PULL_CMD} || die "update failed"
- fi
-}
-
function src_unpack {
moz_hg_fetch "${MOZ_HG_BASE_URI}/${XULRUNNER_HG_MODULE}/"
use mozdom && moz_hg_fetch "${MOZ_HG_BASE_URI}/${MOZDOM_HG_MODULE}/"