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 3380C13835A for ; Tue, 15 Jun 2021 20:02:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3823AE0901; Tue, 15 Jun 2021 20:02:18 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 1FC0AE0901 for ; Tue, 15 Jun 2021 20:02:18 +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 49778340E84 for ; Tue, 15 Jun 2021 20:02:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9EA057B8 for ; Tue, 15 Jun 2021 20:02:14 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1623787220.bdb15d3bba3fcbae4d5612931a9e9dc920172e3b.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/pasang-emas/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-board/pasang-emas/pasang-emas-3.1.0-r1.ebuild X-VCS-Directories: games-board/pasang-emas/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: bdb15d3bba3fcbae4d5612931a9e9dc920172e3b X-VCS-Branch: master Date: Tue, 15 Jun 2021 20:02:14 +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: 2ee32d0c-ea91-4fe7-8127-eb13bfa07969 X-Archives-Hash: 006aef6aafd1350d01bf8a4d8ff4f3b7 commit: bdb15d3bba3fcbae4d5612931a9e9dc920172e3b Author: Ionen Wolkens gentoo org> AuthorDate: Tue Jun 15 19:30:01 2021 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Tue Jun 15 20:00:20 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdb15d3b games-board/pasang-emas: restrict tests, tidy These tests aren't really meaningful and attempts to fetch .dtd just to validate a handful of .xml help files. Signed-off-by: Ionen Wolkens gentoo.org> .../pasang-emas/pasang-emas-3.1.0-r1.ebuild | 44 ++++++++++++---------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/games-board/pasang-emas/pasang-emas-3.1.0-r1.ebuild b/games-board/pasang-emas/pasang-emas-3.1.0-r1.ebuild index 53bb194a1a5..5bf6199b8d6 100644 --- a/games-board/pasang-emas/pasang-emas-3.1.0-r1.ebuild +++ b/games-board/pasang-emas/pasang-emas-3.1.0-r1.ebuild @@ -7,21 +7,27 @@ inherit gnome2-utils toolchain-funcs DESCRIPTION="Traditional game of Brunei" HOMEPAGE="http://pasang-emas.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2 - extras? ( mirror://sourceforge/${PN}/pasang-emas-themes-1.0.tar.bz2 - mirror://sourceforge/${PN}/pet-marble.tar.bz2 - mirror://sourceforge/${PN}/pet-fragrance.tar.bz2 )" +SRC_URI=" + mirror://sourceforge/${PN}/${P}.tar.bz2 + extras? ( + mirror://sourceforge/${PN}/pasang-emas-themes-1.0.tar.bz2 + mirror://sourceforge/${PN}/pet-marble.tar.bz2 + mirror://sourceforge/${PN}/pet-fragrance.tar.bz2 + )" LICENSE="GPL-3+" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="extras nls" +RESTRICT="test" # only used to validate .xml help files and fetches .dtd for it -RDEPEND="app-text/gnome-doc-utils - >=x11-libs/gtk+-2.18.2:2 - virtual/libintl" +RDEPEND=" + app-text/gnome-doc-utils + x11-libs/gtk+:2 + nls? ( virtual/libintl )" DEPEND="${RDEPEND}" -BDEPEND="app-text/rarian +BDEPEND=" + app-text/rarian nls? ( sys-devel/gettext )" PATCHES=( @@ -30,19 +36,19 @@ PATCHES=( src_prepare() { default - sed -i \ - -e '/Encoding/d' \ - -e '/Icon/s:\.png::' \ - data/pasang-emas.desktop.in || die + + sed -i '/Encoding/d;/Icon/s:\.png::' data/pasang-emas.desktop.in || die + gnome2_omf_fix } src_configure() { - econf \ - --localedir="${EPREFIX}"/usr/share/locale \ - --with-omf-dir="${EPREFIX}"/usr/share/omf \ - --with-help-dir="${EPREFIX}"/usr/share/gnome/help \ + local econfargs=( $(use_enable nls) + --with-help-dir="${EPREFIX}"/usr/share/gnome/help + --with-omf-dir="${EPREFIX}"/usr/share/omf + ) + econf "${econfargs[@]}" } src_compile(){ @@ -51,12 +57,10 @@ src_compile(){ src_install() { default + if use extras; then insinto /usr/share/${PN}/themes - doins -r \ - "${WORKDIR}"/marble \ - "${WORKDIR}"/pasang-emas-themes-1.0/{conteng,kaca} \ - "${WORKDIR}"/fragrance + doins -r "${WORKDIR}"/{fragrance,marble,pasang-emas-themes-1.0/{conteng,kaca}} fi }