summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Żołnowski <aidecoe@gentoo.org>2016-07-02 17:10:59 +0100
committerAmadeusz Żołnowski <aidecoe@gentoo.org>2016-07-02 17:11:56 +0100
commit76a5c44143763c31f2fab5efaef913bba4fe51db (patch)
treeed8bd5fecba00eeb701c41bdab1d9ccf17b942ec
parentnet-mail/notmuch: Make tests verbose (diff)
downloadgentoo-76a5c44143763c31f2fab5efaef913bba4fe51db.tar.gz
gentoo-76a5c44143763c31f2fab5efaef913bba4fe51db.tar.bz2
gentoo-76a5c44143763c31f2fab5efaef913bba4fe51db.zip
net-mail/notmuch: Let package manager download test database
Put test notmuch database into SRC_URI and copy it to test directory rather than downloading it in src_test phase. Package-Manager: portage-2.3.0
-rw-r--r--net-mail/notmuch/Manifest1
-rw-r--r--net-mail/notmuch/notmuch-0.22-r2.ebuild9
2 files changed, 8 insertions, 2 deletions
diff --git a/net-mail/notmuch/Manifest b/net-mail/notmuch/Manifest
index 64dc7b347bc..8933e7153d4 100644
--- a/net-mail/notmuch/Manifest
+++ b/net-mail/notmuch/Manifest
@@ -1,3 +1,4 @@
+DIST database-v1.tar.xz 204876 SHA256 4299e051b10e1fa7b33ea2862790a09ebfe96859681804e5251e130f800e69d2 SHA512 e2d87373e00b65756d7fea40c54fb236d7a37ce839145c3afd99ab26efdc17796e540c021e2c24e521df2d0a01ccbf918994f87a0d83235ff9b109a51555b3d0 WHIRLPOOL c3a4d99405ce5143ee2ac0cbdebdabbee0213ecfcb25615612b1577165547dd7c5b6b1d1930302dc3a8afc92b3691a6a4cc48255e91b08a297f9d2510e789233
DIST notmuch-0.18.2.tar.gz 635438 SHA256 e99f7bfee1250aa9f23e05d926ec278316fb8dd135262b0e24f4ba1a78febc9c SHA512 f6c7c9f17b1a7560bae8d3c7023be2fa6661a1dee5d69a6449a7b7c4468730b6917a857f015b67f09e18801e084a4c65a24a01603683e0ed12fc24b9feb9250e WHIRLPOOL 40191e7078088b45deda2ab2d61a3e2448c61e63b69dd725a88ff68cfaedf68a6270f2d9171ef6a8cb475c4faefd9d84b899f7239953b53aebceede79a76199c
DIST notmuch-0.19.tar.gz 659038 SHA256 396fc6548423785ebbbe9a6cce321d957d3b2e856edb8225bb0988470833eeeb SHA512 41eba85d2e6f89693f53d607abdef837973204e709f2c7385e64507a19b316913851f17b3b6dc93d8a622c72756b3e696aad8189570a563df38994cf346791a5 WHIRLPOOL 380d2508f106fc08b31f7928d63587cfc7ed63835a0cde287d7ba09d3f6814070c789aad1d0bf6a3bab387273b2d37a8c783d939c2f4afa475b9785f2618a25a
DIST notmuch-0.20.2.tar.gz 652945 SHA256 f741a26345bff389fd8a4a119c4174c6585730f71844809583a54ef2a865adec SHA512 08ab75df324f232edd7c36f73d01d7453c058ffb55c4f548afdf9abe843317c1d7066f21e7600c66c53577f7d31787914bf69743aa5d221e239e182452681c75 WHIRLPOOL 1698cb1b09046f50a57ebf23625a2dd68f86cac7cb1142be81e77b5625e49960cb2311c8acff44de0894238bced48853cdd72b7edf34109ecee0bc53d5b086fc
diff --git a/net-mail/notmuch/notmuch-0.22-r2.ebuild b/net-mail/notmuch/notmuch-0.22-r2.ebuild
index 3b3676632d6..6ef39397a00 100644
--- a/net-mail/notmuch/notmuch-0.22-r2.ebuild
+++ b/net-mail/notmuch/notmuch-0.22-r2.ebuild
@@ -12,7 +12,8 @@ inherit bash-completion-r1 elisp-common eutils flag-o-matic pax-utils \
DESCRIPTION="Thread-based e-mail indexer, supporting quick search and tagging"
HOMEPAGE="http://notmuchmail.org/"
-SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.gz"
+SRC_URI="${HOMEPAGE%/}/releases/${P}.tar.gz
+ test? ( ${HOMEPAGE%/}/releases/test-databases/database-v1.tar.xz )"
LICENSE="GPL-3"
# Sub-slot corresponds to major wersion of libnotmuch.so.X.Y. Bump of Y is
@@ -90,6 +91,11 @@ pkg_setup() {
fi
}
+src_unpack() {
+ unpack "${P}".tar.gz
+ cp "${DISTDIR}"/database-v1.tar.xz "${S}"/test-databases/
+}
+
src_prepare() {
[[ "${MY_PATCHES[@]}" ]] && epatch "${MY_PATCHES[@]}"
@@ -141,7 +147,6 @@ src_compile() {
src_test() {
pax-mark -m notmuch
- emake download-test-databases
LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH}" V=1 default
pax-mark -ze notmuch
}