From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2B55013835A for ; Sun, 4 Apr 2021 07:22:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4A901E0841; Sun, 4 Apr 2021 07:22:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 22E20E0841 for ; Sun, 4 Apr 2021 07:22:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AB952340B3A for ; Sun, 4 Apr 2021 07:22:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D2BFE4A5 for ; Sun, 4 Apr 2021 07:22:03 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1617520901.bfb66967d7a1ac78be584be60309ca7cf71eb50e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/xfreecell/files/, games-board/xfreecell/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-board/xfreecell/files/xfreecell-1.0.5b-ar-ranlib.patch games-board/xfreecell/files/xfreecell-1.0.5b-gentoo.patch games-board/xfreecell/xfreecell-1.0.5b-r1.ebuild X-VCS-Directories: games-board/xfreecell/files/ games-board/xfreecell/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: bfb66967d7a1ac78be584be60309ca7cf71eb50e X-VCS-Branch: master Date: Sun, 4 Apr 2021 07:22:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3316e37c-0336-4d0d-9f14-bb791b5555ea X-Archives-Hash: b0a91746967a29d85ba13e7660f6d689 commit: bfb66967d7a1ac78be584be60309ca7cf71eb50e Author: Sam James gentoo org> AuthorDate: Sun Apr 4 06:48:37 2021 +0000 Commit: Sam James gentoo org> CommitDate: Sun Apr 4 07:21:41 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfb66967 games-board/xfreecell: port to EAPI 7, eutils->desktop Signed-off-by: Sam James gentoo.org> .../files/xfreecell-1.0.5b-ar-ranlib.patch | 15 +++++ .../xfreecell/files/xfreecell-1.0.5b-gentoo.patch | 70 +++++++++------------- games-board/xfreecell/xfreecell-1.0.5b-r1.ebuild | 30 ++++++---- 3 files changed, 63 insertions(+), 52 deletions(-) diff --git a/games-board/xfreecell/files/xfreecell-1.0.5b-ar-ranlib.patch b/games-board/xfreecell/files/xfreecell-1.0.5b-ar-ranlib.patch new file mode 100644 index 00000000000..d2fd441cba1 --- /dev/null +++ b/games-board/xfreecell/files/xfreecell-1.0.5b-ar-ranlib.patch @@ -0,0 +1,15 @@ +diff --git a/widget/makefile b/widget/makefile +index 93b178b..eeedc51 100644 +--- a/widget/makefile ++++ b/widget/makefile +@@ -16,8 +16,8 @@ tgz: + tar cvzf widget.tgz *.cpp *.h makefile + + dummy: $(OBJECTS) +- ar r $(LIBNAME) $(OBJECTS) +- ranlib $(LIBNAME) ++ $(AR) r $(LIBNAME) $(OBJECTS) ++ $(RANLIB) $(LIBNAME) + mv $(LIBNAME) .. + touch dummy + diff --git a/games-board/xfreecell/files/xfreecell-1.0.5b-gentoo.patch b/games-board/xfreecell/files/xfreecell-1.0.5b-gentoo.patch index 85a2e4dd3c4..02cd51bd53c 100644 --- a/games-board/xfreecell/files/xfreecell-1.0.5b-gentoo.patch +++ b/games-board/xfreecell/files/xfreecell-1.0.5b-gentoo.patch @@ -1,6 +1,5 @@ -diff -ru xfreecellg/card.cpp xfreecell/card.cpp ---- xfreecellg/card.cpp 1999-03-27 05:36:28.000000000 -0800 -+++ xfreecell/card.cpp 2004-02-25 02:17:24.000000000 -0800 +--- a/card.cpp ++++ b/card.cpp @@ -119,7 +119,7 @@ int oldy = y(); int newx = dest_x; @@ -10,9 +9,8 @@ diff -ru xfreecellg/card.cpp xfreecell/card.cpp float curx = (float) oldx; float cury = (float) oldy; -diff -ru xfreecellg/freecell.cpp xfreecell/freecell.cpp ---- xfreecellg/freecell.cpp 1999-07-27 07:15:27.000000000 -0700 -+++ xfreecell/freecell.cpp 2004-02-25 02:18:13.000000000 -0800 +--- a/freecell.cpp ++++ b/freecell.cpp @@ -64,7 +64,7 @@ static GameNumberManager* gnManager; static const int PathLength = 256; @@ -31,9 +29,8 @@ diff -ru xfreecellg/freecell.cpp xfreecell/freecell.cpp if (home == NULL) { fprintf(stderr, "Cannot get $HOME. Assuming I am at home directory now.\n"); -diff -ru xfreecellg/gnmanager.cpp xfreecell/gnmanager.cpp ---- xfreecellg/gnmanager.cpp 1999-07-27 07:18:05.000000000 -0700 -+++ xfreecell/gnmanager.cpp 2004-02-25 02:17:24.000000000 -0800 +--- a/gnmanager.cpp ++++ b/gnmanager.cpp @@ -16,7 +16,7 @@ GameNumberManager::GameNumberManager() { @@ -61,9 +58,8 @@ diff -ru xfreecellg/gnmanager.cpp xfreecell/gnmanager.cpp { FILE* fp = fopen(file.c_str(), "w+"); -diff -ru xfreecellg/gnmanager.h xfreecell/gnmanager.h ---- xfreecellg/gnmanager.h 1999-03-29 05:07:19.000000000 -0800 -+++ xfreecell/gnmanager.h 2004-02-25 02:17:24.000000000 -0800 +--- a/gnmanager.h ++++ b/gnmanager.h @@ -2,7 +2,13 @@ #define GNManager_H @@ -98,9 +94,8 @@ diff -ru xfreecellg/gnmanager.h xfreecell/gnmanager.h hash_set msWonGames; hash_set msLostGames; -diff -ru xfreecellg/makefile xfreecell/makefile ---- xfreecellg/makefile 1999-04-03 05:42:49.000000000 -0800 -+++ xfreecell/makefile 2004-02-25 02:17:48.000000000 -0800 +--- a/makefile ++++ b/makefile @@ -1,16 +1,15 @@ OBJECTS=card.o freecell.o option.o stack.o subwindows.o undo.o util.o gnmanager.o random.o -CC=g++ @@ -146,9 +141,8 @@ diff -ru xfreecellg/makefile xfreecell/makefile -# install ms-compatible/MSNumbers $(DESTDIR)/usr/local/lib/xfreecell \ No newline at end of file +# install ms-compatible/MSNumbers $(DESTDIR)/usr/share/xfreecell -diff -ru xfreecellg/option.h xfreecell/option.h ---- xfreecellg/option.h 1999-03-27 11:39:17.000000000 -0800 -+++ xfreecell/option.h 2004-02-25 02:17:24.000000000 -0800 +--- a/option.h ++++ b/option.h @@ -22,7 +22,7 @@ void readPrefs(); void writePrefs(); @@ -158,9 +152,8 @@ diff -ru xfreecellg/option.h xfreecell/option.h static int _speedup; static bool _queryWindow; -diff -ru xfreecellg/stack.h xfreecell/stack.h ---- xfreecellg/stack.h 1999-03-02 10:20:02.000000000 -0800 -+++ xfreecell/stack.h 2004-02-25 02:17:24.000000000 -0800 +--- a/stack.h ++++ b/stack.h @@ -28,7 +28,7 @@ int _next_x, _next_y; @@ -170,9 +163,8 @@ diff -ru xfreecellg/stack.h xfreecell/stack.h }; class PlayStack : public Stack { -diff -ru xfreecellg/subwindows.h xfreecell/subwindows.h ---- xfreecellg/subwindows.h 1999-03-15 15:09:49.000000000 -0800 -+++ xfreecell/subwindows.h 2004-02-25 02:17:24.000000000 -0800 +--- a/subwindows.h ++++ b/subwindows.h @@ -76,7 +76,7 @@ int _undos; int _totalScore; @@ -182,9 +174,8 @@ diff -ru xfreecellg/subwindows.h xfreecell/subwindows.h bool exitPressed; -diff -ru xfreecellg/undo.cpp xfreecell/undo.cpp ---- xfreecellg/undo.cpp 1999-03-25 07:48:40.000000000 -0800 -+++ xfreecell/undo.cpp 2004-02-25 02:17:24.000000000 -0800 +--- a/undo.cpp ++++ b/undo.cpp @@ -22,7 +22,7 @@ c->moveToStack(from, false, false); } @@ -194,9 +185,8 @@ diff -ru xfreecellg/undo.cpp xfreecell/undo.cpp void undoClearMoves() { -diff -ru xfreecellg/widget/container.cpp xfreecell/widget/container.cpp ---- xfreecellg/widget/container.cpp 1999-03-03 09:34:52.000000000 -0800 -+++ xfreecell/widget/container.cpp 2004-02-25 02:17:24.000000000 -0800 +--- a/widget/container.cpp ++++ b/widget/container.cpp @@ -61,18 +61,18 @@ void NSContainer::remove(NSComponent* nsc) @@ -233,9 +223,8 @@ diff -ru xfreecellg/widget/container.cpp xfreecell/widget/container.cpp if (nscVec.size() == 0) { _width = 0; _height = 0; } else { -diff -ru xfreecellg/widget/makefile xfreecell/widget/makefile ---- xfreecellg/widget/makefile 1999-03-17 21:54:57.000000000 -0800 -+++ xfreecell/widget/makefile 2004-02-25 02:17:59.000000000 -0800 +--- a/widget/makefile ++++ b/widget/makefile @@ -1,15 +1,13 @@ OBJECTS=window.o plate.o string.o button.o label.o textfield.o container.o frame.o util.o scrollbar.o font.o main.o -#C=/usr/local/gcc-2.8.1/bin/g++ @@ -255,17 +244,15 @@ diff -ru xfreecellg/widget/makefile xfreecell/widget/makefile clean: rm -f *.o *~ a.out .nfs* dummy -diff -ru xfreecellg/widget/textfield.cpp xfreecell/widget/textfield.cpp ---- xfreecellg/widget/textfield.cpp 1999-03-03 09:34:52.000000000 -0800 -+++ xfreecell/widget/textfield.cpp 2004-02-25 02:17:24.000000000 -0800 +--- a/widget/textfield.cpp ++++ b/widget/textfield.cpp @@ -1,3 +1,4 @@ +#include #include "widget.h" GC NSTextField::gc; -diff -ru xfreecellg/widget/widget.h xfreecell/widget/widget.h ---- xfreecellg/widget/widget.h 1999-03-15 08:29:32.000000000 -0800 -+++ xfreecell/widget/widget.h 2004-02-25 02:17:24.000000000 -0800 +--- a/widget/widget.h ++++ b/widget/widget.h @@ -114,7 +114,7 @@ Elt(NSWindow* nw, Window w) { nswindow = nw; window = w; } }; @@ -302,9 +289,8 @@ diff -ru xfreecellg/widget/widget.h xfreecell/widget/widget.h }; // ##### NSHContainer ##### -diff -ru xfreecellg/widget/window.cpp xfreecell/widget/window.cpp ---- xfreecellg/widget/window.cpp 1999-03-03 09:34:52.000000000 -0800 -+++ xfreecell/widget/window.cpp 2004-02-25 02:17:24.000000000 -0800 +--- a/widget/window.cpp ++++ b/widget/window.cpp @@ -2,7 +2,7 @@ bool NSWindow::windowInitialized = false; 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 }