summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Puskas <zoltan@sinustrom.info>2015-12-06 18:24:13 +0000
committerIan Delaney <idella4@gentoo.org>2015-12-09 14:39:57 +0800
commitc7300b904602811f1e8d6122b61c98d1c53384fc (patch)
tree23977abcbcc3b496709c7af4d8bda51c72341a61 /app-doc
parentdev-ruby/best_in_place: add 3.1.0 (diff)
downloadgentoo-c7300b904602811f1e8d6122b61c98d1c53384fc.tar.gz
gentoo-c7300b904602811f1e8d6122b61c98d1c53384fc.tar.bz2
gentoo-c7300b904602811f1e8d6122b61c98d1c53384fc.zip
app-doc/kicad-doc: Bump to stable release 4.0.0 version
Diffstat (limited to 'app-doc')
-rw-r--r--app-doc/kicad-doc/Manifest1
-rw-r--r--app-doc/kicad-doc/kicad-doc-4.0.0.ebuild61
2 files changed, 62 insertions, 0 deletions
diff --git a/app-doc/kicad-doc/Manifest b/app-doc/kicad-doc/Manifest
index 0c19830e039a..c87120c87eec 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.0_rc1.tar.gz 35078269 SHA256 3e26397455f36ff902f3c93d32b4c0063f44069e88a0d477475bb0b1dbf75140 SHA512 77c5ae067ec480ae0bec4fe8b6de53d05e675ba29695b5de2b39d9019262cd2b376123e8f978db5d362b157b8dd6fba8ecf1604262d0ae31ee5a37de5538dff7 WHIRLPOOL 9afebc3419a69d57377ec10c44d5a4346bd6ccb75c50795809205e9490f35fdd7d0046a37319d49a99766aecec53c8b0287d1beca4788310a957bf854f58e641
DIST kicad-doc-4.0.0_rc2.tar.gz 23393365 SHA256 fc86546a370c43f0f00b78ea32276defed68fded1d56069bc82ef6d44f359099 SHA512 a0bf17e833e91e334530f7e19a2450fbecfef5640060b463b6351cf7dc7ab25bdd7575dd12150dc17cea9a2c5890ac29e88bad851d15840f47143e6de6eac318 WHIRLPOOL 2fbf65bab1a19da9be0fa6dce80c027795515bc4e196960ed8edbcd9fad0120a350ffcb712bc4469d16a5cef8b1a6dd470dd7e31f7fd7f2c7d73c436bf1e46bf
diff --git a/app-doc/kicad-doc/kicad-doc-4.0.0.ebuild b/app-doc/kicad-doc/kicad-doc-4.0.0.ebuild
new file mode 100644
index 000000000000..4f755f34733d
--- /dev/null
+++ b/app-doc/kicad-doc/kicad-doc-4.0.0.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
+}