From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 236281382D0 for ; Sat, 25 Jun 2016 09:55:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72FE0E0B8A; Sat, 25 Jun 2016 09:55:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AFAD5E0B8A for ; Sat, 25 Jun 2016 09:55:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 148A9340C1C for ; Sat, 25 Jun 2016 09:55:53 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B9E08241D for ; Sat, 25 Jun 2016 09:55:50 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1466848537.f87ba8e8f6692952d0aad511aaa389737d5d2092.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-doc/kicad-doc/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-doc/kicad-doc/kicad-doc-4.0.1.ebuild app-doc/kicad-doc/kicad-doc-4.0.2.ebuild X-VCS-Directories: app-doc/kicad-doc/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: f87ba8e8f6692952d0aad511aaa389737d5d2092 X-VCS-Branch: master Date: Sat, 25 Jun 2016 09:55:50 +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-Archives-Salt: 349ae1a9-34a3-47cb-8e17-7a4224b085e8 X-Archives-Hash: f877abc35b40dadf466ec9fc2719910b commit: f87ba8e8f6692952d0aad511aaa389737d5d2092 Author: Ulrich Müller gentoo org> AuthorDate: Sat Jun 25 09:33:34 2016 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sat Jun 25 09:55:37 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f87ba8e8 app-doc/kicad-doc: [QA] Various fixes to the ebuild. vcs-snapshot.eclass is not needed. Main license is || ( GPL-3+ CC-BY-3.0 ) and some files under GPL-2 only. Don't change LINGUAS in global scope. Declare local variables and fix bad assignment in src_configure. Remove REQUIRED_USE; fall back to a default configuration instead. Especially global USE_EXPAND variables like LINGUAS or L10N should not require per-package micro-management of flags. Package-Manager: portage-2.3.0 app-doc/kicad-doc/kicad-doc-4.0.1.ebuild | 40 ++++++++++++++++++++------------ app-doc/kicad-doc/kicad-doc-4.0.2.ebuild | 40 ++++++++++++++++++++------------ 2 files changed, 50 insertions(+), 30 deletions(-) diff --git a/app-doc/kicad-doc/kicad-doc-4.0.1.ebuild b/app-doc/kicad-doc/kicad-doc-4.0.1.ebuild index 4f755f3..172bbb2 100644 --- a/app-doc/kicad-doc/kicad-doc-4.0.1.ebuild +++ b/app-doc/kicad-doc/kicad-doc-4.0.1.ebuild @@ -1,27 +1,23 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=5 -inherit cmake-utils vcs-snapshot +inherit cmake-utils DESCRIPTION="Electronic Schematic and PCB design tools manuals" -HOMEPAGE="http://www.kicad-pcb.org" +HOMEPAGE="http://www.kicad-pcb.org/" SRC_URI="https://github.com/KiCad/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" -LICENSE="GPL-2" +LICENSE="|| ( GPL-3+ CC-BY-3.0 ) GPL-2" SLOT="0" KEYWORDS="~amd64" -FUSE="html pdf" +IUSE="html pdf" LANGS="en fr it ja nl pl" -LINGUAS="" -for lang in ${LANGS} ; do - LINGUAS="${LINGUAS} linguas_${lang}" +for lang in ${LANGS}; do + IUSE+=" linguas_${lang}" done -IUSE="${FUSE} ${LINGUAS}" - -REQUIRED_USE="( || ( pdf html ) ) ( ^^ ( ${LINGUAS} ) )" DEPEND=">=app-text/asciidoc-8.6.9 app-text/dblatex @@ -40,20 +36,34 @@ src_prepare() { src_configure() { local formats="" local doclang="" + local format lang # construct format string - for format in ${FUSE}; do - use $format && formats+="${format};" + for format in html pdf; do + use ${format} && formats+="${format};" done + if [[ -z ${formats} ]]; then + formats="html;" + ewarn "Neither \"html\" nor \"pdf\" USE flag set, using html." + fi # find out which language is requested for lang in ${LANGS}; do if use linguas_${lang}; then - doclang=${lang} + if [[ -z ${doclang} ]]; then + doclang="${lang}" + else + ewarn "Only one single language can be enabled." \ + "Using \"${doclang}\", ignoring \"${lang}\"." + fi fi done + if [[ -z ${doclang} ]]; then + doclang="en" + ewarn "No language flag set, falling back to \"en\"." + fi - local mycmakeargs+=( + local mycmakeargs=( -DBUILD_FORMATS="${formats}" -DSINGLE_LANGUAGE="${doclang}" ) diff --git a/app-doc/kicad-doc/kicad-doc-4.0.2.ebuild b/app-doc/kicad-doc/kicad-doc-4.0.2.ebuild index 4f755f3..172bbb2 100644 --- a/app-doc/kicad-doc/kicad-doc-4.0.2.ebuild +++ b/app-doc/kicad-doc/kicad-doc-4.0.2.ebuild @@ -1,27 +1,23 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=5 -inherit cmake-utils vcs-snapshot +inherit cmake-utils DESCRIPTION="Electronic Schematic and PCB design tools manuals" -HOMEPAGE="http://www.kicad-pcb.org" +HOMEPAGE="http://www.kicad-pcb.org/" SRC_URI="https://github.com/KiCad/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" -LICENSE="GPL-2" +LICENSE="|| ( GPL-3+ CC-BY-3.0 ) GPL-2" SLOT="0" KEYWORDS="~amd64" -FUSE="html pdf" +IUSE="html pdf" LANGS="en fr it ja nl pl" -LINGUAS="" -for lang in ${LANGS} ; do - LINGUAS="${LINGUAS} linguas_${lang}" +for lang in ${LANGS}; do + IUSE+=" linguas_${lang}" done -IUSE="${FUSE} ${LINGUAS}" - -REQUIRED_USE="( || ( pdf html ) ) ( ^^ ( ${LINGUAS} ) )" DEPEND=">=app-text/asciidoc-8.6.9 app-text/dblatex @@ -40,20 +36,34 @@ src_prepare() { src_configure() { local formats="" local doclang="" + local format lang # construct format string - for format in ${FUSE}; do - use $format && formats+="${format};" + for format in html pdf; do + use ${format} && formats+="${format};" done + if [[ -z ${formats} ]]; then + formats="html;" + ewarn "Neither \"html\" nor \"pdf\" USE flag set, using html." + fi # find out which language is requested for lang in ${LANGS}; do if use linguas_${lang}; then - doclang=${lang} + if [[ -z ${doclang} ]]; then + doclang="${lang}" + else + ewarn "Only one single language can be enabled." \ + "Using \"${doclang}\", ignoring \"${lang}\"." + fi fi done + if [[ -z ${doclang} ]]; then + doclang="en" + ewarn "No language flag set, falling back to \"en\"." + fi - local mycmakeargs+=( + local mycmakeargs=( -DBUILD_FORMATS="${formats}" -DSINGLE_LANGUAGE="${doclang}" )