summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2011-11-20 06:51:05 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2011-11-20 06:51:05 +0000
commit076c271fffad849f21ca7712e88efba79c1cce09 (patch)
tree3b131196c98daac160bd3c1935418e8ce110d960 /app-misc/gcstar
parentversion bump wrt #389319 (diff)
downloadgentoo-2-076c271fffad849f21ca7712e88efba79c1cce09.tar.gz
gentoo-2-076c271fffad849f21ca7712e88efba79c1cce09.tar.bz2
gentoo-2-076c271fffad849f21ca7712e88efba79c1cce09.zip
Add new collection manager ebuild from the sunrise overlay (bug #139940); thanks to Tiziano Müller <gentoo@dev-zero.ch> for the original ebuild, and to Jakub Moc, Dawid Węgliński, Thomas Sachau, and Markos Chandras for helping maintain it in sunrise.
(Portage version: 2.2.0_alpha76/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/gcstar')
-rw-r--r--app-misc/gcstar/ChangeLog13
-rw-r--r--app-misc/gcstar/files/gcstar-1.4.0-man.patch26
-rw-r--r--app-misc/gcstar/gcstar-1.6.2.ebuild109
-rw-r--r--app-misc/gcstar/metadata.xml22
4 files changed, 170 insertions, 0 deletions
diff --git a/app-misc/gcstar/ChangeLog b/app-misc/gcstar/ChangeLog
new file mode 100644
index 000000000000..fe6ff90fab5f
--- /dev/null
+++ b/app-misc/gcstar/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for app-misc/gcstar
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/gcstar/ChangeLog,v 1.1 2011/11/20 06:51:05 tetromino Exp $
+
+*gcstar-1.6.2 (20 Nov 2011)
+
+ 20 Nov 2011; Alexandre Rostovtsev <tetromino@gentoo.org>
+ +files/gcstar-1.4.0-man.patch, +gcstar-1.6.2.ebuild, +metadata.xml:
+ Add new collection manager ebuild from the sunrise overlay (bug #139940);
+ thanks to Tiziano Müller <gentoo@dev-zero.ch> for the original ebuild, and
+ to Jakub Moc, Dawid Węgliński, Thomas Sachau, and Markos Chandras for
+ helping maintain it in sunrise.
+
diff --git a/app-misc/gcstar/files/gcstar-1.4.0-man.patch b/app-misc/gcstar/files/gcstar-1.4.0-man.patch
new file mode 100644
index 000000000000..dfcade74c740
--- /dev/null
+++ b/app-misc/gcstar/files/gcstar-1.4.0-man.patch
@@ -0,0 +1,26 @@
+Install man files in /usr/share/man, not /usr/man
+
+--- gcstar/install 2008-03-04 22:56:00.000000000 -0500
++++ gcstar-1.4.0/install 2008-06-06 18:16:17.819918815 -0400
+@@ -107,7 +107,7 @@
+ }
+
+ unlink $baseDir.'/bin/'.$binName;
+- unlink $baseDir.'/man/man1/'.$binName.'.1.gz';
++ unlink $baseDir.'/share/man/man1/'.$binName.'.1.gz';
+
+ # remove menu and mime items
+
+@@ -187,9 +187,9 @@
+ mkpath $baseDir.'/bin';
+ copy 'bin/gcstar', $baseDir.'/bin/'.$binName;
+
+- verbosePrint $lang{InstallCopyDirectory}, $baseDir.'/man/man1';
+- mkpath $baseDir.'/man/man1';
+- my $manPage = "$baseDir/man/man1/$binName.1";
++ verbosePrint $lang{InstallCopyDirectory}, $baseDir.'/share/man/man1';
++ mkpath $baseDir.'/share/man/man1';
++ my $manPage = "$baseDir/share/man/man1/$binName.1";
+ copy 'man/gcstar.1', $manPage;
+ `gzip -f $manPage 2>&1 >/dev/null`;
+
diff --git a/app-misc/gcstar/gcstar-1.6.2.ebuild b/app-misc/gcstar/gcstar-1.6.2.ebuild
new file mode 100644
index 000000000000..e394194eae39
--- /dev/null
+++ b/app-misc/gcstar/gcstar-1.6.2.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/gcstar/gcstar-1.6.2.ebuild,v 1.1 2011/11/20 06:51:05 tetromino Exp $
+
+EAPI="4"
+
+inherit eutils fdo-mime gnome2-utils
+
+DESCRIPTION="Manage your collections of movies, games, books, music and more"
+HOMEPAGE="http://www.gcstar.org/"
+SRC_URI="http://download.gna.org/gcstar/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cddb gnome mp3 spell stats tellico vorbis"
+
+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_prepare() {
+ epatch "${FILESDIR}/${PN}-1.4.0-man.patch"
+}
+
+src_install() {
+ if [[ -n ${LINGUAS+set} ]]; then
+ # LINGUAS is set, let's try to respect it.
+ pushd lib/gcstar/GCLang > /dev/null
+
+ mkdir tmp || die "mkdir failed"
+ mv ?? tmp || die "mv 1 failed"
+ # English version should be always available so we will keep it
+ mv tmp/EN . || die "mv 2 failed"
+
+ for x in ${LINGUAS}; do
+ # GCstar uses upper-case, 2-letter language codes
+ d=$(echo ${x} | tr '[:lower:]' '[:upper:]' | sed -e 's:_.*::')
+ if [[ -d "tmp/${d}" ]]; then
+ mv "tmp/${d}" . || die "mv 3 failed"
+ fi
+ done
+
+ rm -rf tmp
+ popd > /dev/null
+ fi
+
+ # Yes, ED *is* needed here. gcstar's install lacks any concept of DESTDIR.
+ ./install --prefix="${ED}usr" \
+ --noclean --nomenu || die "install script failed"
+
+ domenu share/applications/gcstar.desktop
+ for size in 16x16 22x22 24x24 32x32 36x36 48x48 64x64 72x72 96x96 128x128
+ do
+ insinto /usr/share/icons/hicolor/${size}/apps
+ newins share/gcstar/icons/gcstar_${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 CHANGELOG.fr 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/app-misc/gcstar/metadata.xml b/app-misc/gcstar/metadata.xml
new file mode 100644
index 000000000000..fec796b174bc
--- /dev/null
+++ b/app-misc/gcstar/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>tetromino@gentoo.org</email>
+ <name>Alexandre Rostovtsev</name>
+ </maintainer>
+ <longdescription lang="en">
+ GCstar is an application for managing your collections. It supports many
+ types of collections, including movies, books, games, comics, stamps,
+ coins, and many more. You can even create your own collection type for
+ whatever unique thing it is that you collect! Detailed information on
+ each item can be automatically retrieved from the internet and you can
+ store additional data, such as the location or who you've lent it to.
+ You may also search and filter your collections by many criteria.
+ </longdescription>
+ <use>
+ <flag name="stats">Enable statistics reporting</flag>
+ <flag name="tellico">Enable support for <pkg>kde-misc/tellico</pkg>
+ files</flag>
+ </use>
+</pkgmetadata>