Merge pull request #2024 from pullmoll/rtorrent
rtorrent: update to 0.9.5 and move to github
This commit is contained in:
commit
c9a4b3bf8a
2 changed files with 38 additions and 5 deletions
23
srcpkgs/rtorrent/patches/no_xmlrpc_c_compile.patch
Normal file
23
srcpkgs/rtorrent/patches/no_xmlrpc_c_compile.patch
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
--- scripts/checks.m4 2015-07-02 00:32:45.000000000 +0200
|
||||||
|
+++ scripts/checks.m4 2015-07-14 15:39:07.334398349 +0200
|
||||||
|
@@ -463,19 +463,9 @@
|
||||||
|
fi
|
||||||
|
|
||||||
|
if eval $xmlrpc_cc_prg --version 2>/dev/null >/dev/null; then
|
||||||
|
+ AC_MSG_RESULT(ok)
|
||||||
|
CXXFLAGS="$CXXFLAGS `$xmlrpc_cc_prg --cflags server-util`"
|
||||||
|
LIBS="$LIBS `$xmlrpc_cc_prg server-util --libs`"
|
||||||
|
-
|
||||||
|
- AC_TRY_LINK(
|
||||||
|
- [ #include <xmlrpc-c/server.h>
|
||||||
|
- ],[ xmlrpc_registry_new(NULL); ],
|
||||||
|
- [
|
||||||
|
- AC_MSG_RESULT(ok)
|
||||||
|
- ], [
|
||||||
|
- AC_MSG_RESULT(failed)
|
||||||
|
- AC_MSG_ERROR(Could not compile XMLRPC-C test.)
|
||||||
|
- ])
|
||||||
|
-
|
||||||
|
AC_DEFINE(HAVE_XMLRPC_C, 1, Support for XMLRPC-C.)
|
||||||
|
|
||||||
|
else
|
|
@ -1,17 +1,17 @@
|
||||||
# Template file for 'rtorrent'
|
# Template file for 'rtorrent'
|
||||||
pkgname=rtorrent
|
pkgname=rtorrent
|
||||||
version=0.9.4
|
version=0.9.5
|
||||||
revision=3
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-xmlrpc-c"
|
configure_args="--with-xmlrpc-c"
|
||||||
hostmakedepends="automake libtool pkg-config"
|
hostmakedepends="automake libtool pkg-config"
|
||||||
makedepends="libcurl-devel libsigc++-devel libtorrent-devel ncurses-devel xmlrpc-c-devel"
|
makedepends="libcurl-devel libsigc++-devel libtorrent-devel ncurses-devel xmlrpc-c-devel"
|
||||||
short_desc="Ncurses BitTorrent client based on libTorrent"
|
short_desc="Ncurses BitTorrent client based on libTorrent"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
homepage="http://libtorrent.rakshasa.no"
|
homepage="https://github.com/rakshasa/rtorrent"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
distfiles="http://libtorrent.rakshasa.no/downloads/$pkgname-$version.tar.gz"
|
distfiles="https://github.com/rakshasa/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
||||||
checksum=bc0a2c1ee613b68f37021beaf4e64a9252f91ed06f998c1e897897c354ce7e84
|
checksum=96ab7c168a5a83f4dd7e991cee3a65fda6d76c9bc9a72ac6fefe34a2ded0eb85
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
# Drop cppunit requirement
|
# Drop cppunit requirement
|
||||||
|
@ -19,3 +19,13 @@ pre_configure() {
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
sed -e 's,test "$cross_compiling" = yes, false,' -i configure
|
sed -e 's,test "$cross_compiling" = yes, false,' -i configure
|
||||||
}
|
}
|
||||||
|
post_configure() {
|
||||||
|
local f
|
||||||
|
for f in $(find ${wrksrc} -name Makefile); do
|
||||||
|
sed -e "s;-L/usr/lib;-L${XBPS_CROSS_BASE}/usr/lib;g" -i $f
|
||||||
|
sed -e "s;-I/usr/include;-L${XBPS_CROSS_BASE}/usr/include;g" -i $f
|
||||||
|
done
|
||||||
|
case "$XBPS_TARGET_ARCH" in
|
||||||
|
*-musl) sed -e "s;-lm;-lm -lc;" Makefile
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue