From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id AD8B9138010 for ; Mon, 15 Feb 2016 12:10:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BDFF621C001; Mon, 15 Feb 2016 12:10:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 368FA21C001 for ; Mon, 15 Feb 2016 12:10:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F2F79340F63 for ; Mon, 15 Feb 2016 12:10:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 73624CFF for ; Mon, 15 Feb 2016 12:10:09 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1455538142.dc45ef4f246cf360e9e67ec0fdfa87749bf1f67d.ulm@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/eapi/ X-VCS-Repository: proj/devmanual X-VCS-Files: ebuild-writing/eapi/text.xml X-VCS-Directories: ebuild-writing/eapi/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: dc45ef4f246cf360e9e67ec0fdfa87749bf1f67d X-VCS-Branch: master Date: Mon, 15 Feb 2016 12:10:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0e156609-3ba0-4ac0-bf96-15e6adbc7acd X-Archives-Hash: 2e1538c765047c46674317fc72f4c796 commit: dc45ef4f246cf360e9e67ec0fdfa87749bf1f67d Author: Markus Meier gentoo org> AuthorDate: Thu Nov 19 20:37:34 2015 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Mon Feb 15 12:09:02 2016 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=dc45ef4f describe EAPI=6 in EAPI Usage and Description page This is based on PMS and it's cheat sheet ebuild-writing/eapi/text.xml | 135 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) diff --git a/ebuild-writing/eapi/text.xml b/ebuild-writing/eapi/text.xml index 4cf6133..376089a 100644 --- a/ebuild-writing/eapi/text.xml +++ b/ebuild-writing/eapi/text.xml @@ -858,6 +858,141 @@ If USE flag is set, echo [true output][true suffix] (defaults to "yes"), +
+EAPI=6 + + + +Bash version + +

Ebuilds can use features of Bash version 4.2 (was 3.2 before).

+ +
+ + +Ebuild environment + +
    +
  • +

    Locale settings

    +

    It is ensured that the behaviour of case modification and collation order for ASCII characters (LC_CTYPE and LC_COLLATE) are the same as in the POSIX locale.

    +
  • +
  • +

    failglob enabled

    +

    + The failglob option of Bash is set in global scope, so that unintentional pattern expansion will be caught as an error. +

    +
  • +
+ +
+ + +Phases + +
    +
  • +

    New src_prepare Phase Function

    +

    + This phase is no longer a no-op, it supports applying patches via the PATCHES variable and applying user patches via eaply_user. The default src_prepare looks like this: + +src_prepare() { + if declare -p PATCHES | grep -q "^declare -a "; then + [[ -n ${PATCHES[@]} ]] && eapply "${PATCHES[@]}" + else + [[ -n ${PATCHES} ]] && eapply ${PATCHES} + fi + eapply_user +} + +

    +
  • +
  • +

    New src_install Phase Function

    +

    + This phase uses the new einstalldocs function for installation of documentation. The default src_install looks like this: + +src_install() { + if [[ -f Makefile ]] || [[ -f GNUmakefile ]] || [[ -f makefile ]]; then + emake DESTDIR="${D}" install + fi + einstalldocs +} + +

    +
  • +
+ +
+ + +Helpers + +
    +
  • +

    einstall banned

    +

    + The einstall helper has been banned with EAPI=6. +

    +
  • +
  • +

    nonfatal die

    +

    + When die or assert are called under the nonfatal command and with the -n option, they will not abort the build process but return with an error. +

    +
  • +
  • +

    eapply support

    +

    + The eapply command is a simplified substitute for epatch (from eutils.eclass), implemented in the package manager. The patches from its file or directory arguments are applied using patch -p1. +

    +
  • +
  • +

    eapply_user support

    +

    + The eapply_user command permits the package manager to apply user-provided patches. It must be called from every src_prepare function. +

    +
  • +
  • +

    econf adds --docdir and --htmldir

    +

    + Options --docdir and --htmldir are passed to configure, in addition to the existing options. +

    +
  • +
  • +

    in_iuse support

    +

    + The in_iuse function returns true if the USE flag given as its argument is available in the ebuild for USE queries. +

    +
  • +
  • +

    unpack changes

    +
      +
    • unpack supports absolute and relative paths.

    • +
    • unpack supports .txz (xz compressed tarball).

    • +
    • unpack matches filename extensions case-insensitively.

    • +
    +
  • +
  • +

    einstalldocs support

    +

    + The einstalldocs function will in-stall the files specified by the DOCS variable (or a default set of files if DOCS is unset) and by the HTML_DOCS variable. +

    +
  • +
  • +

    get_libdir support

    +

    + The get_libdir command outputs the lib* directory basename suitable for the current ABI. +

    +
  • +
+ +
+ + + +
+