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 3769359CB2 for ; Sat, 16 Apr 2016 10:14:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4784121C00D; Sat, 16 Apr 2016 10:14:52 +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 CA2EE21C00D for ; Sat, 16 Apr 2016 10:14:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 16942340A9C for ; Sat, 16 Apr 2016 10:14:50 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 28A1EC7 for ; Sat, 16 Apr 2016 10:14:48 +0000 (UTC) From: "Ian Delaney" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ian Delaney" Message-ID: <1460801591.1ab6ed627d0569096d32ebccaf8ca7c3857d2d73.idella4@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/Manifest app-doc/kicad-doc/kicad-doc-4.0.2.ebuild X-VCS-Directories: app-doc/kicad-doc/ X-VCS-Committer: idella4 X-VCS-Committer-Name: Ian Delaney X-VCS-Revision: 1ab6ed627d0569096d32ebccaf8ca7c3857d2d73 X-VCS-Branch: master Date: Sat, 16 Apr 2016 10:14:48 +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: 3c38e8e2-c06c-4d25-a224-434dc35b3ffe X-Archives-Hash: 67632d413a91be1993fe55894730e134 commit: 1ab6ed627d0569096d32ebccaf8ca7c3857d2d73 Author: Zoltan Puskas sinustrom info> AuthorDate: Sat Apr 16 10:10:49 2016 +0000 Commit: Ian Delaney gentoo org> CommitDate: Sat Apr 16 10:13:11 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ab6ed62 app-doc/kicad-doc: Bump to version 4.0.2 Package-Manager: portage-2.2.28 Signed-off-by: Ian Delaney gentoo.org> app-doc/kicad-doc/Manifest | 1 + app-doc/kicad-doc/kicad-doc-4.0.2.ebuild | 61 ++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/app-doc/kicad-doc/Manifest b/app-doc/kicad-doc/Manifest index 389759b..2627eb3 100644 --- a/app-doc/kicad-doc/Manifest +++ b/app-doc/kicad-doc/Manifest @@ -1,2 +1,3 @@ DIST kicad-doc-4.0.0.tar.gz 23358151 SHA256 8599873bfbb3ae824e93e0f78464ae303ef1df3331fbf9bc5591a5610a375d89 SHA512 4a7b2095af51bfa6f4399ba45d5f54e1c8c576195e640b025b07448fc0eb7a6144cf60630e30405ab57afc39cfb778dc63a9c675a0fc01cb3dfc870aed15e1ae WHIRLPOOL b24690e44c5e1832d95f4f83a25130a3b7d9986359da4919b7a778a6e2aaca4022cc27617b88815af5a4aa78f53b73adeb7ec7d15e69eb35d47cc7a39480f444 DIST kicad-doc-4.0.1.tar.gz 23365382 SHA256 be8dc4bddb89869996956d3d1421584c5a8197282997902e22fda888a8d433bb SHA512 ae57a9c29f3cd4b3d85d4b7d7bc940957c33b0e1c1404b82c8a9261695c0670866cb4a95ab7ad5c35b1faa6fbd3969f277467fa7d33e38e728a3dd9b65203021 WHIRLPOOL d9834312a0a315bf1d5dca048999d5adcb2ee60c42a41d8266522ad6c0ca49ec7bad5c9bad322b6d73c41c9f24cb1f4088d6889c6a51abf4671271dd7ec8af9d +DIST kicad-doc-4.0.2.tar.gz 23365338 SHA256 4a475b3831f9a54a20dc94631cada3e305ede23345a6b4059077ac6900f3d35a SHA512 8cf2ff11141d3a5319d3b17a13648903518aaf0625802762df875550dd5811515e8a65d7414859624a18402cc6289ec70247a6c1f235081768ee344ec42c3b35 WHIRLPOOL f0279935fd823c62a6545afab6c2916173a72b5c881f71d8118ef897972e2d9de2c567944689a70aeeb4bae9b4938f636e9c526d0fd838bb42b8e2b4b4d23b4f diff --git a/app-doc/kicad-doc/kicad-doc-4.0.2.ebuild b/app-doc/kicad-doc/kicad-doc-4.0.2.ebuild new file mode 100644 index 0000000..4f755f3 --- /dev/null +++ b/app-doc/kicad-doc/kicad-doc-4.0.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils vcs-snapshot + +DESCRIPTION="Electronic Schematic and PCB design tools manuals" +HOMEPAGE="http://www.kicad-pcb.org" +SRC_URI="https://github.com/KiCad/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +FUSE="html pdf" +LANGS="en fr it ja nl pl" +LINGUAS="" +for lang in ${LANGS} ; do + LINGUAS="${LINGUAS} linguas_${lang}" +done +IUSE="${FUSE} ${LINGUAS}" + +REQUIRED_USE="( || ( pdf html ) ) ( ^^ ( ${LINGUAS} ) )" + +DEPEND=">=app-text/asciidoc-8.6.9 + app-text/dblatex + >=app-text/po4a-0.45 + >=sys-devel/gettext-0.18 + dev-util/source-highlight + dev-perl/Unicode-LineBreak + linguas_ja? ( media-fonts/vlgothic )" +RDEPEND="" + +src_prepare() { + DOCPATH="KICAD_DOC_INSTALL_PATH share/doc/kicad" + sed "s|${DOCPATH}|${DOCPATH}-${PV}|g" -i CMakeLists.txt || die "sed failed" +} + +src_configure() { + local formats="" + local doclang="" + + # construct format string + for format in ${FUSE}; do + use $format && formats+="${format};" + done + + # find out which language is requested + for lang in ${LANGS}; do + if use linguas_${lang}; then + doclang=${lang} + fi + done + + local mycmakeargs+=( + -DBUILD_FORMATS="${formats}" + -DSINGLE_LANGUAGE="${doclang}" + ) + cmake-utils_src_configure +}