aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAstroFloyd <AstroFloyd@gmail.com>2017-12-10 08:24:53 +0100
committerAstroFloyd <AstroFloyd@gmail.com>2017-12-10 08:24:53 +0100
commitfd5f4b906d8172bd2d483a5bf29aa6156beb36e1 (patch)
tree81cdc85dff20fc3d610290fcae3aa9cac3800bd4 /sci-geosciences
parentsci-libs/plplot: version bump to v5.13.0 (diff)
downloadAstroFloyd-fd5f4b906d8172bd2d483a5bf29aa6156beb36e1.tar.gz
AstroFloyd-fd5f4b906d8172bd2d483a5bf29aa6156beb36e1.tar.bz2
AstroFloyd-fd5f4b906d8172bd2d483a5bf29aa6156beb36e1.zip
Save gmapcatcher
Diffstat (limited to 'sci-geosciences')
-rw-r--r--sci-geosciences/gmapcatcher/Manifest4
-rw-r--r--sci-geosciences/gmapcatcher/files/gmapcatcher-0.8.0.4-setuppy-docs.patch18
-rw-r--r--sci-geosciences/gmapcatcher/gmapcatcher-0.8.0.4.ebuild41
-rw-r--r--sci-geosciences/gmapcatcher/metadata.xml8
4 files changed, 71 insertions, 0 deletions
diff --git a/sci-geosciences/gmapcatcher/Manifest b/sci-geosciences/gmapcatcher/Manifest
new file mode 100644
index 0000000..8bbdbe8
--- /dev/null
+++ b/sci-geosciences/gmapcatcher/Manifest
@@ -0,0 +1,4 @@
+AUX gmapcatcher-0.8.0.4-setuppy-docs.patch 836 SHA256 840abad39048a17e00236290ce940066782bdd46536cac43337fe9244964cddf SHA512 784c5557839d975bb4bbe179f5585c330eee1f09739f91edee41498b6b2091a5a07a7492c926c1c874826bb1dc525f5253d8681facaa5a2f5b0cfe422f322ce2 WHIRLPOOL dbd2bcc999e75329c7e381b35f47cc600e052b2bfe5b8cc839cb14016c44d1b5a93a67802b79c3584ec7d195d0046d5589876630332087260d1d99e4b15501a1
+DIST gmapcatcher-0.8.0.4.tar.gz 3782763 SHA256 c08a8116c9be323801bb897474d0b312157d1e523658500ae85898a68abe72b1 SHA512 9ff11ca2c61f01090e7cd616c5fe0c4faf7fb1eb11962071601d87a7f84b309b25de36c82d713c1d08ffdb0f806c8fcccfc877ac7fc5eadf3d49625ce360d719 WHIRLPOOL 045c84b78421b9db48b697682b7b8b863480286a214cc81f72f2cffcb97c652c827d940a22c333c929a30eb88ec96fc806315c6a53290df56471de23c9950928
+EBUILD gmapcatcher-0.8.0.4.ebuild 1161 SHA256 68ed52e928b09313f4ed93b61816b623697e9bfb2337acbcfc01110a2b8dd916 SHA512 c821b0e058a1d1cb78eb153d59160e0bff0ffd4e008c5b94d4bcfd2a11b6b59f730639fcc222643b30522c8c6fb3f8cc9e3ae0b98b33337a17f6f1836adb6ae8 WHIRLPOOL 5d5466f285af6a10b771d82ba075c35c83936de92cff220a110511c3b15dc899585baf107cfc4a056843bb194132a596959f3e0ec64b0a2d748cc747032b0f32
+MISC metadata.xml 253 SHA256 002dfdeaaa53663f7512229bd2a28dbd77d8a7ed35a17bb7346905220934ee26 SHA512 a1c29277a89a78932d522342eb0cca76efb127dffdbd1ab26c2feadaa844d354ff0da3db4dbbf2a0ae1e3205752539b31fb461ec261e3097bdba4e900c0bf90e WHIRLPOOL 126ef3b46e66f959ef9a4ed1740fb40c97dad6605433ed2e1a9d48eb97aa163ead9496d117f1f030346868bca40e5362b3e1c9d6d765faa3763e95e9014003e3
diff --git a/sci-geosciences/gmapcatcher/files/gmapcatcher-0.8.0.4-setuppy-docs.patch b/sci-geosciences/gmapcatcher/files/gmapcatcher-0.8.0.4-setuppy-docs.patch
new file mode 100644
index 0000000..77383f1
--- /dev/null
+++ b/sci-geosciences/gmapcatcher/files/gmapcatcher-0.8.0.4-setuppy-docs.patch
@@ -0,0 +1,18 @@
+Drop docs from setup.py, distutils-r1 takes care of it.
+Handle the man pages in the ebuild because the tarball does not
+contain compressed man files.
+
+--- a/setup.py
++++ b/setup.py
+@@ -13,10 +13,7 @@
+ description = 'Offline Map Viewer',
+ version = VERSION,
+ url = WEB_ADDRESS,
+- data_files = [('share/doc/mapcatcher', ['README', 'changelog']),
+- ('share/applications', ['gmapcatcher.desktop']),
+- ('share/man/man1',
+- ['man/mapcatcher.1.gz', 'man/mapdownloader.1.gz']),
++ data_files = [('share/applications', ['gmapcatcher.desktop']),
+ ('share/pixmaps', ['images/mapcatcher.png']),
+ ('share/pixmaps/gmapcatcher',
+ map(lambda(thestr): "images/" + thestr, os.listdir('images')))
diff --git a/sci-geosciences/gmapcatcher/gmapcatcher-0.8.0.4.ebuild b/sci-geosciences/gmapcatcher/gmapcatcher-0.8.0.4.ebuild
new file mode 100644
index 0000000..de657af
--- /dev/null
+++ b/sci-geosciences/gmapcatcher/gmapcatcher-0.8.0.4.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit vcs-snapshot distutils-r1
+
+MY_COMMIT_HASH="b3156dc56d105bcab8a1123793dcc16b7f9f3a9a"
+DESCRIPTION="An offline viewer for different map providers"
+HOMEPAGE="https://github.com/heldersepu/GMapCatcher"
+SRC_URI="https://github.com/heldersepu/GMapCatcher/archive/${MY_COMMIT_HASH}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2
+ dev-python/pygtk[${PYTHON_USEDEP}]
+ dev-python/pygobject[${PYTHON_USEDEP}]
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+PATCHES=("${FILESDIR}"/${P}-setuppy-docs.patch)
+
+src_prepare() {
+ # Move things around to make setup.py happy
+ mv installer/setup.py "${S}/" || die
+ mv maps.py mapcatcher || die
+ mv download.py mapdownloader || die
+ mv images/map.png images/mapcatcher.png || die
+ sed -i -e "/Version=/d" -e "s/Application;//" gmapcatcher.desktop || die
+ distutils-r1_src_prepare
+}
+
+src_install() {
+ distutils-r1_src_install
+ doman man/mapcatcher.1 man/mapdownloader.1
+}
diff --git a/sci-geosciences/gmapcatcher/metadata.xml b/sci-geosciences/gmapcatcher/metadata.xml
new file mode 100644
index 0000000..fb6f59f
--- /dev/null
+++ b/sci-geosciences/gmapcatcher/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="github">heldersepu/GMapCatcher</remote-id>
+ </upstream>
+</pkgmetadata>