diff options
author | 2019-12-30 22:24:24 +0100 | |
---|---|---|
committer | 2020-01-06 12:39:22 +0200 | |
commit | 39d71b8868c1f0f540051b295736fc645a6c0ba7 (patch) | |
tree | 913731a8da659a1e1ea0abd6d6da78a616d0bca4 /net-p2p/mktorrent/mktorrent-1.1_p20180912.ebuild | |
parent | dev-lisp/roswell: add bug# for soft blocker (diff) | |
download | gentoo-39d71b8868c1f0f540051b295736fc645a6c0ba7.tar.gz gentoo-39d71b8868c1f0f540051b295736fc645a6c0ba7.tar.bz2 gentoo-39d71b8868c1f0f540051b295736fc645a6c0ba7.zip |
net-p2p/mktorrent: Bump to p20180912 and add libressl support
Closes: https://bugs.gentoo.org/704110
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Nils Freydank <holgersson@posteo.de>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-p2p/mktorrent/mktorrent-1.1_p20180912.ebuild')
-rw-r--r-- | net-p2p/mktorrent/mktorrent-1.1_p20180912.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/net-p2p/mktorrent/mktorrent-1.1_p20180912.ebuild b/net-p2p/mktorrent/mktorrent-1.1_p20180912.ebuild new file mode 100644 index 000000000000..40a3a3270d56 --- /dev/null +++ b/net-p2p/mktorrent/mktorrent-1.1_p20180912.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit toolchain-funcs + +DESCRIPTION="Simple command line utility to create BitTorrent metainfo files" +HOMEPAGE="https://github.com/Rudde/mktorrent" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Rudde/mktorrent.git" +else + COMMIT_ID="4c221a05d949a3767a2671de139c6014909daf6b" + SRC_URI="https://github.com/Rudde/${PN}/archive/${COMMIT_ID}.tar.gz -> ${PN}-${COMMIT_ID}.tar.gz" + KEYWORDS="~amd64 ~arm ~x86" + S="${WORKDIR}/${PN}-${COMMIT_ID}" +fi + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="threads +ssl libressl debug" + +RDEPEND=" + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) +" + +DEPEND="${RDEPEND}" + +src_compile() { + tc-export CC + + local myemakeargs=( + USE_LONG_OPTIONS=1 + USE_LARGE_FILES=1 + DEBUG=$(usex debug) + USE_OPENSSL=$(usex ssl) + USE_PTHREADS=$(usex threads) + ) + emake "${myemakeargs[@]}" +} + +src_install() { + dobin ${PN} + dodoc README +} |