Ebuild

From Gentoo Wiki
Jump to:navigation Jump to:search
This page is a translated version of the page Ebuild and the translation is 39% complete.
Outdated translations are marked like this.
Other languages:
Resources

ebuild 文件是文本文件,它通常储存于 repository ,供 Gentoo 包管理器使用,它标识一个特定的软件包,以及告诉 Gentoo 包管理器如何处理它。ebuild 使用 bash 类似语法风格,并通过 软件包管理器规范使用EAPI 来控制版本。

Gentoo Linux 使用 ebuild 作为单个软件的包管理格式。这些 ebuild 包含相关软件的元数据(软件的名称和版本、软件使用的许可证和主页)​​、依赖信息(构建时和运行时依赖)以及有关如何处理的说明使用软件(配置、构建、安装、测试...)。

Gentoo 中 ebuild 的默认位置是Gentoo ebuild repository/var/db/repos/gentoo/)。

另请参阅
See the ebuild repository article about what an ebuild repository is, the creating an ebuild repository article on how to create them, and the basic guide to write Gentoo Ebuilds for creating ebuilds to house in a repository.

ebuild 也是运行各种 ebuild 函数Portage 命令。

附注
Ebuilds can be installed with the ebuild command, however this is not recommended - this command is for development purposes only. Ebuilds should be placed in an ebuild repository then installed with the emerge command.

通过运行以下命令在本地找到 ebuild 命令的相关信息:

user $man 1 ebuild

实时 ebuild

如果源代码是从修订控制系统 (VCS) 获取的,那么此 ebuild 就是“实时 ebuild”。它们的版本号往往(但不一定)是 9999,以便可以轻松将其与基于上游版本的普通 ebuild 区分开来。

如果 ebuild 有一个变量 PROPERTIES,其中的值是“live”,那么它就是“实时的”。如果一个 ebuild 继承了一个 VCS eclass(例如 git-r3、mercurial、darcs),它将是实时的,因为这些 eclass 中有一行 PROPERTIES+="live"

另请参阅

外部资源