diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/gcstar |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/gcstar')
-rw-r--r-- | app-misc/gcstar/Manifest | 7 | ||||
-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 | 113 | ||||
-rw-r--r-- | app-misc/gcstar/metadata.xml | 22 |
5 files changed, 191 insertions, 0 deletions
diff --git a/app-misc/gcstar/Manifest b/app-misc/gcstar/Manifest new file mode 100644 index 000000000000..ee20bdecde01 --- /dev/null +++ b/app-misc/gcstar/Manifest @@ -0,0 +1,7 @@ +AUX gcstar-1.4.0-man.patch 902 SHA256 f75e4e4c38d8979963c760491aafc7668042fefff35a8b5c894eb9ab8f6ea0e1 SHA512 eb1f1ec1822927b5885350fd69f26e599afebe240cfdc01adde27894f37ebdfa2fe14fd0e5cda3e0f12acea622d852d5442fef1f08b4ab8e8238b9d1d5b56482 WHIRLPOOL b5117d201c9e262cc6502e6a0b3343263108e8919f461a8652255938cc2fe37aa09147d0c2eb2531675a35152db2ae912695f98b7645fd4e94d64f10a0771544 +AUX gcstar-1.7.0-gcstar.desktop.patch 796 SHA256 dd9cd1575bcbe97146b85e9ef48029267b577807cc0207a460b695d42bc457e9 SHA512 59ef9e55ffd607723b0cf833bf666ea4661db3af14b45425ba4b55de1d6144714eddf4cdbe17caddfa5a2876772c5c387a0fd06354c44fc8f3b26b83bba56150 WHIRLPOOL 441c6b9b12229b5624f62a1f423dd4eec2300df92c0888b9c220f8ba18b73dfff0f8675eed1d89d87464df8f80f6a28ee0b2875b4a720d4c28327c6c43ca85c7 +DIST gcstar-1.7.0.tar.gz 4506937 SHA256 3cd76231c5410653b241c5aa37dc8120f4f94c3bccb3290f97ac0347acad7039 SHA512 9cb22a7ee38bbeae67ffc6f649ef6e988da43a1f353b027bacbf14ffcca8a4c12ef28d64876b2171396315eae95f76708a1307255eabc3eed6776137e2ae7090 WHIRLPOOL 6ce65af3395f9319d1123446e616f6b983170f14736ed47e5b20184d8dccd57f858758393dcf384bf5f7df46dac200945e21c9303c71a1f280d11939bf21daa4 +EBUILD gcstar-1.7.0.ebuild 2858 SHA256 e3a25f2e0c90120dda25cffbacc3de6093b831e8563bb0322095a43ad2badf80 SHA512 32e4f5d31b14c9fe091a1cc2542c78728ab9ae09a0151cd98ff65b1acc9d15f4f0b58d08b0959b1e43f8748221df3d321e85e6d74465068f5f2639ebc7e74ab8 WHIRLPOOL 0d648ff83588cdc8d96dd587c4b1453970722991202b4430bd25762d719cfa03d1352566e79ba6e0e7a454dd36be46649596f3ba56be170f763b446180d41f55 +MISC ChangeLog 2248 SHA256 136191f4a066d00c38eadac600fc1d54b77e4b072fdd1f7f051a45d18a592c19 SHA512 eef1516cf2666b232b3639eba118fed2e9169266753e744a651bedfa3901a7c766d7ecbe6789f98ec1e5ce428e0e5a7d418da01e88275cc628df2c99299455b3 WHIRLPOOL c92de7f6f80e82acc0f462bfabcc8bc80913fa71a9c5db94e31bb559f41d68952380203de6dacc102e86f490cf6d46d7728667b646102d8f618294ca482818ea +MISC ChangeLog-2015 1350 SHA256 ab9af39de0772139861dc81b3aa984c55d01f13880fa18c0832e776c7c2ae15e SHA512 3417abe7c4a7d9d740f7202557eff0713eb212164876dba538a93b385987a8f7331f002a52e5bab1f38c913a7d742779eb921312a93f961b20dfb3d9b7e3de11 WHIRLPOOL f7777e41cffff78b9f330bfefcc69a3ce803fc58b411ca533021e0e7300abf61677ef09e4fcf01c7fa05e8f3dc4e24ff46ab989731fc94ac56df26a08cc8701f +MISC metadata.xml 967 SHA256 99f074c400e39552dd0b6096c20969f85dafea93403375090e23d60f70065640 SHA512 0a7c5e4cd287e6c7d9f6bcbb3e406a19511410e3ea7498ff11fe00df89739bff959b0a1af38410f9a226fe850005bf0b604b3c2c0690adf5ba75fcfcd86183a0 WHIRLPOOL a7efc97ff02d39fd65614256a5410fc68cb185645067ecda9a20476c8e55eeb7cdfde1ef7eee67c117f6a318dcacbdca958b7ce899a72ba3c8bb7cb924ebabe1 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..7d283d97551b --- /dev/null +++ b/app-misc/gcstar/gcstar-1.7.0.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 + 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..282c4fff288e --- /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 type="person"> + <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> |