1 |
commit: 76a5c44143763c31f2fab5efaef913bba4fe51db |
2 |
Author: Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 2 16:10:59 2016 +0000 |
4 |
Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 2 16:11:56 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76a5c441 |
7 |
|
8 |
net-mail/notmuch: Let package manager download test database |
9 |
|
10 |
Put test notmuch database into SRC_URI and copy it to test directory |
11 |
rather than downloading it in src_test phase. |
12 |
|
13 |
Package-Manager: portage-2.3.0 |
14 |
|
15 |
net-mail/notmuch/Manifest | 1 + |
16 |
net-mail/notmuch/notmuch-0.22-r2.ebuild | 9 +++++++-- |
17 |
2 files changed, 8 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/net-mail/notmuch/Manifest b/net-mail/notmuch/Manifest |
20 |
index 64dc7b3..8933e71 100644 |
21 |
--- a/net-mail/notmuch/Manifest |
22 |
+++ b/net-mail/notmuch/Manifest |
23 |
@@ -1,3 +1,4 @@ |
24 |
+DIST database-v1.tar.xz 204876 SHA256 4299e051b10e1fa7b33ea2862790a09ebfe96859681804e5251e130f800e69d2 SHA512 e2d87373e00b65756d7fea40c54fb236d7a37ce839145c3afd99ab26efdc17796e540c021e2c24e521df2d0a01ccbf918994f87a0d83235ff9b109a51555b3d0 WHIRLPOOL c3a4d99405ce5143ee2ac0cbdebdabbee0213ecfcb25615612b1577165547dd7c5b6b1d1930302dc3a8afc92b3691a6a4cc48255e91b08a297f9d2510e789233 |
25 |
DIST notmuch-0.18.2.tar.gz 635438 SHA256 e99f7bfee1250aa9f23e05d926ec278316fb8dd135262b0e24f4ba1a78febc9c SHA512 f6c7c9f17b1a7560bae8d3c7023be2fa6661a1dee5d69a6449a7b7c4468730b6917a857f015b67f09e18801e084a4c65a24a01603683e0ed12fc24b9feb9250e WHIRLPOOL 40191e7078088b45deda2ab2d61a3e2448c61e63b69dd725a88ff68cfaedf68a6270f2d9171ef6a8cb475c4faefd9d84b899f7239953b53aebceede79a76199c |
26 |
DIST notmuch-0.19.tar.gz 659038 SHA256 396fc6548423785ebbbe9a6cce321d957d3b2e856edb8225bb0988470833eeeb SHA512 41eba85d2e6f89693f53d607abdef837973204e709f2c7385e64507a19b316913851f17b3b6dc93d8a622c72756b3e696aad8189570a563df38994cf346791a5 WHIRLPOOL 380d2508f106fc08b31f7928d63587cfc7ed63835a0cde287d7ba09d3f6814070c789aad1d0bf6a3bab387273b2d37a8c783d939c2f4afa475b9785f2618a25a |
27 |
DIST notmuch-0.20.2.tar.gz 652945 SHA256 f741a26345bff389fd8a4a119c4174c6585730f71844809583a54ef2a865adec SHA512 08ab75df324f232edd7c36f73d01d7453c058ffb55c4f548afdf9abe843317c1d7066f21e7600c66c53577f7d31787914bf69743aa5d221e239e182452681c75 WHIRLPOOL 1698cb1b09046f50a57ebf23625a2dd68f86cac7cb1142be81e77b5625e49960cb2311c8acff44de0894238bced48853cdd72b7edf34109ecee0bc53d5b086fc |
28 |
|
29 |
diff --git a/net-mail/notmuch/notmuch-0.22-r2.ebuild b/net-mail/notmuch/notmuch-0.22-r2.ebuild |
30 |
index 3b36766..6ef3939 100644 |
31 |
--- a/net-mail/notmuch/notmuch-0.22-r2.ebuild |
32 |
+++ b/net-mail/notmuch/notmuch-0.22-r2.ebuild |
33 |
@@ -12,7 +12,8 @@ inherit bash-completion-r1 elisp-common eutils flag-o-matic pax-utils \ |
34 |
|
35 |
DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging" |
36 |
HOMEPAGE="http://notmuchmail.org/" |
37 |
-SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.gz" |
38 |
+SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.gz |
39 |
+ test? ( ${HOMEPAGE%/}/releases/test-databases/database-v1.tar.xz )" |
40 |
|
41 |
LICENSE="GPL-3" |
42 |
# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is |
43 |
@@ -90,6 +91,11 @@ pkg_setup() { |
44 |
fi |
45 |
} |
46 |
|
47 |
+src_unpack() { |
48 |
+ unpack "${P}".tar.gz |
49 |
+ cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test-databases/ |
50 |
+} |
51 |
+ |
52 |
src_prepare() { |
53 |
[[ "${MY_PATCHES[@]}" ]] && epatch "${MY_PATCHES[@]}" |
54 |
|
55 |
@@ -141,7 +147,6 @@ src_compile() { |
56 |
|
57 |
src_test() { |
58 |
pax-mark -m notmuch |
59 |
- emake download-test-databases |
60 |
LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default |
61 |
pax-mark -ze notmuch |
62 |
} |