mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-16 00:08:58 +03:00
net-p2p/rtorrent: drop 0.16.4
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/44892 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
a59880c072
commit
893acb045d
@ -1,3 +1,2 @@
|
||||
DIST rtorrent-0.15.7.tar.gz 866976 BLAKE2B e826f55b7411d0f11278a64b1851d4b5ff479b6872e513466d484000032a22d56025d4b04246ecd31b3229d71c0cb9738ac8bb76ed41865ef67dc27e4fe15b6c SHA512 99d8e276fb4044b123a5d8f147f8de521d228087ea13ce702cb8d601a14ce6b69cfbeb9a3d6ff394d49a5b0ae0a597c2dbafa687b550835ba5372e094c6b8ce6
|
||||
DIST rtorrent-0.16.4.tar.gz 851592 BLAKE2B d14ee1354b02588882b087cc58c622d687b3dc1d7e0e18b84d2c6de8ce0beb13d552db252c6398a64a4139de3d0082f31e93317fc654a70413369274af23f577 SHA512 3e7b6cf10c2d8a376adff70a5a0d8de1b2c850143e8c697999c912535fe04ac18f39a782c3b914f6a322614ef7f575abfe7a9026ae7ab5e17958fcc4540685f5
|
||||
DIST rtorrent-0.16.5.tar.gz 851652 BLAKE2B 84c4e989e86b43f414bc123235b4a041cedb4b3f59d9cbea7c65e2e53cabb9c68f15423d7a4b8e519b5e74358022a4da9ff558e9a98af02620633c7687eeb2e4 SHA512 8daf8b4f6ce2803fba9684ca04ea050a70d8171430ff90478f42dc311426a0fe7353b96096f67d738817f8983aea3e85eb409e615315d22c070186e3f7a70694
|
||||
|
||||
@ -1,112 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# require 64-bit integer
|
||||
LUA_COMPAT=( lua5-{3,4} )
|
||||
|
||||
inherit autotools lua-single systemd toolchain-funcs
|
||||
|
||||
DESCRIPTION="BitTorrent Client using libtorrent"
|
||||
HOMEPAGE="https://rakshasa.github.io/rtorrent/"
|
||||
if [[ ${PV} == *9999 ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/rakshasa/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/rakshasa/rtorrent/releases/download/v${PV}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="debug lua selinux test tinyxml2 xmlrpc"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="
|
||||
lua? ( ${LUA_REQUIRED_USE} )
|
||||
tinyxml2? ( !xmlrpc )
|
||||
"
|
||||
|
||||
COMMON_DEPEND="
|
||||
~net-libs/libtorrent-${PV}
|
||||
sys-libs/ncurses:0=
|
||||
lua? ( ${LUA_DEPS} )
|
||||
xmlrpc? ( dev-libs/xmlrpc-c:=[libxml2] )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
dev-cpp/nlohmann_json
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
selinux? ( sec-policy/selinux-rtorrent )
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
test? ( dev-util/cppunit )
|
||||
"
|
||||
|
||||
DOCS=( doc/rtorrent.rc )
|
||||
|
||||
pkg_setup() {
|
||||
use lua && lua-single_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# use system-json
|
||||
rm -r src/rpc/nlohmann || die
|
||||
sed -e 's@"rpc/nlohmann/json.h"@<nlohmann/json.hpp>@' \
|
||||
-i src/rpc/jsonrpc.cc || die
|
||||
|
||||
# https://github.com/rakshasa/rtorrent/issues/332
|
||||
cp "${FILESDIR}"/rtorrent.1 "${S}"/doc/ || die
|
||||
|
||||
if [[ ${CHOST} != *-darwin* ]]; then
|
||||
# syslibroot is only for macos, change to sysroot for others
|
||||
sed -i 's/Wl,-syslibroot,/Wl,--sysroot,/' "${S}/scripts/common.m4" || die
|
||||
fi
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# used by xmlrpc-c-config
|
||||
tc-export PKG_CONFIG
|
||||
local myeconfargs=(
|
||||
$(use_enable debug)
|
||||
$(use_with lua)
|
||||
$(usev xmlrpc --with-xmlrpc-c)
|
||||
$(usev tinyxml2 --with-xmlrpc-tinyxml2)
|
||||
)
|
||||
|
||||
use lua && myeconfargs+=(
|
||||
LUA_INCLUDE="-I$(lua_get_include_dir)"
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
doman doc/rtorrent.1
|
||||
|
||||
# lua file is installed then in the proper directory
|
||||
rm "${ED}"/usr/share/rtorrent/lua/rtorrent.lua || die
|
||||
if use lua; then
|
||||
insinto $(lua_get_lmod_dir)
|
||||
doins lua/${PN}.lua
|
||||
fi
|
||||
|
||||
newinitd "${FILESDIR}/rtorrent-r1.init" rtorrent
|
||||
newconfd "${FILESDIR}/rtorrentd.conf" rtorrent
|
||||
systemd_newunit "${FILESDIR}/rtorrentd_at-r1.service" "rtorrentd@.service"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "This release could introduce new commands to configure RTorrent."
|
||||
einfo "Please read the release notes before restarting:"
|
||||
einfo "https://github.com/rakshasa/rtorrent/releases"
|
||||
einfo ""
|
||||
einfo "For configuration assistance, see:"
|
||||
einfo "https://github.com/rakshasa/rtorrent/wiki"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user