diff options
author | Göktürk Yüksek <gokturk@gentoo.org> | 2016-06-13 11:50:21 -0400 |
---|---|---|
committer | Göktürk Yüksek <gokturk@gentoo.org> | 2016-06-15 21:15:58 -0400 |
commit | c6e5ee2b40f491089980056f4c4d737469282887 (patch) | |
tree | a37179c9e2699a8164ac5cdf7d72c9af1964fc5e /ebuild-writing/functions/src_prepare/epatch/text.xml | |
parent | Fix Bugzilla URLs. (diff) | |
download | devmanual-c6e5ee2b40f491089980056f4c4d737469282887.tar.gz devmanual-c6e5ee2b40f491089980056f4c4d737469282887.tar.bz2 devmanual-c6e5ee2b40f491089980056f4c4d737469282887.zip |
ebuild-writing/.../epatch: suggest compressing patches with xz
With app-arch/xz-utils being in @system, suggest patches to be
compressed with xz as it achieves higher compression rates than bzip2.
Also replace 'files/' with '${FILESDIR}' and add a link to the
variables page.
Reported-by: dracwyrm <j.scruggs@gmail.com>
Diffstat (limited to 'ebuild-writing/functions/src_prepare/epatch/text.xml')
-rw-r--r-- | ebuild-writing/functions/src_prepare/epatch/text.xml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ebuild-writing/functions/src_prepare/epatch/text.xml b/ebuild-writing/functions/src_prepare/epatch/text.xml index a8d5f04..a3adfb5 100644 --- a/ebuild-writing/functions/src_prepare/epatch/text.xml +++ b/ebuild-writing/functions/src_prepare/epatch/text.xml @@ -37,11 +37,14 @@ src_unpack() { </codesample> <p> -For larger patches, using <uri link="::general-concepts/mirrors/#suitable-download-hosts">your devspace</uri> rather -than <c>files/</c> is more appropriate. In these situations, it is -usually best to <c>bzip2</c> the patch in question (as opposed to -<c>files/</c> patches, which must not be compressed). For example, -from <c>app-admin/showconsole</c>: +For larger patches, using +<uri link="::general-concepts/mirrors/#suitable-download-hosts"> +your devspace</uri> rather than +<uri link="::ebuild-writing/variables#Predefined Read-Only Variables"> +${FILESDIR}</uri> is more appropriate. In these situations, it is +usually best to compress the patch in question with <c>xz</c> or +<c>bzip2</c>(as opposed to <c>${FILESDIR}</c> patches, which must not +be compressed). For example, from <c>app-admin/showconsole</c>: </p> <codesample lang="ebuild"> |