sword-module.eclass

Name

sword-module.eclass -- Simplify installation of SWORD modules

Description

This eclass provides dependencies, ebuild environment and the src_install function common to all app-text/sword modules published by the SWORD Project.

Note that as of 2021-06-16 module archives published by SWORD are still not versioned and it is necessary to look at respective module pages in order to see what versions the currently available files are. Once a module file has been replicated to the Gentoo mirror network it will be versioned and remain available even after upstream has changed their version, however users not using mirrors will encounter hash conflicts on updated modules. Should that happen, please notify the relevant package maintainers that a new version is available.

Supported EAPIs

7 8

Example

sword-Personal-1.0.ebuild, a typical ebuild using sword-module.eclass:

EAPI=8

SWORD_MINIMUM_VERSION="1.5.1a"

inherit sword-module

DESCRIPTION="SWORD module for storing one's own commentary"
HOMEPAGE="https://crosswire.org/sword/modules/ModInfo.jsp?modName=Personal"
LICENSE="public-domain"
KEYWORDS="~amd64 ~ppc ~x86"

Exported Phases

  • src_install

Functions

sword-module_src_install

Install all the module files into directories used by app-text/sword.

Variables

SWORD_MINIMUM_VERSION (SET BEFORE INHERIT)

If set to a non-null value, specifies the minimum version of app-text/sword the module requires. This will be included in RDEPEND. If null or unset, the dependency will be unversioned. Needs to be set before the inherit line.

SWORD_MODULE ?= ${PN#sword-} (SET BEFORE INHERIT)

Case-sensitive name of the SWORD-Project module to install. If unset or null, use the name produced by removing the prefix 'sword-' from PN. Needs to be set before the inherit line.

Maintainers

Marek Szuba <marecki@gentoo.org>

Reporting Bugs

Please report bugs via https://bugs.gentoo.org/