diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-board/xboard | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-board/xboard')
-rw-r--r-- | games-board/xboard/Manifest | 5 | ||||
-rw-r--r-- | games-board/xboard/files/xboard-4.8.0-gettext.patch | 20 | ||||
-rw-r--r-- | games-board/xboard/files/xboard-4.8.0-gnuchess-default.patch | 53 | ||||
-rw-r--r-- | games-board/xboard/metadata.xml | 12 | ||||
-rw-r--r-- | games-board/xboard/xboard-4.8.0-r1.ebuild | 89 |
5 files changed, 179 insertions, 0 deletions
diff --git a/games-board/xboard/Manifest b/games-board/xboard/Manifest new file mode 100644 index 000000000000..596f6815f7bb --- /dev/null +++ b/games-board/xboard/Manifest @@ -0,0 +1,5 @@ +AUX xboard-4.8.0-gettext.patch 502 BLAKE2B 9c763076afb8ef182e715cbe82a7935ca495d9485326807146fcbe8406c56cfaacb9ebc0221b18628ca36379cf8d8d14f5fe0c4d0577487e39abf8305e9fa6da SHA512 1e2e68d972e7fcc299940be72bf3f486cf132fc247ed9f95585379108a35cdbe00824108ec7ca679e37c612357ca5b03fe6bbc8d1082bf8d40a809e021c4c0a9 +AUX xboard-4.8.0-gnuchess-default.patch 1441 BLAKE2B 2b37c3650d45fb46bdf57b93152d99de3a88c1f75db33d0f4ecc1b2105cfdb444599af8905955b3a5a91527bac770fc67e0ee480d46a9c81b73fc1c11bf3ec68 SHA512 3ba68ce96dbdca3f0f8027d54c8cf7d8b7f278a2eb8bf549e3f9a2979bfb19aa0232d391430e6725bfdc73befdcc2da221663ff974774ab81bfe052286205956 +DIST xboard-4.8.0.tar.gz 3691531 BLAKE2B 7743b654e8bdd37672a6076ce032fcc92c846796a8cf84906ae8b74454297f0fed1bce078883e9aff6237c8bfee67db659bdd7b93acd94e1b27bc90629dc3b1a SHA512 fc3231f170baacdf97df5d08488f5a1fb9a144810f7b0eb72e3e95d345ce47aa2ff67a586ef45b6a9e45932300babc59c161a29e055dd0d19b133ba986985c81 +EBUILD xboard-4.8.0-r1.ebuild 2016 BLAKE2B f519703868c61099a0aaa90a150c1293a9a06eb62dae2f92b0f1d5ad1bb4932dbd8df527c2b166ed1e89381178b6f0cb0b349a9430bc4aa8a157ad771f89a3ab SHA512 8b262a091b80ab8c531fddc8d76a6efe0ac8cb2e6ab7cb3d5e3901d37c97ba4b47c9f61a3cff80c64788387a6f1f44c7b71b470ba14a75612895aa6e9cbc46e7 +MISC metadata.xml 418 BLAKE2B 0fb5a3b7607b0c609e7bf50224e1a53abc1e9dd90a811e964bbc5038f96966d32d4cfca6b8eaefc7e64be3fb2302a0231162554cd436043471c578830f74e1ec SHA512 ff385f8c46788e3c76fcdd891f4a4be50b100ff47298eece8a2f1ac3dd166ab384961f3fde0967dc3b3afcc3978cefb5025e4eb0dc69177395c75affa2416d1f diff --git a/games-board/xboard/files/xboard-4.8.0-gettext.patch b/games-board/xboard/files/xboard-4.8.0-gettext.patch new file mode 100644 index 000000000000..a50009a70efa --- /dev/null +++ b/games-board/xboard/files/xboard-4.8.0-gettext.patch @@ -0,0 +1,20 @@ +commit 7688073f2967bb3438d1a2d8ccffc53f697219fb +Author: hasufell <hasufell@gentoo.org> +Date: Fri Sep 6 16:37:22 2013 +0200 + + BUILD: fix gettext version + + https://bugs.gentoo.org/show_bug.cgi?id=418267 + https://savannah.gnu.org/bugs/index.php?39970 + +--- a/configure.ac ++++ b/configure.ac +@@ -76,7 +76,7 @@ AC_ISC_POSIX + AC_PROG_INSTALL + + dnl| add gettext support +-AM_GNU_GETTEXT_VERSION(0.17) ++AM_GNU_GETTEXT_VERSION(0.18) + AM_GNU_GETTEXT([external]) + + AC_CHECK_PROGS(RSH, remsh rsh, rsh) diff --git a/games-board/xboard/files/xboard-4.8.0-gnuchess-default.patch b/games-board/xboard/files/xboard-4.8.0-gnuchess-default.patch new file mode 100644 index 000000000000..772a887493c7 --- /dev/null +++ b/games-board/xboard/files/xboard-4.8.0-gnuchess-default.patch @@ -0,0 +1,53 @@ +From 6b40739a29b99fbed7a9622c8cbe1c423e397b48 Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Mon, 3 Nov 2014 19:53:24 +0100 +Subject: [PATCH] Make "gnuchess" the default engine + +--- + gtk/xboard.h | 2 +- + xaw/xboard.h | 2 +- + xboard.conf | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/gtk/xboard.h b/gtk/xboard.h +index 234692d..dfa42ac 100644 +--- a/gtk/xboard.h ++++ b/gtk/xboard.h +@@ -108,7 +108,7 @@ typedef struct { + + #define BORDER_X_OFFSET 3 + #define BORDER_Y_OFFSET 27 +-#define FIRST_CHESS_PROGRAM "fairymax" ++#define FIRST_CHESS_PROGRAM "gnuchess" + #define SECOND_CHESS_PROGRAM "" + #define FIRST_DIRECTORY "." + #define SECOND_DIRECTORY "." +diff --git a/xaw/xboard.h b/xaw/xboard.h +index bcfafb2..d4b3407 100644 +--- a/xaw/xboard.h ++++ b/xaw/xboard.h +@@ -118,7 +118,7 @@ typedef struct { + + #define BORDER_X_OFFSET 3 + #define BORDER_Y_OFFSET 27 +-#define FIRST_CHESS_PROGRAM "fairymax" ++#define FIRST_CHESS_PROGRAM "gnuchess" + #define SECOND_CHESS_PROGRAM "" + #define FIRST_DIRECTORY "." + #define SECOND_DIRECTORY "." +diff --git a/xboard.conf b/xboard.conf +index 6c43b97..90fc680 100644 +--- a/xboard.conf ++++ b/xboard.conf +@@ -73,7 +73,7 @@ + ; + ; Engines & adjudicatons in engine-engine games + ; +--firstChessProgram fairymax ++-firstChessProgram gnuchess + -firstChessProgramNames {fairymax + "Fruit 2.1" -fcp fruit -fUCI + "Crafty" -fcp crafty +-- +2.1.3 + diff --git a/games-board/xboard/metadata.xml b/games-board/xboard/metadata.xml new file mode 100644 index 000000000000..f87877458417 --- /dev/null +++ b/games-board/xboard/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <use> + <flag name="zippy">Enable experimental zippy client</flag> + <flag name="default-font">Install the default font that xboard uses</flag> + </use> +</pkgmetadata> diff --git a/games-board/xboard/xboard-4.8.0-r1.ebuild b/games-board/xboard/xboard-4.8.0-r1.ebuild new file mode 100644 index 000000000000..398488b60b28 --- /dev/null +++ b/games-board/xboard/xboard-4.8.0-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils fdo-mime gnome2-utils + +DESCRIPTION="GUI for gnuchess and for internet chess servers" +HOMEPAGE="https://www.gnu.org/software/xboard/" +SRC_URI="mirror://gnu/xboard/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="Xaw3d +default-font gtk nls zippy" +RESTRICT="test" #124112 + +RDEPEND=" + dev-libs/glib:2 + gnome-base/librsvg:2 + virtual/libintl + x11-libs/cairo[X] + x11-libs/libXpm + default-font? ( + media-fonts/font-adobe-100dpi[nls?] + media-fonts/font-misc-misc[nls?] + ) + !gtk? ( + x11-libs/libX11 + x11-libs/libXt + x11-libs/libXmu + Xaw3d? ( x11-libs/libXaw3d ) + !Xaw3d? ( x11-libs/libXaw ) + ) + gtk? ( x11-libs/gtk+:2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig + x11-base/xorg-proto + nls? ( sys-devel/gettext )" + +PATCHES=( + "${FILESDIR}"/${P}-gettext.patch + "${FILESDIR}"/${P}-gnuchess-default.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --disable-update-mimedb \ + --datadir="${EPREFIX}"/usr/share \ + $(use_enable nls) \ + $(use_enable zippy) \ + --disable-update-mimedb \ + $(use_with gtk) \ + $(use_with Xaw3d) \ + $(usex gtk "--without-Xaw" "$(use_with !Xaw3d Xaw)") \ + --with-gamedatadir="${EPREFIX}/usr/share/games/${PN}" +} + +src_install() { + default + dodoc AUTHORS COPYRIGHT ChangeLog FAQ.html NEWS README TODO ics-parsing.txt + use zippy && dodoc zippy.README +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + fdo-mime_mime_database_update + fdo-mime_desktop_database_update + gnome2_icon_cache_update + elog "No chess engines are emerged by default! If you want a chess engine" + elog "to play with, you can emerge gnuchess or crafty." + elog "Read xboard FAQ for information." + if ! use default-font ; then + ewarn "Read the xboard(6) man page for specifying the font for xboard to use." + fi +} + +pkg_postrm() { + fdo-mime_mime_database_update + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} |