1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit flag-o-matic toolchain-funcs
8 DESCRIPTION="Connect stdin and stdout to a server via an HTTPS proxy"
9 HOMEPAGE="https://github.com/proxytunnel/proxytunnel/ https://proxytunnel.sourceforge.net/"
15 RDEPEND="dev-libs/openssl:="
20 BDEPEND="virtual/pkgconfig"
22 DOCS=( CHANGES CREDITS INSTALL KNOWN_ISSUES LICENSE.txt README RELNOTES TODO )
24 if [[ ${PV} == *9999 ]] ; then
25 EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
28 SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
29 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
34 sed -i -e 's/libssl/libssl libcrypto/' Makefile || die "Sed failed!"
38 use static && append-ldflags -static
39 emake CC="$(tc-getCC)"
43 emake install prefix="${EPREFIX}"/usr DESTDIR="${D}"