diff options
author | Alexis Ballier <aballier@gentoo.org> | 2018-07-21 15:57:05 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2018-07-21 16:01:29 +0200 |
commit | 1347885ac392f72877ea9f144034b72925b2ffc9 (patch) | |
tree | f8777a995667606706bdae3e99afacecad783f91 /eclass/texlive-module.eclass | |
parent | eclass/texlive-module.eclass: Improve eapi 6 & 7 support (diff) | |
download | gentoo-1347885ac392f72877ea9f144034b72925b2ffc9.tar.gz gentoo-1347885ac392f72877ea9f144034b72925b2ffc9.tar.bz2 gentoo-1347885ac392f72877ea9f144034b72925b2ffc9.zip |
eclass/texlive-module.eclass: simplify doc useflag handling.
The documentation special case was added for documentation only packages.
Some years ago, upstream merged them into normal packages, so this is now useless.
Diffstat (limited to 'eclass/texlive-module.eclass')
-rw-r--r-- | eclass/texlive-module.eclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass index 6cc5cf808f55..882811774779 100644 --- a/eclass/texlive-module.eclass +++ b/eclass/texlive-module.eclass @@ -103,11 +103,11 @@ for i in ${TEXLIVE_MODULE_CONTENTS}; do done # Forge doc SRC_URI -[ -n "${PN##*documentation*}" ] && [ -n "${TEXLIVE_MODULE_DOC_CONTENTS}" ] && SRC_URI="${SRC_URI} doc? (" +[ -n "${TEXLIVE_MODULE_DOC_CONTENTS}" ] && SRC_URI="${SRC_URI} doc? (" for i in ${TEXLIVE_MODULE_DOC_CONTENTS}; do SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.${PKGEXT}" done -[ -n "${PN##*documentation*}" ] && [ -n "${TEXLIVE_MODULE_DOC_CONTENTS}" ] && SRC_URI="${SRC_URI} )" +[ -n "${TEXLIVE_MODULE_DOC_CONTENTS}" ] && SRC_URI="${SRC_URI} )" # Forge source SRC_URI if [ -n "${TEXLIVE_MODULE_SRC_CONTENTS}" ] ; then @@ -120,7 +120,7 @@ fi RDEPEND="${COMMON_DEPEND}" -[ -z "${PN##*documentation*}" ] || IUSE="${IUSE} doc" +IUSE="${IUSE} doc" # @ECLASS-VARIABLE: TEXLIVE_MODULE_OPTIONAL_ENGINE # @DESCRIPTION: @@ -347,7 +347,7 @@ texlive-module_src_install() { done dodir /usr/share - if [ -z "${PN##*documentation*}" ] || use doc; then + if use doc; then [ -d texmf-doc ] && cp -pR texmf-doc "${ED}/usr/share/" else [ -d texmf/doc ] && rm -rf texmf/doc |