summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/valknut')
-rw-r--r--net-p2p/valknut/Manifest3
-rw-r--r--net-p2p/valknut/files/valknut-0.4.9-gcc47.patch15
-rw-r--r--net-p2p/valknut/metadata.xml8
-rw-r--r--net-p2p/valknut/valknut-0.4.9.ebuild47
4 files changed, 73 insertions, 0 deletions
diff --git a/net-p2p/valknut/Manifest b/net-p2p/valknut/Manifest
new file mode 100644
index 00000000000..fb31219c85d
--- /dev/null
+++ b/net-p2p/valknut/Manifest
@@ -0,0 +1,3 @@
+DIST valknut-0.4.9-gnome-icons.tar.gz 59246 SHA256 074c33eb8fa8e7280a6b8bcf43a4c2f42ca28175e5d1be63723ba907b861fb58 SHA512 aaf7023d2c307d4a0eebf7548a0f2ca68e235f9b3f211b306798044c5ba3f48d037908ac3b4b782b671eafbf77cd590c1e13d245dd1375416d47680bdd51444f WHIRLPOOL 946541dda9d7cfbb983dee8b8144ec84410b3eb4b01d7d2dff4da49fa6e6ff28073cbea0d2b198335ce9a5399ad5c08ba73148c3a12dca2e3cb535b46ad203ba
+DIST valknut-0.4.9-oxygen-icons.tar.gz 71933 SHA256 29df2de7b6b20dce30934ef0abe1c1c005a2cf27253e2745e9a5b728499577ea
+DIST valknut-0.4.9.tar.bz2 1215939 SHA256 06972248906145cfa6b155fec66ef5f2ebdf44f50fb68135a1624bb39d90cf32 SHA512 f3e1f3da45b6f6e2bd2bd2f822ca95eaea0c235e18abbf42da54524b73c20072d64341169ad58c34f070e1038afb28d650485d3c1e2625efb05bd2aa370c1bb9 WHIRLPOOL 5659e0a7658a408e3da3356a5800463580512786bc17dc6c3a0d21c9a225d312deee8b8b5a2e351182a05d79ec3f5383efe783613d4c1794138650c3dc17d8f3
diff --git a/net-p2p/valknut/files/valknut-0.4.9-gcc47.patch b/net-p2p/valknut/files/valknut-0.4.9-gcc47.patch
new file mode 100644
index 00000000000..29ecfe63fb7
--- /dev/null
+++ b/net-p2p/valknut/files/valknut-0.4.9-gcc47.patch
@@ -0,0 +1,15 @@
+Fix building with gcc-47
+
+https://bugs.gentoo.org/show_bug.cgi?id=423045
+
+Patch written by Kacper Kowalik <xarthisius@gentoo.org>
+--- a/valknut/main.cpp
++++ b/valknut/main.cpp
+@@ -22,6 +22,7 @@
+ #endif
+
+ #include <stdlib.h>
++#include <unistd.h> /* _exit */
+ #ifndef WIN32
+ #include <signal.h>
+ #endif
diff --git a/net-p2p/valknut/metadata.xml b/net-p2p/valknut/metadata.xml
new file mode 100644
index 00000000000..b6e0d287755
--- /dev/null
+++ b/net-p2p/valknut/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>net-p2p</herd>
+ <upstream>
+ <remote-id type="sourceforge">wxdcgui</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-p2p/valknut/valknut-0.4.9.ebuild b/net-p2p/valknut/valknut-0.4.9.ebuild
new file mode 100644
index 00000000000..f81354bd832
--- /dev/null
+++ b/net-p2p/valknut/valknut-0.4.9.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+
+inherit eutils
+
+DESCRIPTION="A open source cross platform client for the Direct Connect network"
+HOMEPAGE="http://sourceforge.net/projects/wxdcgui/"
+SRC_URI="mirror://sourceforge/wxdcgui/${P}.tar.bz2
+ gnome? ( mirror://sourceforge/wxdcgui/${P}-gnome-icons.tar.gz )
+ kde? ( mirror://sourceforge/wxdcgui/${P}-oxygen-icons.tar.gz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 hppa ppc ppc64 x86"
+IUSE="gnome kde"
+
+RDEPEND="dev-qt/qtgui:4[qt3support]
+ >=net-p2p/dclib-0.3.23"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc47.patch
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog NEWS README TODO
+
+ insinto /usr/share/${PN}/icons/appl
+
+ if use gnome; then
+ doins -r "${WORKDIR}"/${P}-gnome-icons/gnome
+ fi
+
+ if use kde; then
+ doins -r "${WORKDIR}"/${P}-oxygen-icons/oxygen
+ fi
+}