Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/pogo-manager-bin/files/, games-util/pogo-manager-bin/
Date: Wed, 12 Oct 2016 10:18:25
Message-Id: 1476267413.fbf8f9604200410a2a3c893bd7838b507b6ada32.wizardedit@gentoo
1 commit: fbf8f9604200410a2a3c893bd7838b507b6ada32
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 12 10:15:54 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 12 10:16:53 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbf8f960
7
8 games-util/pogo-manager-bin: initial ebuild
9
10 Package-Manager: portage-2.3.0
11
12 games-util/pogo-manager-bin/Manifest | 1 +
13 games-util/pogo-manager-bin/files/pogo-manager | 17 +++++++++++
14 games-util/pogo-manager-bin/metadata.xml | 11 +++++++
15 .../pogo-manager-bin/pogo-manager-bin-0.1.4.ebuild | 35 ++++++++++++++++++++++
16 4 files changed, 64 insertions(+)
17
18 diff --git a/games-util/pogo-manager-bin/Manifest b/games-util/pogo-manager-bin/Manifest
19 new file mode 100644
20 index 00000000..cd6478f
21 --- /dev/null
22 +++ b/games-util/pogo-manager-bin/Manifest
23 @@ -0,0 +1 @@
24 +DIST pogo-manager-bin-0.1.4.zip 7453967 SHA256 1ae061bade7bf3e9e66df028027f408895a6a07a52b80efcb7cb709984163633 SHA512 0fe21b4146d125d281f1aacd405dbc0370d6c5c043e82d4c964ca7df14ac0130459bf4d943268b6efd58a99ef05ca0d22dbf392ecb3853ab32e87fdb074209fa WHIRLPOOL 8c6cb33b788a98fd27a1d66a6292d1f87d0e2bd8678454a7e87d28b465d93e472c07548a045ef75ce9b067adcc2cbd956c5a60ffadfd6b68c7fe0e198775da80
25
26 diff --git a/games-util/pogo-manager-bin/files/pogo-manager b/games-util/pogo-manager-bin/files/pogo-manager
27 new file mode 100644
28 index 00000000..9866fec
29 --- /dev/null
30 +++ b/games-util/pogo-manager-bin/files/pogo-manager
31 @@ -0,0 +1,17 @@
32 +#!/bin/bash
33 +
34 +# Config files are written to current directory, so make a config dir and pushd there
35 +
36 +if [[ ! -z "${XDG_CONFIG_DIR}" ]] ; then
37 + config_dir="${XDG_CONFIG_DIR}/pogo-manager"
38 +elif [[ ! -z "${HOME}" ]] ; then
39 + config_dir="${HOME}/.config/pogo-manager"
40 +else
41 + config_dir="$(mktemp -d)"
42 +fi
43 +
44 +echo "Using ${config_dir} for configuration files"
45 +mkdir -p "${config_dir}"
46 +pushd "${config_dir}" > /dev/null
47 +java -Dfile.encoding=UTF-8 -jar /opt/pogo-manager/pogo-manager.jar
48 +
49
50 diff --git a/games-util/pogo-manager-bin/metadata.xml b/games-util/pogo-manager-bin/metadata.xml
51 new file mode 100644
52 index 00000000..69f19ae2
53 --- /dev/null
54 +++ b/games-util/pogo-manager-bin/metadata.xml
55 @@ -0,0 +1,11 @@
56 +<?xml version="1.0" encoding="UTF-8"?>
57 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
58 +<pkgmetadata>
59 + <maintainer type="person">
60 + <email>wizardedit@g.o</email>
61 + <name>Austin English</name>
62 + </maintainer>
63 + <longdescription>
64 + Utility to manage Pokemon Go accounts. Not sanctioned by Niantic, use at your own risk.
65 + </longdescription>
66 +</pkgmetadata>
67
68 diff --git a/games-util/pogo-manager-bin/pogo-manager-bin-0.1.4.ebuild b/games-util/pogo-manager-bin/pogo-manager-bin-0.1.4.ebuild
69 new file mode 100644
70 index 00000000..821b869
71 --- /dev/null
72 +++ b/games-util/pogo-manager-bin/pogo-manager-bin-0.1.4.ebuild
73 @@ -0,0 +1,35 @@
74 +# Copyright 1999-2016 Gentoo Foundation
75 +# Distributed under the terms of the GNU General Public License v2
76 +# $Id$
77 +
78 +EAPI=6
79 +
80 +MY_PN="${PN/-bin}"
81 +
82 +DESCRIPTION="Pokemon Go manager"
83 +HOMEPAGE="https://github.com/Wolfsblvt/BlossomsPokemonGoManager"
84 +SRC_URI="https://github.com/Wolfsblvt/BlossomsPokemonGoManager/releases/download/v${PV}/BPGM_v${PV}.zip -> ${P}.zip"
85 +
86 +LICENSE="CC-BY-NC-SA-4.0"
87 +SLOT="0"
88 +KEYWORDS="~amd64 ~x86"
89 +IUSE=""
90 +
91 +RDEPEND="|| ( dev-java/oracle-jdk-bin:1.8[javafx] dev-java/oracle-jre-bin:1.8[javafx] )"
92 +DEPEND="app-arch/unzip"
93 +
94 +S="${WORKDIR}/BPGM_v${PV}"
95 +
96 +src_install()
97 +{
98 + insinto /opt/${MY_PN}
99 + newins BlossomsPogoManager.jar ${MY_PN}.jar
100 +
101 + dobin "${FILESDIR}/pogo-manager"
102 +}
103 +
104 +pkg_postinst()
105 +{
106 + ewarn "Use of this tool is not sanctioned by Niantic and could get you banned."
107 + ewarn "You have been warned!"
108 +}