diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-misc/gcstar | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-misc/gcstar')
-rw-r--r-- | app-misc/gcstar/Manifest | 1 | ||||
-rw-r--r-- | app-misc/gcstar/files/gcstar-1.4.0-man.patch | 26 | ||||
-rw-r--r-- | app-misc/gcstar/files/gcstar-1.7.0-gcstar.desktop.patch | 23 | ||||
-rw-r--r-- | app-misc/gcstar/gcstar-1.7.0.ebuild | 114 | ||||
-rw-r--r-- | app-misc/gcstar/metadata.xml | 22 |
5 files changed, 186 insertions, 0 deletions
diff --git a/app-misc/gcstar/Manifest b/app-misc/gcstar/Manifest new file mode 100644 index 000000000000..c3f678d433f8 --- /dev/null +++ b/app-misc/gcstar/Manifest @@ -0,0 +1 @@ +DIST gcstar-1.7.0.tar.gz 4506937 SHA256 3cd76231c5410653b241c5aa37dc8120f4f94c3bccb3290f97ac0347acad7039 SHA512 9cb22a7ee38bbeae67ffc6f649ef6e988da43a1f353b027bacbf14ffcca8a4c12ef28d64876b2171396315eae95f76708a1307255eabc3eed6776137e2ae7090 WHIRLPOOL 6ce65af3395f9319d1123446e616f6b983170f14736ed47e5b20184d8dccd57f858758393dcf384bf5f7df46dac200945e21c9303c71a1f280d11939bf21daa4 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/files/gcstar-1.7.0-gcstar.desktop.patch b/app-misc/gcstar/files/gcstar-1.7.0-gcstar.desktop.patch new file mode 100644 index 000000000000..62b6a7b47401 --- /dev/null +++ b/app-misc/gcstar/files/gcstar-1.7.0-gcstar.desktop.patch @@ -0,0 +1,23 @@ +From e78617436de63141cd4ff6e42fc0391a9a00d80a Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev <tetromino@gentoo.org> +Date: Sat, 8 Sep 2012 18:14:40 -0400 +Subject: [PATCH] gcstar.desktop: MimeType list must be terminated with ';' + +Needed for gcstar.desktop to pass validation with desktop-file-utils-0.20 +--- + gcstar/share/applications/gcstar.desktop | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcstar/share/applications/gcstar.desktop b/gcstar/share/applications/gcstar.desktop +index aa6a46d..c7a146e 100644 +--- a/gcstar/share/applications/gcstar.desktop ++++ b/gcstar/share/applications/gcstar.desktop +@@ -15,4 +15,4 @@ Terminal=false + StartupNotify=true + Type=Application + Categories=Office; +-MimeType=application/x-gcstar ++MimeType=application/x-gcstar; +-- +1.7.12 + diff --git a/app-misc/gcstar/gcstar-1.7.0.ebuild b/app-misc/gcstar/gcstar-1.7.0.ebuild new file mode 100644 index 000000000000..b89ea30b2b6f --- /dev/null +++ b/app-misc/gcstar/gcstar-1.7.0.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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" + epatch "${FILESDIR}/${P}-gcstar.desktop.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 ?? ZH_CN 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 + if [[ ${x} = "zh_CN" ]]; then + mv "tmp/ZH_CN" . || die "mv 3 failed" + else + # 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 5 failed" + fi + 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 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/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> |