summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-04 06:48:37 +0000
committerSam James <sam@gentoo.org>2021-04-04 07:21:41 +0000
commitbfb66967d7a1ac78be584be60309ca7cf71eb50e (patch)
tree01685c95e386b0ff5a5658d529d96ebc6f0e4e08 /games-board/xfreecell/xfreecell-1.0.5b-r1.ebuild
parentgames-fps/industri: port to EAPI 7, games.eclass-- (diff)
downloadgentoo-bfb66967d7a1ac78be584be60309ca7cf71eb50e.tar.gz
gentoo-bfb66967d7a1ac78be584be60309ca7cf71eb50e.tar.bz2
gentoo-bfb66967d7a1ac78be584be60309ca7cf71eb50e.zip
games-board/xfreecell: port to EAPI 7, eutils->desktop
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-board/xfreecell/xfreecell-1.0.5b-r1.ebuild')
-rw-r--r--games-board/xfreecell/xfreecell-1.0.5b-r1.ebuild30
1 files changed, 20 insertions, 10 deletions
diff --git a/games-board/xfreecell/xfreecell-1.0.5b-r1.ebuild b/games-board/xfreecell/xfreecell-1.0.5b-r1.ebuild
index b5e38916ce0..309d1fc0d90 100644
--- a/games-board/xfreecell/xfreecell-1.0.5b-r1.ebuild
+++ b/games-board/xfreecell/xfreecell-1.0.5b-r1.ebuild
@@ -1,39 +1,49 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-inherit eutils
+EAPI=7
+
+inherit desktop toolchain-funcs
DESCRIPTION="A freecell game for X"
HOMEPAGE="http://www2.giganet.net/~nakayama/"
SRC_URI="http://www2.giganet.net/~nakayama/${P}.tgz
http://www2.giganet.net/~nakayama/MSNumbers.gz
https://dev.gentoo.org/~dilfridge/distfiles/${P}-gcc6.patch.xz"
+S="${WORKDIR}"/${PN}
LICENSE="HPND"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"
-IUSE=""
-
-RDEPEND="media-fonts/font-misc-misc
- x11-libs/libXext"
-DEPEND="${RDEPEND}
- x11-base/xorg-proto"
-S=${WORKDIR}/${PN}
+RDEPEND="
+ media-fonts/font-misc-misc
+ x11-libs/libXext
+"
+DEPEND="
+ ${RDEPEND}
+ x11-base/xorg-proto
+"
PATCHES=(
"${FILESDIR}"/${P}-gentoo.patch
"${FILESDIR}"/${P}-gcc43.patch
"${WORKDIR}"/${P}-gcc6.patch
+ "${FILESDIR}"/${P}-ar-ranlib.patch
)
+src_configure() {
+ tc-export AR CXX RANLIB
+}
+
src_install() {
dobin xfreecell
+
insinto /usr/share/${PN}
doins "${WORKDIR}"/MSNumbers
dodoc CHANGES README mshuffle.txt
doman xfreecell.6
+
make_desktop_entry xfreecell XFreecell
}