summaryrefslogtreecommitdiff
path: root/net-p2p/mktorrent/mktorrent-1.1_p20210130.ebuild
blob: 780701039e5e96ad6f70e005e2eddbc83eb42747 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 2021 BaldEagleOS 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"
COMMIT_ID="de7d011b35458de1472665f50b96c9cf6c303f39"
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}"
LICENSE="GPL-2+"
SLOT="0"
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
}