* [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog vcs-snapshot.eclass
@ 2013-02-08 20:51 Michal Gorny (mgorny)
0 siblings, 0 replies; 4+ messages in thread
From: Michal Gorny (mgorny) @ 2013-02-08 20:51 UTC (permalink / raw
To: gentoo-commits
mgorny 13/02/08 20:51:35
Modified: ChangeLog vcs-snapshot.eclass
Log:
Document the src_unpack() function. Requested in bug #456160.
Revision Changes Path
1.666 eclass/ChangeLog
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.666&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.666&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.665&r2=1.666
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.665
retrieving revision 1.666
diff -u -r1.665 -r1.666
--- ChangeLog 8 Feb 2013 13:43:19 -0000 1.665
+++ ChangeLog 8 Feb 2013 20:51:35 -0000 1.666
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.665 2013/02/08 13:43:19 kensington Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.666 2013/02/08 20:51:35 mgorny Exp $
+
+ 08 Feb 2013; Michał Górny <mgorny@gentoo.org> vcs-snapshot.eclass:
+ Document the src_unpack() function. Requested in bug #456160.
08 Feb 2013; Michael Palimaka <kensington@gentoo.org> cmake-utils.eclass:
Bump CMake minimum version to latest stable.
1.6 eclass/vcs-snapshot.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/vcs-snapshot.eclass?rev=1.6&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/vcs-snapshot.eclass?rev=1.6&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/vcs-snapshot.eclass?r1=1.5&r2=1.6
Index: vcs-snapshot.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/vcs-snapshot.eclass,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- vcs-snapshot.eclass 27 Sep 2012 16:35:42 -0000 1.5
+++ vcs-snapshot.eclass 8 Feb 2013 20:51:35 -0000 1.6
@@ -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/vcs-snapshot.eclass,v 1.5 2012/09/27 16:35:42 axs Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vcs-snapshot.eclass,v 1.6 2013/02/08 20:51:35 mgorny Exp $
# @ECLASS: vcs-snapshot.eclass
# @MAINTAINER:
@@ -42,6 +42,12 @@
EXPORT_FUNCTIONS src_unpack
+# @FUNCTION: vcs-snapshot_src_unpack
+# @DESCRIPTION:
+# Extract all the archives from ${A}. The .tar, .tar.gz, .tar.bz2
+# and .tar.xz archives will be unpacked to directories matching their
+# local names. Other archive types will be passed down to regular
+# unpack.
vcs-snapshot_src_unpack() {
local f
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog vcs-snapshot.eclass
@ 2013-07-25 7:51 Michal Gorny (mgorny)
0 siblings, 0 replies; 4+ messages in thread
From: Michal Gorny (mgorny) @ 2013-07-25 7:51 UTC (permalink / raw
To: gentoo-commits
mgorny 13/07/25 07:51:16
Modified: ChangeLog vcs-snapshot.eclass
Log:
Add some debug.
Revision Changes Path
1.893 eclass/ChangeLog
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.893&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.893&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.892&r2=1.893
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.892
retrieving revision 1.893
diff -u -r1.892 -r1.893
--- ChangeLog 24 Jul 2013 20:57:38 -0000 1.892
+++ ChangeLog 25 Jul 2013 07:51:16 -0000 1.893
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.892 2013/07/24 20:57:38 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.893 2013/07/25 07:51:16 mgorny Exp $
+
+ 25 Jul 2013; Michał Górny <mgorny@gentoo.org> vcs-snapshot.eclass:
+ Add some debug.
24 Jul 2013; Tomáš Chvátal <scarabeus@gentoo.org> cmake-utils.eclass:
Fix function desc to match reality.
1.7 eclass/vcs-snapshot.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/vcs-snapshot.eclass?rev=1.7&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/vcs-snapshot.eclass?rev=1.7&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/vcs-snapshot.eclass?r1=1.6&r2=1.7
Index: vcs-snapshot.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/vcs-snapshot.eclass,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- vcs-snapshot.eclass 8 Feb 2013 20:51:35 -0000 1.6
+++ vcs-snapshot.eclass 25 Jul 2013 07:51:16 -0000 1.7
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/vcs-snapshot.eclass,v 1.6 2013/02/08 20:51:35 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vcs-snapshot.eclass,v 1.7 2013/07/25 07:51:16 mgorny Exp $
# @ECLASS: vcs-snapshot.eclass
# @MAINTAINER:
@@ -49,6 +49,8 @@
# local names. Other archive types will be passed down to regular
# unpack.
vcs-snapshot_src_unpack() {
+ debug-print-function ${FUNCNAME} "${@}"
+
local f
for f in ${A}
@@ -57,6 +59,8 @@
*.tar|*.tar.gz|*.tar.bz2|*.tar.xz)
local destdir=${WORKDIR}/${f%.tar*}
+ debug-print "${FUNCNAME}: unpacking ${f} to ${destdir}"
+
# XXX: check whether the directory structure inside is
# fine? i.e. if the tarball has actually a parent dir.
mkdir "${destdir}" || die
@@ -64,6 +68,8 @@
-f "${DISTDIR}/${f}" || die
;;
*)
+ debug-print "${FUNCNAME}: falling back to unpack for ${f}"
+
# fall back to the default method
unpack "${f}"
;;
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog vcs-snapshot.eclass
@ 2012-03-19 8:52 Michal Gorny (mgorny)
0 siblings, 0 replies; 4+ messages in thread
From: Michal Gorny (mgorny) @ 2012-03-19 8:52 UTC (permalink / raw
To: gentoo-commits
mgorny 12/03/19 08:52:49
Modified: ChangeLog vcs-snapshot.eclass
Log:
Fix old eclass name in die-message.
Revision Changes Path
1.173 eclass/ChangeLog
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.173&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.173&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.172&r2=1.173
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.172
retrieving revision 1.173
diff -u -r1.172 -r1.173
--- ChangeLog 19 Mar 2012 08:38:45 -0000 1.172
+++ ChangeLog 19 Mar 2012 08:52:49 -0000 1.173
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.172 2012/03/19 08:38:45 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.173 2012/03/19 08:52:49 mgorny Exp $
+
+ 19 Mar 2012; Michał Górny <mgorny@gentoo.org> vcs-snapshot.eclass:
+ Fix old eclass name in die-message.
19 Mar 2012; Michał Górny <mgorny@gentoo.org> +vcs-snapshot.eclass:
Introduce vcs-snapshot eclass to simplify working with github, bitbucket
1.2 eclass/vcs-snapshot.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/vcs-snapshot.eclass?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/vcs-snapshot.eclass?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/vcs-snapshot.eclass?r1=1.1&r2=1.2
Index: vcs-snapshot.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/vcs-snapshot.eclass,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- vcs-snapshot.eclass 19 Mar 2012 08:38:45 -0000 1.1
+++ vcs-snapshot.eclass 19 Mar 2012 08:52:49 -0000 1.2
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/vcs-snapshot.eclass,v 1.1 2012/03/19 08:38:45 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vcs-snapshot.eclass,v 1.2 2012/03/19 08:52:49 mgorny Exp $
# @ECLASS: vcs-snapshot.eclass
# @MAINTAINER:
@@ -31,7 +31,7 @@
case ${EAPI:-0} in
0|1) die "EAPI ${EAPI} unsupported.";; # default(), SRC_URI arrows
2|3|4) ;;
- *) die "github-snapshot.eclass API in EAPI ${EAPI} not yet established."
+ *) die "vcs-snapshot.eclass API in EAPI ${EAPI} not yet established."
esac
EXPORT_FUNCTIONS src_unpack
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog vcs-snapshot.eclass
@ 2012-03-19 8:38 Michal Gorny (mgorny)
0 siblings, 0 replies; 4+ messages in thread
From: Michal Gorny (mgorny) @ 2012-03-19 8:38 UTC (permalink / raw
To: gentoo-commits
mgorny 12/03/19 08:38:45
Modified: ChangeLog
Added: vcs-snapshot.eclass
Log:
Introduce vcs-snapshot eclass to simplify workin with github, bitbucket and similar snapshots.
Revision Changes Path
1.172 eclass/ChangeLog
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.172&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.172&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.171&r2=1.172
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.171
retrieving revision 1.172
diff -u -r1.171 -r1.172
--- ChangeLog 18 Mar 2012 23:33:49 -0000 1.171
+++ ChangeLog 19 Mar 2012 08:38:45 -0000 1.172
@@ -1,6 +1,10 @@
# ChangeLog for eclass directory
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.171 2012/03/18 23:33:49 hd_brummy Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.172 2012/03/19 08:38:45 mgorny Exp $
+
+ 19 Mar 2012; Michał Górny <mgorny@gentoo.org> +vcs-snapshot.eclass:
+ Introduce vcs-snapshot eclass to simplify working with github, bitbucket
+ and similar snapshots.
18 Mar 2012; Joerg Bornkessel <hd_brummy@gentoo.org> vdr-plugin.eclass:
move eerror to ewarn, make the gettext warning less importend
1.1 eclass/vcs-snapshot.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/vcs-snapshot.eclass?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/vcs-snapshot.eclass?rev=1.1&content-type=text/plain
Index: vcs-snapshot.eclass
===================================================================
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/vcs-snapshot.eclass,v 1.1 2012/03/19 08:38:45 mgorny Exp $
# @ECLASS: vcs-snapshot.eclass
# @MAINTAINER:
# mgorny@gentoo.org
# @BLURB: support eclass for VCS (github, bitbucket, gitweb) snapshots
# @DESCRIPTION:
# This eclass provides a convenience src_unpack() which does support
# working with snapshots generated by various VCS-es. It unpacks those
# to ${S} rather than the original directory containing commit id.
#
# Note that this eclass handles only unpacking. You need to specify
# SRC_URI yourself, and call any autoreconfiguration as necessary.
# The example does that using autotools-utils eclass.
#
# Right now, the eclass was tested with github, bitbucket and gitweb
# snapshots. Feel free to report snapshotting services which aren't
# working.
# @EXAMPLE:
#
# @CODE
# EAPI=4
# AUTOTOOLS_AUTORECONF=1
# inherit autotools-utils vcs-snapshot
#
# SRC_URI="http://github.com/example/${PN}/tarball/v${PV} -> ${P}.tar.gz"
# @CODE
case ${EAPI:-0} in
0|1) die "EAPI ${EAPI} unsupported.";; # default(), SRC_URI arrows
2|3|4) ;;
*) die "github-snapshot.eclass API in EAPI ${EAPI} not yet established."
esac
EXPORT_FUNCTIONS src_unpack
vcs-snapshot_src_unpack() {
default
# github, bitbucket: username-projectname-hash
# gitweb: projectname-tagname-hash
mv *-*-[0-9a-f]*[0-9a-f]/ "${S}" || die
}
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-07-25 7:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-08 20:51 [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog vcs-snapshot.eclass Michal Gorny (mgorny)
-- strict thread matches above, loose matches on Subject: below --
2013-07-25 7:51 Michal Gorny (mgorny)
2012-03-19 8:52 Michal Gorny (mgorny)
2012-03-19 8:38 Michal Gorny (mgorny)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox