1 |
Dne 21.7.2010 16:35, Jeremy Olexa napsal(a): |
2 |
> On Mon, 19 Jul 2010 20:24:40 +0000 (UTC), "Miroslav Sulc (fordfrog)" |
3 |
> <fordfrog@g.o> wrote: |
4 |
>> fordfrog 10/07/19 20:24:40 |
5 |
>> |
6 |
>> Modified: ChangeLog netbeans-6.9-r3.ebuild |
7 |
>> Log: |
8 |
>> netbeans-6.9-r3: added support for including custom patches when |
9 |
>> building netbeans |
10 |
>> + # Support for custom patches |
11 |
>> + if [ -n "{NETBEANS_PATCHES_DIR}" -a -d "${NETBEANS_PATCHES_DIR}" ] ; then |
12 |
>> + local files=`find "${NETBEANS_PATCHES_DIR}" -type f` |
13 |
>> + |
14 |
>> + if [ -n "${files}" ] ; then |
15 |
>> + einfo "Applying custom patches:" |
16 |
>> + |
17 |
>> + for file in ${files} ; do |
18 |
>> + epatch "${file}" |
19 |
>> + done |
20 |
>> + fi |
21 |
>> + fi |
22 |
>> + |
23 |
> Miroslav, You just reinvented the wheel :) Any reason why epatch_user() |
24 |
> from euitls.eclass doesn't work here? |
25 |
> -Jeremy |
26 |
y, i did not expect this function to exist, i only recall that i saw |
27 |
some custom code for applying patches in some other ebuild few years |
28 |
back when i needed to tweak some package, so did it the same way. |
29 |
|
30 |
so this is called automatically for |
31 |
/etc/portage/patches/<category>/(PF|P|PN) if i read the code right? i |
32 |
also tried to search man pages for portage and emerge but there is |
33 |
nothing about it (or i am blind) ... so this is undocumented feature? i |
34 |
did not know about this cool feature till now. |
35 |
|
36 |
m. |