summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-misc/gcstar/gcstar-scm.ebuild89
-rw-r--r--net-p2p/rtorrent/files/canvas.patch12
-rw-r--r--net-p2p/rtorrent/files/gcc.patch10
-rw-r--r--net-p2p/rtorrent/rtorrent-scm.ebuild2
4 files changed, 90 insertions, 23 deletions
diff --git a/app-misc/gcstar/gcstar-scm.ebuild b/app-misc/gcstar/gcstar-scm.ebuild
new file mode 100644
index 0000000..987443d
--- /dev/null
+++ b/app-misc/gcstar/gcstar-scm.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils fdo-mime gnome2-utils subversion
+
+DESCRIPTION="Manage your collections of movies, games, books, music and more"
+HOMEPAGE="http://www.gcstar.org/"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="cddb gnome mp3 spell stats tellico vorbis"
+
+ESVN_REPO_URI="svn://svn.gna.org/svn/gcstar/trunk"
+
+RDEPEND="dev-lang/perl
+ dev-perl/Archive-Zip
+ dev-perl/DateTime-Format-Strptime
+ dev-perl/gtk2-perl
+ dev-perl/HTML-Parser
+ dev-perl/libwww-perl
+ dev-perl/URI
+ dev-perl/XML-Parser
+ dev-perl/XML-Simple
+ virtual/perl-Archive-Tar
+ virtual/perl-Encode
+ virtual/perl-Getopt-Long
+ virtual/perl-File-Path
+ virtual/perl-File-Spec
+ virtual/perl-File-Temp
+ virtual/perl-IO-Compress
+ virtual/perl-libnet
+ virtual/perl-Storable
+ virtual/perl-Time-Piece
+
+ cddb? ( dev-perl/Net-FreeDB )
+ gnome? ( dev-perl/gnome2-vfs-perl )
+ mp3? ( dev-perl/MP3-Info dev-perl/MP3-Tag )
+ spell? ( dev-perl/gtk2-spell )
+ stats? ( dev-perl/Date-Calc
+ dev-perl/GD[png,truetype] )
+ tellico? ( virtual/perl-Digest-MD5
+ virtual/perl-MIME-Base64 )
+ vorbis? ( dev-perl/Ogg-Vorbis-Header-PurePerl )"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+
+src_install() {
+
+ # Yes, ED *is* needed here. gcstar's install lacks any concept of DESTDIR.
+ cd ${PN}
+ ./install --prefix="${ED}usr" \
+ --noclean --nomenu || die "install script failed"
+
+ domenu share/applications/gcstar.desktop
+ for size in 16 22 24 32 36 48 64 72 96 128 256
+ do
+ insinto /usr/share/icons/hicolor/${size}x${size}/apps
+ newins share/gcstar/icons/gcstar_${size}x${size}.png gcstar.png
+ done
+ insinto /usr/share/icons/hicolor/scalable/apps
+ newins share/gcstar/icons/gcstar_scalable.svg gcstar.svg
+ insinto /usr/share/mime/packages
+ doins share/applications/gcstar.xml
+
+ dodoc CHANGELOG README README.fr
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
diff --git a/net-p2p/rtorrent/files/canvas.patch b/net-p2p/rtorrent/files/canvas.patch
deleted file mode 100644
index 6b0419e..0000000
--- a/net-p2p/rtorrent/files/canvas.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Naur /var/paludis/repositories/gentoo/distfiles/svn-src/rtorrent/rtorrent/src/display/canvas.h ./src/display/canvas.h
---- /var/paludis/repositories/gentoo/distfiles/svn-src/rtorrent/rtorrent/src/display/canvas.h 2011-04-12 10:30:16.013411001 +0300
-+++ ./src/display/canvas.h 2011-04-12 10:43:51.159411001 +0300
-@@ -48,7 +48,7 @@
- public:
- typedef std::vector<Attributes> attributes_list;
-
-- Canvas(int x = 0, int y = 0, int width = 0, int height = 0);
-+ Canvas(int x = 0, int y = 0, int width = 1, int height = 1);
- ~Canvas() { delwin(m_window); }
-
- void refresh() { wnoutrefresh(m_window); }
diff --git a/net-p2p/rtorrent/files/gcc.patch b/net-p2p/rtorrent/files/gcc.patch
deleted file mode 100644
index 258ad06..0000000
--- a/net-p2p/rtorrent/files/gcc.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- rtorrent/src/main.cc 2013-08-21 03:49:49.552210826 +0300
-+++ rtorrent-9999/src/main.cc 2013-08-21 03:49:14.135542775 +0300
-@@ -43,6 +43,7 @@
- #include <sstream>
- #include <string>
- #include <inttypes.h>
-+#include <unistd.h>
- #include <sigc++/adaptors/bind.h>
- #include <torrent/http.h>
- #include <torrent/torrent.h>
diff --git a/net-p2p/rtorrent/rtorrent-scm.ebuild b/net-p2p/rtorrent/rtorrent-scm.ebuild
index 8094755..52ceb54 100644
--- a/net-p2p/rtorrent/rtorrent-scm.ebuild
+++ b/net-p2p/rtorrent/rtorrent-scm.ebuild
@@ -36,7 +36,7 @@ src_compile() {
if [[ $(tc-arch) = "x86" ]]; then
filter-flags -fomit-frame-pointer -fforce-addr
fi
- epatch ${FILESDIR}/canvas.patch
+# epatch ${FILESDIR}/canvas.patch
#epatch ${FILESDIR}/gcc.patch
econf $(use_enable debug) \