From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RsfpT-0005zx-OU for garchives@archives.gentoo.org; Wed, 01 Feb 2012 19:26:52 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5E3C2E0748; Wed, 1 Feb 2012 19:26:40 +0000 (UTC) Received: from mail-gx0-f181.google.com (mail-gx0-f181.google.com [209.85.161.181]) by pigeon.gentoo.org (Postfix) with ESMTP id E7C27E063E for ; Wed, 1 Feb 2012 19:26:01 +0000 (UTC) Received: by ggki1 with SMTP id i1so504644ggk.40 for ; Wed, 01 Feb 2012 11:26:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=fITiaqUDdvSOkQ/fz7c2cV3WznOXFbd/Mc9xydr1wJk=; b=wWNFGFxhVgEB4ikpJGPXHHRjiN0bwuHhXwUcFRxx+cUfcqPek74w5hiDGpP/68Sc6R g479e3DCHVXeNYRULqVzgxF+nrjVTyuF+najrdjpfeyo08VMazQYlFfW0xcCg79hUBVO 05tjyTc2yvk8pUf6IT5dTnmIRT8a4nqAZlZro= Received: by 10.182.11.6 with SMTP id m6mr4956105obb.74.1328124361305; Wed, 01 Feb 2012 11:26:01 -0800 (PST) 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 Sender: nirbheek.chauhan@gmail.com Received: by 10.60.14.69 with HTTP; Wed, 1 Feb 2012 11:25:39 -0800 (PST) From: Nirbheek Chauhan Date: Thu, 2 Feb 2012 00:55:39 +0530 X-Google-Sender-Auth: h_ndmXilLwQCacfiBCEDtGWMvtA Message-ID: Subject: [gentoo-dev] RFC: New eclass: mozlinguas.eclass To: Gentoo Dev Content-Type: multipart/mixed; boundary=f46d0447f32ac5ed7504b7ec0c92 X-Archives-Salt: bf19077c-095c-4926-8c1e-f58e0203446c X-Archives-Hash: 4dc92d5ec1545adb9e8d85d43b714bd4 --f46d0447f32ac5ed7504b7ec0c92 Content-Type: text/plain; charset=UTF-8 Hello folks, We in the mozilla team got tired of duplicating the same 50 lines of code across 6 ebuilds, and decided to consolidate them inside one eclass. The eclass is specific to Mozilla products (no one else can or should use it). It generates SRC_URI using a list of supported language packs ${LANGS[@]}, and exports src_unpack and src_install to install language packs. I'd love to have the attached eclass reviewed before I commit it. For those using gmail, here's a web copy: http://i.cx/ahp (git.o.g.o/mozilla) Thanks! -- ~Nirbheek Chauhan Gentoo GNOME+Mozilla Team --f46d0447f32ac5ed7504b7ec0c92 Content-Type: application/octet-stream; name="mozlinguas.eclass" Content-Disposition: attachment; filename="mozlinguas.eclass" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gy4qnjmj0 IyBDb3B5cmlnaHQgMTk5OS0yMDEyIEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk ZXI6ICQKCiMgQEVDTEFTUzogbW96bGluZ3Vhcy5lY2xhc3MKIyBATUFJTlRBSU5FUjogbW96aWxs YUBnZW50b28ub3JnCiMgQEFVVEhPUjogTmlyYmhlZWsgQ2hhdWhhbiA8bmlyYmhlZWtAZ2VudG9v Lm9yZz4KIyBAQkxVUkI6IEhhbmRsZSBsYW5ndWFnZSBwYWNrcyBmb3IgbW96aWxsYSBwcm9kdWN0 cwojIEBERVNDUklQVElPTjoKIyBTZXRzIElVU0UgYWNjb3JkaW5nIHRvIExBTkdTIChsYW5ndWFn ZSBwYWNrcyBhdmFpbGFibGUpLiBBbHNvIGV4cG9ydH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