summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2013-06-28 13:13:27 +0000
committerLars Wendler <polynomial-c@gentoo.org>2013-06-28 13:13:27 +0000
commit62ce239406bb116469376376e062c24646ad1983 (patch)
tree9eb18b763c8663ca651817e84aec407ba2603a0d /net-misc
parentrestore keywords now that autotools-multilib is fixed (diff)
downloadgentoo-2-62ce239406bb116469376376e062c24646ad1983.tar.gz
gentoo-2-62ce239406bb116469376376e062c24646ad1983.tar.bz2
gentoo-2-62ce239406bb116469376376e062c24646ad1983.zip
Initial commit. Fixes bug #220231
(Portage version: 2.2.0_alpha185/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/fatrat/ChangeLog11
-rw-r--r--net-misc/fatrat/fatrat-1.2.0_beta2.ebuild53
-rw-r--r--net-misc/fatrat/files/fatrat-1.2.0_beta2-build.patch29
-rw-r--r--net-misc/fatrat/metadata.xml15
4 files changed, 108 insertions, 0 deletions
diff --git a/net-misc/fatrat/ChangeLog b/net-misc/fatrat/ChangeLog
new file mode 100644
index 000000000000..06c3e628e778
--- /dev/null
+++ b/net-misc/fatrat/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-misc/fatrat
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/fatrat/ChangeLog,v 1.1 2013/06/28 13:13:27 polynomial-c Exp $
+
+*fatrat-1.2.0_beta2 (28 Jun 2013)
+
+ 28 Jun 2013; Lars Wendler <polynomial-c@gentoo.org>
+ +fatrat-1.2.0_beta2.ebuild, +files/fatrat-1.2.0_beta2-build.patch,
+ +metadata.xml:
+ Initial commit. Fixes bug #220231.
+
diff --git a/net-misc/fatrat/fatrat-1.2.0_beta2.ebuild b/net-misc/fatrat/fatrat-1.2.0_beta2.ebuild
new file mode 100644
index 000000000000..8dc3f3513871
--- /dev/null
+++ b/net-misc/fatrat/fatrat-1.2.0_beta2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/fatrat/fatrat-1.2.0_beta2.ebuild,v 1.1 2013/06/28 13:13:27 polynomial-c Exp $
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="Qt4-based download/upload manager"
+HOMEPAGE="http://fatrat.dolezel.info/"
+SRC_URI="http://www.dolezel.info/download/data/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="bittorrent +curl doc jabber nls webinterface"
+
+RDEPEND="dev-qt/qtgui:4[dbus]
+ dev-qt/qtsvg:4
+ bittorrent? ( >=net-libs/rb_libtorrent-0.14.5
+ >=dev-cpp/asio-1.1.0
+ dev-qt/qtwebkit:4 )
+ curl? ( >=net-misc/curl-7.18.2 )
+ doc? ( dev-qt/qthelp:4 )
+ jabber? ( net-libs/gloox )
+ webinterface? ( dev-qt/qtscript:4 )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+PATCHES=( "${FILESDIR}/${P}-build.patch" )
+
+src_configure() {
+ local mycmakeargs="
+ $(cmake-utils_use_with bittorrent) \
+ $(cmake-utils_use_with curl) \
+ $(cmake-utils_use_with doc DOCUMENTATION) \
+ $(cmake-utils_use_with jabber) \
+ $(cmake-utils_use_with nls) \
+ $(cmake-utils_use_with webinterface)"
+ cmake-utils_src_configure
+}
+
+src_install() {
+ use bittorrent && echo "MimeType=application/x-bittorrent;" >> "${S}"/data/${PN}.desktop
+ cmake-utils_src_install
+}
+
+pkg_postinst() {
+ # this is a completely optional and NOT automagic dep
+ if ! has_version dev-libs/geoip; then
+ elog "If you want the GeoIP support, then emerge dev-libs/geoip."
+ fi
+}
diff --git a/net-misc/fatrat/files/fatrat-1.2.0_beta2-build.patch b/net-misc/fatrat/files/fatrat-1.2.0_beta2-build.patch
new file mode 100644
index 000000000000..f1725bfb7205
--- /dev/null
+++ b/net-misc/fatrat/files/fatrat-1.2.0_beta2-build.patch
@@ -0,0 +1,29 @@
+--- fatrat-1.2.0_beta2/CMakeLists.txt
++++ fatrat-1.2.0_beta2/CMakeLists.txt
+@@ -121,16 +121,12 @@
+ endif(curl_FOUND)
+ endif(WITH_CURL)
+
+-ADD_DEFINITIONS(-Wl,--stack,524 288)
+ if(CMAKE_BUILD_TYPE MATCHES Debug)
++ ADD_DEFINITIONS(-Wl,--stack,524 288)
+ ADD_DEFINITIONS(-ggdb)
+ ADD_DEFINITIONS(-DDEBUG_BUILD)
+ ADD_DEFINITIONS(-DNDEBUG)
+ ADD_DEFINITIONS(-Wall)
+-else(CMAKE_BUILD_TYPE MATCHES Debug)
+- ADD_DEFINITIONS(-ggdb)
+- ADD_DEFINITIONS(-DNDEBUG)
+- ADD_DEFINITIONS(-Wall)
+ endif(CMAKE_BUILD_TYPE MATCHES Debug)
+
+ CHECK_INCLUDE_FILES(sys/epoll.h HAVE_SYS_EPOLL_H)
+@@ -577,7 +573,7 @@
+
+ set(fatrat_DEV_HEADERS
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/fatrat.h
+- ${CMAKE_CURRENT_SOURCE_DIR}/config.h
++ ${CMAKE_CURRENT_BINARY_DIR}/config.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/DelayedIcon.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/AppTools.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/Transfer.h
diff --git a/net-misc/fatrat/metadata.xml b/net-misc/fatrat/metadata.xml
new file mode 100644
index 000000000000..6bf0b584a754
--- /dev/null
+++ b/net-misc/fatrat/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+ <longdescription lang="en">
+ FatRat is an open source download manager for Linux.
+ </longdescription>
+ <use>
+ <flag name='bittorrent'>Use the bittorrent protocol via net-libs/rb_libtorrent.</flag>
+ <flag name='webinterface'>Enable builtin webinterface.</flag>
+ </use>
+</pkgmetadata>