summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Puskas <zoltan@sinustrom.info>2015-11-30 02:34:11 +0000
committerZoltan Puskas <zoltan@sinustrom.info>2015-11-30 03:29:52 +0000
commit4a52be853a24b4359b0859c4f9e75d2376c13a15 (patch)
treecfafe3c1756085f0cf021dffcf1dd99ded20cf6b /app-doc
parentsys-kernel/hardened-sources: version bump to 4.2.6-r7 (diff)
downloadgentoo-4a52be853a24b4359b0859c4f9e75d2376c13a15.tar.gz
gentoo-4a52be853a24b4359b0859c4f9e75d2376c13a15.tar.bz2
gentoo-4a52be853a24b4359b0859c4f9e75d2376c13a15.zip
app-doc/kicad-doc: Bump to revision 4.0.0-rc2
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_rc2.ebuild65
2 files changed, 66 insertions, 0 deletions
diff --git a/app-doc/kicad-doc/Manifest b/app-doc/kicad-doc/Manifest
index 8d8ba826abe2..0c19830e039a 100644
--- a/app-doc/kicad-doc/Manifest
+++ b/app-doc/kicad-doc/Manifest
@@ -1 +1,2 @@
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_rc2.ebuild b/app-doc/kicad-doc/kicad-doc-4.0.0_rc2.ebuild
new file mode 100644
index 000000000000..68ff55962aa4
--- /dev/null
+++ b/app-doc/kicad-doc/kicad-doc-4.0.0_rc2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils vcs-snapshot
+
+# As per KiCad site the version of docs they will bundle with 4.0.0 final
+# is the state of the docs at the release date. Thus I will follow the same
+# logic when picking revisions for KiCad-4.0.0 RCs
+DOC_REVISION="ccf13bf7a9954c84544a9536e82bf7e38e0c489d"
+
+DESCRIPTION="Electronic Schematic and PCB design tools manuals."
+HOMEPAGE="http://www.kicad-pcb.org"
+SRC_URI="https://github.com/KiCad/${PN}/tarball/${DOC_REVISION} -> ${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() {
+ sed "s|KICAD_DOC_INSTALL_PATH share/doc/kicad|KICAD_DOC_INSTALL_PATH share/doc/kicad-${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
+}