# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 CABAL_FEATURES="" MY_COMMIT="5b7c073c7dc3feb2e8cbfd56105f42a7d01cecc6" inherit haskell-cabal DESCRIPTION="Convert adblock config files to privoxy format - Fork with additional changes" HOMEPAGE="https://github.com/essandess/adblock2privoxy" SRC_URI="https://github.com/essandess/${PN}/tarball/${MY_COMMIT} -> ${P}.tar.gz" LICENSE="GPL-3" KEYWORDS="~amd64 ~x86" IUSE="apache nginx" SLOT="0" RDEPEND="net-proxy/privoxy dev-haskell/case-insensitive:= dev-haskell/http-conduit:= dev-haskell/missingh:= dev-haskell/mtl:= >=dev-haskell/network-2.4:= dev-haskell/network-uri:= >=dev-haskell/old-locale-1.0:= dev-haskell/parsec:= >=dev-haskell/parsec-permutation-0.1.2.0:= >=dev-haskell/strict-0.3:= >=dev-haskell/text-0.11:= >=dev-lang/ghc-7.4.1:= apache? ( www-servers/apache ) nginx? ( www-servers/nginx ) " DEPEND="${RDEPEND} >=dev-haskell/cabal-1.10 " DOCS="../README.md *.rst changelog" S="${WORKDIR}/essandess-${PN}-${MY_COMMIT:0:7}/${PN}" haskell-cabal_src_install() { pushd "${S}" > /dev/null || die cabal_src_install popd > /dev/null || die dodoc ${DOCS} doman man/man1/${PN}.1 }