summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2018-03-23 17:21:43 -0400
committerAlexandre Rostovtsev <tetromino@gentoo.org>2018-03-23 17:24:58 -0400
commit687e0c4fb428289dca2ea45f1459025da242bea6 (patch)
tree8fdcf9cb105b538ab0f0161b8bb9d131fe1b5b23 /app-misc/gcstar
parentnet-p2p/go-ipfs-bin: Fix DESCRIPTION (diff)
downloadgentoo-687e0c4fb428289dca2ea45f1459025da242bea6.tar.gz
gentoo-687e0c4fb428289dca2ea45f1459025da242bea6.tar.bz2
gentoo-687e0c4fb428289dca2ea45f1459025da242bea6.zip
app-misc/gcstar: belated version bump to 1.7.1 - bug #606784
Thanks to Giuseppe Foti and Jonas Stein for the ebuild. Updated to modern EAPI and eclasses. Removed deprecated LINGUAS logic. Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'app-misc/gcstar')
-rw-r--r--app-misc/gcstar/Manifest1
-rw-r--r--app-misc/gcstar/gcstar-1.7.1.ebuild87
2 files changed, 88 insertions, 0 deletions
diff --git a/app-misc/gcstar/Manifest b/app-misc/gcstar/Manifest
index 1984fd448d56..5acaff49ba95 100644
--- a/app-misc/gcstar/Manifest
+++ b/app-misc/gcstar/Manifest
@@ -1 +1,2 @@
DIST gcstar-1.7.0.tar.gz 4506937 BLAKE2B dfc6f53921ecad73676fb9943f87dfb3c465347e4d4783f1efc29ec75c35eb56ecf97f9eba6121eb22740642d186d642a3384c10ea8ef6a8b42664e1c2a056e3 SHA512 9cb22a7ee38bbeae67ffc6f649ef6e988da43a1f353b027bacbf14ffcca8a4c12ef28d64876b2171396315eae95f76708a1307255eabc3eed6776137e2ae7090
+DIST gcstar-1.7.1.tar.gz 4514370 BLAKE2B 001768d7e2b4d01c97b5a34d078979ce909def1e516166aa305dd03e343bd0188bb54c7adfeb84578f063e860fa78f8faf426f64938eba0688cf5c86feebee4a SHA512 2a37717c6e9bd83758bef99e810ef3321f5558bd5714aa2a332522262182daade9e623f51a256594f74094da3e680ba35d9650d0bc0451226bf41e98fdd57802
diff --git a/app-misc/gcstar/gcstar-1.7.1.ebuild b/app-misc/gcstar/gcstar-1.7.1.ebuild
new file mode 100644
index 000000000000..afc8b8f716ae
--- /dev/null
+++ b/app-misc/gcstar/gcstar-1.7.1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit desktop xdg-utils gnome2-utils
+
+DESCRIPTION="Manage your collections of movies, games, books, music and more"
+HOMEPAGE="http://www.gcstar.org/"
+# Gna permanently shut down in May 2017
+# Original SRC_URI was http://download.gna.org/gcstar/${P}.tar.gz
+SRC_URI="https://launchpad.net/gcstar/1.7/${PV}/+download/${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
+ 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}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.4.0-man.patch"
+)
+
+src_install() {
+ # 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 16 22 24 32 36 48 64 72 96 128 256
+ do
+ newicon -s "${size}" share/gcstar/icons/gcstar_${size}x${size}.png gcstar.png
+ done
+ newicon -s scalable 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() {
+ xdg_desktop_database_update
+ xdg_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ xdg_mime_database_update
+ gnome2_icon_cache_update
+}