From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9D400198005 for ; Fri, 22 Feb 2013 07:37:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3CB7221C0A5; Fri, 22 Feb 2013 07:37:42 +0000 (UTC) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 12D5021C07F for ; Fri, 22 Feb 2013 07:37:40 +0000 (UTC) Received: by mail-vc0-f179.google.com with SMTP id gb23so235529vcb.38 for ; Thu, 21 Feb 2013 23:37:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=qxL7XzgQ3Yw9+FHngpleCHqi+Qata7CTYDeZGLJEvsw=; b=g4ogVsBMsw+V69W8n3ThNr0r5h5PYgsrFvCMbKtk0vvvxfdr8+wOuNxG/iHa0dZcVR 0G+NkGV5iPONYhp50doSKHfkWKI+4cY6FjiP6WYc1iGU3kVBOrN82h6LMqUN7D4j2uZ5 kZTsMmDGwixSQqynymulSlRpy/iD/CHptAFNUFe025LhvLnxSsF1xRsnf4Co/4qqgODq JAb7Q9hq0fsN2tRf+YnLC4UqOy8U8EqqARDRyv1NNNVCkFaTv05NXTrraqvY80Sh++pm kiadeWGNToh8yJIxYsHKSAh+aAcHstYi/6LEc2vtxrtwouIx7IVi1SAV7+ORQLbxqalO frgg== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.52.75.65 with SMTP id a1mr1052386vdw.79.1361518660232; Thu, 21 Feb 2013 23:37:40 -0800 (PST) Received: by 10.58.163.132 with HTTP; Thu, 21 Feb 2013 23:37:40 -0800 (PST) In-Reply-To: <512715FA.5050800@mva.name> References: <512715FA.5050800@mva.name> Date: Fri, 22 Feb 2013 20:37:40 +1300 Message-ID: Subject: Re: [gentoo-dev] [discussion] GitHub eclass From: Kent Fredric To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 6ea783ff-b377-4549-84dc-ff4274f1dd0b X-Archives-Hash: 4b696ba529af9089ac339a6cb178aa4c On 22 February 2013 19:53, Vadim A. Misbakh-Soloviov wrote: > Hi there! > > Since we have tons of ebuild (including -9999) for software, that uses > GitHub for sourcecode hosting =E2=80=94 I've got an idea to write someth= ing > like GitHub eclass, which will ease creating of such ebuilds (by > providing "sugar" functions) and, (main goal for me) by adding > possibility to switch between forks (by redefining variables on emerge > run). For example (theoretical usecase): > > We have, for example, lua-socket-9999, that uses: > GH_AUTHOR=3Ddiegonehab > GH_PROJECT=3Dlua-socket > GH_BRANCH=3Dunstable > > So, then I fork it and provide some features. And then I want to > reemerge it from my fork, but I don't want to rewrite ebuild. So, then I = do: > # GH_AUTHOR=3D"msva" GH_BRANCH=3Dmaster emerge =3Dlua-socket-9999 > and it repulls sources from my fork, reemerge it and installs fine. I'd make sure to add some sort of easy support to switch to snapshotted tar.gz installs instead of live git checkouts, ie: GH_SNAPSHOT=3Ddeadbeef # use commit id 'deadbeef' by fetching a tar.gz from github instead of a git clone --=20 Kent