You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.0 KiB
51 lines
1.0 KiB
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
7 years ago
|
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
|
||
5 years ago
|
COMMIT_ID="4c221a05d949a3767a2671de139c6014909daf6b"
|
||
6 years ago
|
SRC_URI="https://github.com/Rudde/${PN}/archive/${COMMIT_ID}.tar.gz -> ${PN}-${COMMIT_ID}.tar.gz"
|
||
7 years ago
|
KEYWORDS="~amd64 ~arm ~x86"
|
||
6 years ago
|
S="${WORKDIR}/${PN}-${COMMIT_ID}"
|
||
7 years ago
|
fi
|
||
|
|
||
5 years ago
|
LICENSE="GPL-2+"
|
||
7 years ago
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~arm ~x86"
|
||
5 years ago
|
IUSE="threads +ssl libressl debug"
|
||
|
|
||
|
RDEPEND="
|
||
|
ssl? (
|
||
|
!libressl? ( dev-libs/openssl:0= )
|
||
|
libressl? ( dev-libs/libressl:0= )
|
||
|
)
|
||
|
"
|
||
7 years ago
|
|
||
|
DEPEND="${RDEPEND}"
|
||
|
|
||
|
src_compile() {
|
||
|
tc-export CC
|
||
|
|
||
6 years ago
|
local myemakeargs=(
|
||
|
USE_LONG_OPTIONS=1
|
||
|
USE_LARGE_FILES=1
|
||
|
DEBUG=$(usex debug)
|
||
|
USE_OPENSSL=$(usex ssl)
|
||
7 years ago
|
USE_PTHREADS=$(usex threads)
|
||
6 years ago
|
)
|
||
|
emake "${myemakeargs[@]}"
|
||
7 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin ${PN}
|
||
|
dodoc README
|
||
|
}
|