commit:     e0114c73367e2e6a2cca33f8a8eb69fe1677dd40
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 25 13:45:07 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Dec 25 14:42:17 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0114c73

app-doc/devmanual: [QA] Port to git-r3

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 app-doc/devmanual/devmanual-0_pre20141116.ebuild | 35 +++++++++++++++---------
 app-doc/devmanual/devmanual-9999.ebuild          | 33 ++++++++++++++++------
 2 files changed, 46 insertions(+), 22 deletions(-)

diff --git a/app-doc/devmanual/devmanual-0_pre20141116.ebuild 
b/app-doc/devmanual/devmanual-0_pre20141116.ebuild
index 28cc59a1100..e891efa24f2 100644
--- a/app-doc/devmanual/devmanual-0_pre20141116.ebuild
+++ b/app-doc/devmanual/devmanual-0_pre20141116.ebuild
@@ -1,32 +1,28 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
-inherit readme.gentoo
-
-[[ "${PV}" == "9999" ]] && inherit git-2
+inherit readme.gentoo-r1
 
 DESCRIPTION="The Gentoo Development Guide"
 HOMEPAGE="https://devmanual.gentoo.org/";
-if [[ "${PV}" == "9999" ]]; then
-EGIT_REPO_URI="git://anongit.gentoo.org/proj/devmanual.git"
+
+if [[ ${PV} == *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="git://anongit.gentoo.org/proj/devmanual.git"
 else
-SRC_URI="https://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz";
+       SRC_URI="https://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz";
+       KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
~sh ~sparc ~x86 ~x64-macos"
 fi
 
 LICENSE="CC-BY-SA-2.0"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh 
~sparc ~x86 ~x64-macos"
 IUSE=""
 
 DEPEND="dev-libs/libxslt
        media-gfx/imagemagick[truetype,svg,png]"
 
-DOC_CONTENTS="In order to browse the Gentoo Development Guide in
-       offline mode, point your browser to the following url:
-       ${EPREFIX}/usr/share/doc/devmanual/html/index.html"
-
 src_compile() {
        # Imagemagick uses inkscape (if present) to delegate
        # svg conversions.
@@ -38,9 +34,22 @@ src_compile() {
 }
 
 src_install() {
-       dohtml -r *
+       # clean out XML/XSL before installing
+       find . \( \
+               -iname '*.xml' -o \
+               -iname '*.xsl' -o \
+               -iname '*.svg' \) -delete || die
+       rm -r README.md xsl LICENSE Makefile || die
+
+       local HTML_DOCS=( . )
+       einstalldocs
+
        einfo "Creating symlink from ${PF} to ${PN} for preserving bookmarks"
        dosym ${PF} /usr/share/doc/${PN}
+
+       local DOC_CONTENTS="In order to browse the Gentoo Development Guide in
+               offline mode, point your browser to the following url:
+               ${EPREFIX}/usr/share/doc/devmanual/html/index.html"
        readme.gentoo_create_doc
 }
 

diff --git a/app-doc/devmanual/devmanual-9999.ebuild 
b/app-doc/devmanual/devmanual-9999.ebuild
index 27453deb618..e891efa24f2 100644
--- a/app-doc/devmanual/devmanual-9999.ebuild
+++ b/app-doc/devmanual/devmanual-9999.ebuild
@@ -1,26 +1,28 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
-inherit git-2 readme.gentoo
+inherit readme.gentoo-r1
 
 DESCRIPTION="The Gentoo Development Guide"
 HOMEPAGE="https://devmanual.gentoo.org/";
-EGIT_REPO_URI="git://anongit.gentoo.org/proj/devmanual.git"
+
+if [[ ${PV} == *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="git://anongit.gentoo.org/proj/devmanual.git"
+else
+       SRC_URI="https://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz";
+       KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
~sh ~sparc ~x86 ~x64-macos"
+fi
 
 LICENSE="CC-BY-SA-2.0"
 SLOT="0"
-KEYWORDS=""
 IUSE=""
 
 DEPEND="dev-libs/libxslt
        media-gfx/imagemagick[truetype,svg,png]"
 
-DOC_CONTENTS="In order to browse the Gentoo Development Guide in
-       offline mode, point your browser to the following url:
-       /usr/share/doc/devmanual/html/index.html"
-
 src_compile() {
        # Imagemagick uses inkscape (if present) to delegate
        # svg conversions.
@@ -32,9 +34,22 @@ src_compile() {
 }
 
 src_install() {
-       dohtml -r *
+       # clean out XML/XSL before installing
+       find . \( \
+               -iname '*.xml' -o \
+               -iname '*.xsl' -o \
+               -iname '*.svg' \) -delete || die
+       rm -r README.md xsl LICENSE Makefile || die
+
+       local HTML_DOCS=( . )
+       einstalldocs
+
        einfo "Creating symlink from ${PF} to ${PN} for preserving bookmarks"
        dosym ${PF} /usr/share/doc/${PN}
+
+       local DOC_CONTENTS="In order to browse the Gentoo Development Guide in
+               offline mode, point your browser to the following url:
+               ${EPREFIX}/usr/share/doc/devmanual/html/index.html"
        readme.gentoo_create_doc
 }
 

Reply via email to