Lines 39-53
src_unpack() {
Link Here
|
39 |
fi |
39 |
fi |
40 |
} |
40 |
} |
41 |
|
41 |
|
|
|
42 |
bk() { |
43 |
local opt=$1; shift |
44 |
local file |
45 |
for file ; do |
46 |
case ${opt} in |
47 |
save) chmod u+rw "${file}" && cp -p "${file}"{,.orig} || die ;; |
48 |
touch) touch -r "${file}"{.orig,} || die ;; |
49 |
restore) cp -p "${file}"{.orig,} || die ;; |
50 |
esac |
51 |
done |
52 |
} |
53 |
|
42 |
src_prepare() { |
54 |
src_prepare() { |
43 |
use vanilla && return 0 |
55 |
use vanilla && return 0 |
44 |
|
56 |
|
|
|
57 |
# We need to patch the local libtool.m4 because that is used to generate |
58 |
# the local libtool which is later installed. But we don't want to install |
59 |
# the hacked libtool.m4 as that'll get copied into other random projects. |
60 |
bk save libltdl/{m4/libtool.m4,config/ltmain.sh} |
61 |
epatch "${FILESDIR}"/${PN}-2.4.2-dynamic-gcc.patch #88596 |
62 |
# Hack the timestamp so that we regen once, and `make` doesn't try again. |
63 |
bk touch libltdl/{m4/libtool.m4,config/ltmain.sh} |
64 |
|
45 |
cd libltdl/m4 |
65 |
cd libltdl/m4 |
46 |
epatch "${FILESDIR}"/1.5.20/${PN}-1.5.20-use-linux-version-in-fbsd.patch #109105 |
66 |
epatch "${FILESDIR}"/1.5.20/${PN}-1.5.20-use-linux-version-in-fbsd.patch #109105 |
47 |
cd .. |
67 |
cd .. |
48 |
AT_NOELIBTOOLIZE=yes eautoreconf |
68 |
AT_NOELIBTOOLIZE=yes eautoreconf |
49 |
cd .. |
69 |
cd .. |
50 |
AT_NOELIBTOOLIZE=yes eautoreconf |
70 |
AT_NOELIBTOOLIZE=yes eautoreconf |
|
|
71 |
|
72 |
bk restore libltdl/m4/libtool.m4 |
51 |
} |
73 |
} |
52 |
|
74 |
|
53 |
src_configure() { |
75 |
src_configure() { |
Lines 63-68
src_configure() {
Link Here
|
63 |
export CONFIG_SHELL=/bin/bash |
85 |
export CONFIG_SHELL=/bin/bash |
64 |
|
86 |
|
65 |
econf $(use_enable static-libs static) |
87 |
econf $(use_enable static-libs static) |
|
|
88 |
bk restore libltdl/config/ltmain.sh |
66 |
} |
89 |
} |
67 |
|
90 |
|
68 |
src_install() { |
91 |
src_install() { |