public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/lightyears/
Date: Fri,  2 Aug 2019 21:43:09 +0000 (UTC)	[thread overview]
Message-ID: <1564782165.74f1923749f790d26dc46a0e92c0b308f98aabdf.chewi@gentoo> (raw)

commit:     74f1923749f790d26dc46a0e92c0b308f98aabdf
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  2 21:20:31 2019 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Fri Aug  2 21:42:45 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74f19237

games-strategy/lightyears: Fix dependencies, https, EAPI 7

Closes: https://bugs.gentoo.org/685662
Package-Manager: Portage-2.3.70, Repoman-2.3.16
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 ...ears-1.4-r2.ebuild => lightyears-1.4-r3.ebuild} | 28 +++++++++++++---------
 1 file changed, 17 insertions(+), 11 deletions(-)

diff --git a/games-strategy/lightyears/lightyears-1.4-r2.ebuild b/games-strategy/lightyears/lightyears-1.4-r3.ebuild
similarity index 66%
rename from games-strategy/lightyears/lightyears-1.4-r2.ebuild
rename to games-strategy/lightyears/lightyears-1.4-r3.ebuild
index 7e7344951fc..4d4cfa964e4 100644
--- a/games-strategy/lightyears/lightyears-1.4-r2.ebuild
+++ b/games-strategy/lightyears/lightyears-1.4-r3.ebuild
@@ -1,34 +1,37 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
+
 PYTHON_COMPAT=( python2_7 )
 
-inherit desktop python-single-r1
+inherit desktop python-single-r1 xdg-utils
 
 DESCRIPTION="A single-player game with a science-fiction theme"
-HOMEPAGE="http://www.jwhitham.org/20kly/"
-SRC_URI="http://www.jwhitham.org/20kly/${P}.tar.bz2"
-
+HOMEPAGE="https://www.jwhitham.org/20kly/"
+SRC_URI="https://www.jwhitham.org/20kly/${P}.tar.bz2"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-
-IUSE=""
-REQUIRED_USE=${PYTHON_REQUIRED_USE}
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 RDEPEND="${PYTHON_DEPS}
 	dev-python/pygame[${PYTHON_USEDEP}]
 "
-RDEPEND="${DEPEND}"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+	"${FILESDIR}/${P}"-gentoo.patch
+)
 
 src_prepare() {
 	default
-	eapply "${FILESDIR}/${P}"-gentoo.patch
+
 	sed -i \
 		-e "s:@GENTOO_LIBDIR@:/usr/$(get_libdir)/${PN}:" \
 		-e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \
 		${PN} || die
+
 	python_fix_shebang .
 }
 
@@ -48,3 +51,6 @@ src_install() {
 	newicon data/32.png ${PN}.png
 	make_desktop_entry ${PN} "Light Years Into Space"
 }
+
+pkg_postinst() { xdg_icon_cache_update; }
+pkg_postrm() { xdg_icon_cache_update; }


             reply	other threads:[~2019-08-02 21:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-02 21:43 James Le Cuirot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-02-09 16:25 [gentoo-commits] repo/gentoo:master commit in: games-strategy/lightyears/ Michał Górny
2018-05-02 19:28 Pacho Ramos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1564782165.74f1923749f790d26dc46a0e92c0b308f98aabdf.chewi@gentoo \
    --to=chewi@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox