commit:     be60ee03d4618b922e226bc867f0371cb3f0c432
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat May  4 18:48:51 2019 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat May  4 18:49:11 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be60ee03

net-vpn/tor: add USE=doc and man for bug #684986

Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

 net-vpn/tor/metadata.xml          |  1 +
 net-vpn/tor/tor-0.4.0.4_rc.ebuild | 10 ++++++----
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/net-vpn/tor/metadata.xml b/net-vpn/tor/metadata.xml
index ed620b01846..121fa511c90 100644
--- a/net-vpn/tor/metadata.xml
+++ b/net-vpn/tor/metadata.xml
@@ -6,6 +6,7 @@
                <name>Anthony G. Basile</name>
        </maintainer>
        <use>
+               <flag name="man">Build and install man pages</flag>
                <flag name="scrypt">Use <pkg>app-crypt/libscrypt</pkg> for the 
scrypt algorithm</flag>
                <flag name="tor-hardening">Compile tor with hardening on 
vanilla compilers/linkers</flag>
        </use>

diff --git a/net-vpn/tor/tor-0.4.0.4_rc.ebuild 
b/net-vpn/tor/tor-0.4.0.4_rc.ebuild
index 2e27b784b6b..6b60698543f 100644
--- a/net-vpn/tor/tor-0.4.0.4_rc.ebuild
+++ b/net-vpn/tor/tor-0.4.0.4_rc.ebuild
@@ -16,13 +16,13 @@ S="${WORKDIR}/${MY_PF}"
 LICENSE="BSD GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86 ~ppc-macos"
-IUSE="caps libressl lzma scrypt seccomp selinux systemd tor-hardening test 
zstd"
+IUSE="caps doc libressl lzma +man scrypt seccomp selinux systemd tor-hardening 
test zstd"
 
 DEPEND="
-       app-text/asciidoc
        dev-libs/libevent[ssl]
        sys-libs/zlib
        caps? ( sys-libs/libcap )
+       man? ( app-text/asciidoc )
        !libressl? ( dev-libs/openssl:0=[-bindist] )
        libressl? ( dev-libs/libressl:0= )
        lzma? ( app-arch/xz-utils )
@@ -38,7 +38,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-0.3.3.2-alpha-tor.service.in.patch
 )
 
-DOCS=( README ChangeLog ReleaseNotes doc/HACKING )
+DOCS=()
 
 pkg_setup() {
        enewgroup tor
@@ -46,11 +46,11 @@ pkg_setup() {
 }
 
 src_configure() {
+       use doc && DOCS+=( README ChangeLog ReleaseNotes doc/HACKING )
        export ac_cv_lib_cap_cap_init=$(usex caps)
        econf \
                --localstatedir="${EPREFIX}/var" \
                --enable-system-torrc \
-               --enable-asciidoc \
                --disable-android \
                --disable-libfuzzer \
                --disable-module-dirauth \
@@ -58,6 +58,7 @@ src_configure() {
                --disable-rust \
                --disable-restart-debugging \
                --disable-zstd-advanced-apis  \
+               $(use_enable man asciidoc) \
                $(use_enable lzma) \
                $(use_enable scrypt libscrypt) \
                $(use_enable seccomp) \
@@ -84,4 +85,5 @@ src_install() {
 
        insinto /etc/tor/
        newins "${FILESDIR}"/torrc-r1 torrc
+
 }

Reply via email to