From 7bc9c63c9da678a7e6fceb095d56c634afd22c56 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 15 Dec 2019 18:09:03 +0000 Subject: gentoo resync : 15.12.2019 --- games-board/gnubg/Manifest | 2 + games-board/gnubg/gnubg-1.06.002.ebuild | 96 +++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 games-board/gnubg/gnubg-1.06.002.ebuild (limited to 'games-board/gnubg') diff --git a/games-board/gnubg/Manifest b/games-board/gnubg/Manifest index 9d1e357de6ff..a0190b5a076d 100644 --- a/games-board/gnubg/Manifest +++ b/games-board/gnubg/Manifest @@ -1,3 +1,5 @@ DIST gnubg-release-1.05.000-sources.tar.gz 15030177 BLAKE2B a53c7d1d242083631a18f8c3eaa4d006fbbda8b6aef8240c1cc27a98b284cebd31ad2787ddd6e360a96bb365851c611971d47f686b2d8a42dfa35ff6a240eb02 SHA512 1d8080c362cb32a3828b6913823d0eb42b0befac7a9fbd6d5ee3346e7515f6150876ac3b8bd59d5fd0c0de2a03187441165bb82eff0ffa1fb84e385dcea58590 +DIST gnubg-release-1.06.002-sources.tar.gz 13163681 BLAKE2B 1b631af8b268c722624012f86318844376bb21158f231d807cbfbb101ecef03ed90f7f253121844dd4221dc8026af5619fe9f62aff64e20d6c2b84450f9705d0 SHA512 77594209032a0d81deb802da249d7f40812127dd1e080413eda75015f324fec9592b1b51772403f501b21e39d3dd371931d82b43c24f614a7d16c5234d271948 EBUILD gnubg-1.05.000-r1.ebuild 2592 BLAKE2B 2a07c9ba6e34abc6af68411f4809fe4ece2b56c0c855cae858ea0ad8e1954bcb75f14d387348667c00d6c7f358cfc4c4e4aa72fe03c709e289c6ec41ff08d961 SHA512 d67758c17f627f6dd8afb1587c6ae980f83058110ea5e1cd5de54de0dda0c0e9a24a646ead41f15f92a6031ff06e4e60067149f4656c6a97970b0a0acd195266 +EBUILD gnubg-1.06.002.ebuild 2513 BLAKE2B 606f51f7e5ab13ef45c06c8aee5ab5823eb75ebd7eef86c85106c265fa17d4e6df20a836b38b9731358ebb7c3b7fbeac51f3a9fe985888507c995a141412284e SHA512 ce23d46b8542165c9c34a2d9eda5d1147f24a4505642b8f1068f409f76c4c90f756c04704b5c217cd20ac4dcd0bd71f1df07597b3961c511046873c1082c897e MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-board/gnubg/gnubg-1.06.002.ebuild b/games-board/gnubg/gnubg-1.06.002.ebuild new file mode 100644 index 000000000000..810ad7e6051f --- /dev/null +++ b/games-board/gnubg/gnubg-1.06.002.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) +inherit desktop python-single-r1 xdg + +DESCRIPTION="GNU BackGammon" +HOMEPAGE="https://www.gnu.org/software/gnubg/" +SRC_URI="ftp://ftp.gnu.org/gnu/gnubg/${PN}-release-${PV}-sources.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc64 ~x86" +IUSE="cpu_flags_x86_avx gtk opengl python sqlite cpu_flags_x86_sse cpu_flags_x86_sse2 threads" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="dev-db/sqlite:3 + dev-libs/glib:2 + dev-libs/gmp:0 + dev-libs/libxml2 + media-fonts/dejavu + media-libs/freetype:2 + media-libs/libcanberra + media-libs/libpng:0 + sys-libs/readline:0 + x11-libs/cairo + x11-libs/pango + gtk? ( x11-libs/gtk+:2 ) + opengl? ( + x11-libs/gtk+:2 + x11-libs/gtkglext + virtual/glu + ) + python? ( ${PYTHON_DEPS} ) + virtual/libintl" +DEPEND="${RDEPEND} + sys-devel/gettext + virtual/pkgconfig" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + + # use ${T} instead of /tmp for constructing credits (bug #298275) + sed -i -e 's:/tmp:${T}:' credits.sh || die + sed -i -e 's/fonts //' Makefile.in || die # handle font install ourself to fix bug #335774 + sed -i \ + -e '/^localedir / s#=.*$#= @localedir@#' \ + -e '/^gnulocaledir / s#=.*$#= @localedir@#' \ + po/Makefile.in.in || die + sed -i \ + -e '/^gnubgiconsdir / s#=.*#= /usr/share#' \ + -e '/^gnubgpixmapsdir / s#=.*#= /usr/share/pixmaps#' \ + pixmaps/Makefile.in || die + sed -i \ + -e '1i#include ' \ + copying.c || die #551896 +} + +src_configure() { + local simd=no + local gtk_arg=--without-gtk + + if use gtk || use opengl ; then + gtk_arg=--with-gtk + fi + use cpu_flags_x86_sse && simd=sse + use cpu_flags_x86_sse2 && simd=sse2 + use cpu_flags_x86_avx && simd=avx + econf \ + --localedir=/usr/share/locale \ + --docdir=/usr/share/doc/${PF}/html \ + --disable-cputest \ + --enable-simd=${simd} \ + ${gtk_arg} \ + $(use_enable threads) \ + $(usex python --with-python=${EPYTHON} --without-python) \ + $(use_with sqlite sqlite) \ + $(use_with opengl board3d) +} + +src_install() { + default + insinto /usr/share/${PN} + doins ${PN}.weights *bd + dodir /usr/share/${PN}/fonts + dosym ../../fonts/dejavu/DejaVuSans.ttf /usr/share/${PN}/fonts/Vera.ttf + dosym ../../fonts/dejavu/DejaVuSans-Bold.ttf /usr/share/${PN}/fonts/VeraBd.ttf + dosym ../../fonts/dejavu/DejaVuSerif-Bold.ttf /usr/share/${PN}/fonts/VeraSeBd.ttf + make_desktop_entry "gnubg -w" "GNU Backgammon" +} -- cgit v1.2.3