Line
Link Here
|
0 |
-- a/e-file |
0 |
++ b/e-file |
Lines 16-26
Link Here
|
16 |
exit 1 |
16 |
exit 1 |
17 |
fi |
17 |
fi |
18 |
|
18 |
|
19 |
if type emerge >/dev/null 2>&1; then |
19 |
if type portageq >/dev/null 2>&1; then |
20 |
isgentoo=1 |
20 |
isgentoo=1 |
21 |
else |
21 |
else |
22 |
isgentoo=0 |
22 |
isgentoo=0 |
23 |
echo 'WARNING: "emerge" no found. If your system is not gentoo, a part of function will not available!' >&2 |
23 |
echo 'WARNING: "portageq" no found. If your system is not gentoo, a part of function will not available!' >&2 |
24 |
fi |
24 |
fi |
25 |
|
25 |
|
26 |
URL="http://www.portagefilelist.de/index.php/Special:PFLQuery2?file=$1&searchfile=lookup&lookup=file&txt" |
26 |
URL="http://www.portagefilelist.de/index.php/Special:PFLQuery2?file=$1&searchfile=lookup&lookup=file&txt" |
Lines 29-36
Link Here
|
29 |
BEGIN{ |
29 |
BEGIN{ |
30 |
FOUND=0 |
30 |
FOUND=0 |
31 |
if(isgentoo){ |
31 |
if(isgentoo){ |
32 |
"emerge --info | grep PORTDIR" | getline |
32 |
"portageq envvar / PORTDIR" | getline PORTDIR |
33 |
split($0,PORTDIR,/\"/) |
|
|
34 |
} |
33 |
} |
35 |
} |
34 |
} |
36 |
{ |
35 |
{ |
Lines 75-81
Link Here
|
75 |
} |
74 |
} |
76 |
|
75 |
|
77 |
NF=0 |
76 |
NF=0 |
78 |
cmd="(grep -h HOMEPAGE\\= " PORTDIR[2] "/" pkg "/*.ebuild | tail -n 1)2>/dev/null" |
77 |
cmd="(grep -h HOMEPAGE\\= " PORTDIR "/" pkg "/*.ebuild | tail -n 1)2>/dev/null" |
79 |
cmd | getline |
78 |
cmd | getline |
80 |
if(NF==0){ |
79 |
if(NF==0){ |
81 |
HOMEPAGE="" |
80 |
HOMEPAGE="" |
Lines 85-91
Link Here
|
85 |
} |
84 |
} |
86 |
|
85 |
|
87 |
NF=0 |
86 |
NF=0 |
88 |
cmd="(grep -h DESCRIPTION " PORTDIR[2] "/" pkg "/*.ebuild | tail -n 1)2>/dev/null" |
87 |
cmd="(grep -h DESCRIPTION " PORTDIR "/" pkg "/*.ebuild | tail -n 1)2>/dev/null" |
89 |
cmd | getline |
88 |
cmd | getline |
90 |
if(NF==0){ |
89 |
if(NF==0){ |
91 |
DESCRIPTION="" |
90 |
DESCRIPTION="" |