commit: 54f95fbce431408bb8464367f25db645b2981989 Author: Petr Vaněk <arkamar <AT> gentoo <DOT> org> AuthorDate: Sat Jan 11 14:17:23 2025 +0000 Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org> CommitDate: Sat Jan 11 14:17:54 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54f95fbc
net-p2p/mktorrent: update EAPI 7 -> 8 Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org> .../mktorrent/mktorrent-1.1_p20210130-r1.ebuild | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/net-p2p/mktorrent/mktorrent-1.1_p20210130-r1.ebuild b/net-p2p/mktorrent/mktorrent-1.1_p20210130-r1.ebuild new file mode 100644 index 000000000000..892c1fb58c80 --- /dev/null +++ b/net-p2p/mktorrent/mktorrent-1.1_p20210130-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Simple command line utility to create BitTorrent metainfo files" +HOMEPAGE="https://github.com/pobrn/mktorrent" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/pobrn/mktorrent" +else + COMMIT_ID="de7d011b35458de1472665f50b96c9cf6c303f39" + SRC_URI=" + https://github.com/pobrn/${PN}/archive/${COMMIT_ID}.tar.gz + -> ${PN}-${COMMIT_ID}.tar.gz + " + S="${WORKDIR}/${PN}-${COMMIT_ID}" +fi + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="threads +ssl debug" + +RDEPEND=" + ssl? ( dev-libs/openssl:0= ) +" + +DEPEND="${RDEPEND}" + +src_compile() { + tc-export CC + + local myemakeargs=( + USE_LARGE_FILES=1 + DEBUG=$(usex debug) + USE_OPENSSL=$(usex ssl) + USE_PTHREADS=$(usex threads) + ) + emake "${myemakeargs[@]}" +} + +src_install() { + dobin ${PN} + dodoc README +}
