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 1Obb4P-0006Wz-AL for garchives@archives.gentoo.org; Wed, 21 Jul 2010 15:18:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CF506E0B4A; Wed, 21 Jul 2010 15:18:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 68A31E0B3E for ; Wed, 21 Jul 2010 15:18:37 +0000 (UTC) Received: from [192.168.1.104] (unknown [78.110.211.180]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPSA id 9C77D1B4224; Wed, 21 Jul 2010 15:18:30 +0000 (UTC) Message-ID: <4C470FC1.1060503@gentoo.org> Date: Wed, 21 Jul 2010 17:18:25 +0200 From: =?UTF-8?B?Ik1pcm9zbGF2IMWgdWxjIChmb3JkZnJvZyki?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.4) Gecko/20100714 Thunderbird/3.1 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 To: Jeremy Olexa CC: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-util/netbeans: ChangeLog netbeans-6.9-r3.ebuild References: <20100719202440.76AB22CF39@corvid.gentoo.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 2f66ff35-7dfc-40fa-be98-1ca07afba2f7 X-Archives-Hash: 9171c60e315b820cebf2f54cadef6bd4 Dne 21.7.2010 16:35, Jeremy Olexa napsal(a): > On Mon, 19 Jul 2010 20:24:40 +0000 (UTC), "Miroslav Sulc (fordfrog)" > wrote: >> fordfrog 10/07/19 20:24:40 >> >> Modified: ChangeLog netbeans-6.9-r3.ebuild >> Log: >> netbeans-6.9-r3: added support for including custom patches when >> building netbeans >> + # Support for custom patches >> + if [ -n "{NETBEANS_PATCHES_DIR}" -a -d "${NETBEANS_PATCHES_DIR}" ] ; then >> + local files=`find "${NETBEANS_PATCHES_DIR}" -type f` >> + >> + if [ -n "${files}" ] ; then >> + einfo "Applying custom patches:" >> + >> + for file in ${files} ; do >> + epatch "${file}" >> + done >> + fi >> + fi >> + > Miroslav, You just reinvented the wheel :) Any reason why epatch_user() > from euitls.eclass doesn't work here? > -Jeremy y, i did not expect this function to exist, i only recall that i saw some custom code for applying patches in some other ebuild few years back when i needed to tweak some package, so did it the same way. so this is called automatically for /etc/portage/patches//(PF|P|PN) if i read the code right? i also tried to search man pages for portage and emerge but there is nothing about it (or i am blind) ... so this is undocumented feature? i did not know about this cool feature till now. m.