Lines 2-7
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/enigmail-0.95.7-r5.ebuild,v 1.5 2009/06/29 18:38:19 armin76 Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/enigmail-0.95.7-r5.ebuild,v 1.5 2009/06/29 18:38:19 armin76 Exp $ |
4 |
|
4 |
|
|
|
5 |
EAPI="2" |
5 |
WANT_AUTOCONF="2.1" |
6 |
WANT_AUTOCONF="2.1" |
6 |
|
7 |
|
7 |
inherit flag-o-matic toolchain-funcs eutils nsplugins mozcoreconf mozextension makeedit multilib autotools |
8 |
inherit flag-o-matic toolchain-funcs eutils nsplugins mozcoreconf mozextension makeedit multilib autotools |
Lines 39-45
Link Here
|
39 |
DEPEND=">=mail-client/mozilla-thunderbird-${TBVER} |
40 |
DEPEND=">=mail-client/mozilla-thunderbird-${TBVER} |
40 |
!>=mail-client/mozilla-thunderbird-3" |
41 |
!>=mail-client/mozilla-thunderbird-3" |
41 |
RDEPEND="${DEPEND} |
42 |
RDEPEND="${DEPEND} |
42 |
>=app-crypt/gnupg-1.4 |
43 |
|| ( |
|
|
44 |
( |
45 |
>=app-crypt/gnupg-2.0 |
46 |
|| ( |
47 |
app-crypt/pinentry[gtk] |
48 |
app-crypt/pinentry[qt3] |
49 |
) |
50 |
) |
51 |
=app-crypt/gnupg-1.4* |
52 |
) |
43 |
>=www-client/mozilla-launcher-1.56" |
53 |
>=www-client/mozilla-launcher-1.56" |
44 |
|
54 |
|
45 |
S="${WORKDIR}/mozilla" |
55 |
S="${WORKDIR}/mozilla" |
Lines 77-90
Link Here
|
77 |
done |
87 |
done |
78 |
} |
88 |
} |
79 |
|
89 |
|
80 |
pkg_setup() { |
|
|
81 |
if has_version '>=app-crypt/gnupg-2.0.1-r2'; then |
82 |
if ! built_with_use -o app-crypt/pinentry gtk qt3; then |
83 |
die "You must build app-crypt/pinentry with GTK or QT3 support" |
84 |
fi |
85 |
fi |
86 |
} |
87 |
|
88 |
src_unpack() { |
90 |
src_unpack() { |
89 |
unpack thunderbird-${TBVER}-source.tar.bz2 mozilla-thunderbird-${TBPATCH}.tar.bz2 || die "unpack failed" |
91 |
unpack thunderbird-${TBVER}-source.tar.bz2 mozilla-thunderbird-${TBPATCH}.tar.bz2 || die "unpack failed" |
90 |
|
92 |
|
Lines 92-100
Link Here
|
92 |
for X in ${linguas}; do |
94 |
for X in ${linguas}; do |
93 |
[[ ${X} != en ]] && xpi_unpack ${P}-${X}.xpi |
95 |
[[ ${X} != en ]] && xpi_unpack ${P}-${X}.xpi |
94 |
done |
96 |
done |
|
|
97 |
} |
95 |
|
98 |
|
|
|
99 |
src_prepare() { |
96 |
# Apply our patches |
100 |
# Apply our patches |
97 |
cd "${S}" || die "cd failed" |
|
|
98 |
EPATCH_SUFFIX="patch" \ |
101 |
EPATCH_SUFFIX="patch" \ |
99 |
EPATCH_FORCE="yes" \ |
102 |
EPATCH_FORCE="yes" \ |
100 |
epatch "${WORKDIR}"/patch |
103 |
epatch "${WORKDIR}"/patch |
Lines 118-124
Link Here
|
118 |
eautoreconf |
121 |
eautoreconf |
119 |
} |
122 |
} |
120 |
|
123 |
|
121 |
src_compile() { |
124 |
src_configure() { |
122 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-thunderbird" |
125 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-thunderbird" |
123 |
|
126 |
|
124 |
#################################### |
127 |
#################################### |
Lines 160-166
Link Here
|
160 |
# This removes extraneous CFLAGS from the Makefiles to reduce RAM |
163 |
# This removes extraneous CFLAGS from the Makefiles to reduce RAM |
161 |
# requirements while compiling |
164 |
# requirements while compiling |
162 |
edit_makefiles |
165 |
edit_makefiles |
|
|
166 |
} |
163 |
|
167 |
|
|
|
168 |
src_compile() { |
164 |
# Only build the parts necessary to support building enigmail |
169 |
# Only build the parts necessary to support building enigmail |
165 |
emake -j1 export || die "make export failed" |
170 |
emake -j1 export || die "make export failed" |
166 |
emake -C modules/libreg || die "make modules/libreg failed" |
171 |
emake -C modules/libreg || die "make modules/libreg failed" |