net-vpn/tor: add USE=doc and man for bug #684986
authorAnthony G. Basile <blueness@gentoo.org>
Sat, 4 May 2019 18:48:51 +0000 (14:48 -0400)
committerAnthony G. Basile <blueness@gentoo.org>
Sat, 4 May 2019 18:49:11 +0000 (14:49 -0400)
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

net-vpn/tor/metadata.xml
net-vpn/tor/tor-0.4.0.4_rc.ebuild

index ed620b01846484dc8da09439bb5d52f4e80ae36a..121fa511c9065be529df3212d47c21e74ea174fc 100644 (file)
@@ -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>
index 2e27b784b6bccb683eb7d82cc03739270dd10fc4..6b60698543f622bd08def9f78aa856f496af8552 100644 (file)
@@ -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
+
 }