From 7ece295c30a13e5060a128a1e268a940a1891b55 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 29 Jul 2019 05:50:10 +0200 Subject: [PATCH] www-misc/remwharead: Added doc useflag to live-ebuild. Package-Manager: Portage-2.3.66, Repoman-2.3.16 Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07 --- www-misc/remwharead/Manifest | 10 +++++----- www-misc/remwharead/remwharead-9999.ebuild | 21 +++++++++++++++++++-- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/www-misc/remwharead/Manifest b/www-misc/remwharead/Manifest index ed8143bc5..dca4b41e0 100644 --- a/www-misc/remwharead/Manifest +++ b/www-misc/remwharead/Manifest @@ -3,12 +3,12 @@ Hash: SHA256 DIST remwharead-0.6.3.tar.gz 39523 BLAKE2B ac0538d9b7e6addabb0eabc93a178173f0ab7d5d84655a1065fb2076284e8c65af768dacbd98500ad37b9521dcb64939bf4673c04c45c2b163f20f16739c2101 SHA512 969ac036711f12cd1f199bf53fb7a0bdbd15b9ac9d2bdd0ec8e80eef2b3c7c48569bef661fe766c6e58a8dcc177181275b3fd89c1d0dc53cabb3fbd833b80d10 EBUILD remwharead-0.6.3.ebuild 1178 BLAKE2B 7246fef9dc0be1879bebb3c0246d2dd0439ef5a22c4bc399bc20a988d5451184592214ef3fb23c92296cea9b4289cb27bc8b0c919b210f0d90ea7e2b1d2acc2e SHA512 5cefbe01362d9b5ad8a282c7b47539c9541997c281477edd70375606f3da51daa9890b3300db31c7954050a1c08352340a002ded4a3f2505ed105df19397c558 -EBUILD remwharead-9999.ebuild 1178 BLAKE2B 7246fef9dc0be1879bebb3c0246d2dd0439ef5a22c4bc399bc20a988d5451184592214ef3fb23c92296cea9b4289cb27bc8b0c919b210f0d90ea7e2b1d2acc2e SHA512 5cefbe01362d9b5ad8a282c7b47539c9541997c281477edd70375606f3da51daa9890b3300db31c7954050a1c08352340a002ded4a3f2505ed105df19397c558 +EBUILD remwharead-9999.ebuild 1384 BLAKE2B 84ace83da3a6ee47cf8f42a722c10938a89a043cfecdeb765f75a4963f4ebedf946254c573018a48d8bd2b994a58b1421573261f5bc03b66ef442490415d594f SHA512 97320134338a3ad306c40d0a6cf14bbb47871efa3b8d10fec28154ea6d8b93a692efd5ddf351bb0734f9dbd0d67594deabe09825be8c0c2a133bee4c7307d352 MISC metadata.xml 690 BLAKE2B b67b1468a4464675b03d1a1de3574ed6e3ebe4df4426b31392c26efabecb6b67e54461d37ffb5a4e0f2f44b38c726de3ac3303f09195c05444fdd81483e644d0 SHA512 7dd29a5bfa54bd640ce331d85df776b9a19e50c935ba470bc1beaf017cdf0fbdc20fcf56043ede2f19162218e04ebd80b0ce47483dafb123f06346aa13164a90 -----BEGIN PGP SIGNATURE----- -iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXTpcBwAKCRDPw5SX8bJu -B2CkAPwKaMkiQsD7b+EsmZL2jOCJduR1jGp8xRrdl6oHj4KcSgD/ZEcCNE5I+S2B -fEV4LXpBc3FpRnfEWVcvle3lhfVvBMg= -=vhIt +iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXT5s8gAKCRDPw5SX8bJu +Bys1AP9M/9ICJKvfXvJxNQXlAdev0JaEmHr/OGYNbQfURgOMggD/f8Jyf0mGzYyu +0HQrrf5vbxwf17G15ssxlFNroC9tLQs= +=Ioli -----END PGP SIGNATURE----- diff --git a/www-misc/remwharead/remwharead-9999.ebuild b/www-misc/remwharead/remwharead-9999.ebuild index 67f0d3dc4..f2d1ef17f 100644 --- a/www-misc/remwharead/remwharead-9999.ebuild +++ b/www-misc/remwharead/remwharead-9999.ebuild @@ -24,7 +24,7 @@ if [[ "${PV}" == "9999" ]]; then else KEYWORDS="~amd64 ~x86" fi -IUSE="+firefox test" +IUSE="doc +firefox test" RDEPEND=" >=dev-cpp/curlpp-0.8.1 @@ -33,11 +33,12 @@ RDEPEND=" dev-libs/icu " DEPEND=" + ${RDEPEND} dev-util/cmake app-text/asciidoc dev-cpp/popl - ${RDEPEND} test? ( dev-cpp/catch ) + doc? ( app-doc/doxygen ) " if [[ "${PV}" != "9999" ]]; then @@ -53,6 +54,22 @@ src_configure() { cmake-utils_src_configure } +src_compile() { + cmake-utils_src_compile + + if use doc; then + ./build_doc.sh + fi +} + +src_install() { + if use doc; then + HTML_DOCS="doc/html/*" + fi + + cmake-utils_src_install +} + pkg_postinst() { if use firefox; then elog "The firefox useflag only installs the wrapper needed for the" \