Gentoo Archives: gentoo-commits

From: Ian Delaney <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-doc/kicad-doc/
Date: Fri, 27 Nov 2015 03:59:43
Message-Id: 1448596762.071b2cd2960c482bfcb7f5463591778f36272945.idella4@gentoo
1 commit: 071b2cd2960c482bfcb7f5463591778f36272945
2 Author: Zoltan Puskas <zoltan <AT> sinustrom <DOT> info>
3 AuthorDate: Thu Nov 26 03:35:10 2015 +0000
4 Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 27 03:59:22 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=071b2cd2
7
8 app-doc/kicad-doc-4.0.0-rc1: New KiCad documentation ebuild
9
10 KiCad extended documentation for 4.0.0-rc1, amending help
11 with more details and tutorials. Upstream split the docs
12 off the main source into a separate package.
13
14 Gentoo-Bug: #564704
15
16 app-doc/kicad-doc/Manifest | 1 +
17 app-doc/kicad-doc/kicad-doc-4.0.0_rc1.ebuild | 62 ++++++++++++++++++++++++++++
18 app-doc/kicad-doc/metadata.xml | 22 ++++++++++
19 3 files changed, 85 insertions(+)
20
21 diff --git a/app-doc/kicad-doc/Manifest b/app-doc/kicad-doc/Manifest
22 new file mode 100644
23 index 0000000..8d8ba82
24 --- /dev/null
25 +++ b/app-doc/kicad-doc/Manifest
26 @@ -0,0 +1 @@
27 +DIST kicad-doc-4.0.0_rc1.tar.gz 35078269 SHA256 3e26397455f36ff902f3c93d32b4c0063f44069e88a0d477475bb0b1dbf75140 SHA512 77c5ae067ec480ae0bec4fe8b6de53d05e675ba29695b5de2b39d9019262cd2b376123e8f978db5d362b157b8dd6fba8ecf1604262d0ae31ee5a37de5538dff7 WHIRLPOOL 9afebc3419a69d57377ec10c44d5a4346bd6ccb75c50795809205e9490f35fdd7d0046a37319d49a99766aecec53c8b0287d1beca4788310a957bf854f58e641
28
29 diff --git a/app-doc/kicad-doc/kicad-doc-4.0.0_rc1.ebuild b/app-doc/kicad-doc/kicad-doc-4.0.0_rc1.ebuild
30 new file mode 100644
31 index 0000000..98fd3ce
32 --- /dev/null
33 +++ b/app-doc/kicad-doc/kicad-doc-4.0.0_rc1.ebuild
34 @@ -0,0 +1,62 @@
35 +# Copyright 1999-2015 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Id$
38 +
39 +EAPI=5
40 +
41 +inherit cmake-utils vcs-snapshot
42 +
43 +# As per KiCad site the version of docs they will bundle with 4.0.0 final
44 +# is the state of the docs at the release date. Thus I will follow the same
45 +# logic when picking revisions for KiCad-4.0.0 RCs
46 +DOC_REVISION="b5e8a2efb9015b420bd83541d4b580ce2f7a89e6"
47 +
48 +DESCRIPTION="Electronic Schematic and PCB design tools manuals."
49 +HOMEPAGE="http://www.kicad-pcb.org"
50 +SRC_URI="https://github.com/KiCad/${PN}/tarball/${DOC_REVISION} -> ${P}.tar.gz"
51 +
52 +LICENSE="GPL-2"
53 +SLOT="0"
54 +KEYWORDS="~amd64"
55 +FUSE="html pdf"
56 +LANGS="en fr it ja nl pl"
57 +LINGUAS=""
58 +for lang in ${LANGS} ; do
59 + LINGUAS="${LINGUAS} linguas_${lang}"
60 +done
61 +IUSE="${FUSE} ${LINGUAS}"
62 +
63 +REQUIRED_USE="( || ( pdf html ) ) ( ^^ ( ${LINGUAS} ) )"
64 +
65 +DEPEND=">=app-text/asciidoc-8.6.9
66 + app-text/dblatex
67 + >=app-text/po4a-0.45
68 + >=sys-devel/gettext-0.18
69 + dev-util/source-highlight
70 + dev-perl/Unicode-LineBreak
71 + linguas_ja? ( media-fonts/vlgothic )"
72 +RDEPEND=""
73 +
74 +src_configure() {
75 + local formats=""
76 + local doclang=""
77 +
78 + # construct format string
79 + for format in ${FUSE}; do
80 + use $format && formats+="${format};"
81 + done
82 +
83 + # find out which language is requested
84 + for lang in ${LANGS}; do
85 + if use linguas_${lang}; then
86 + doclang=${lang}
87 + fi
88 + done
89 +
90 + local mycmakeargs+=(
91 + -DBUILD_FORMATS="${formats}"
92 + -DSINGLE_LANGUAGE="${doclang}"
93 + -DCMAKE_INSTALL_PREFIX="/usr/share/doc/${PF}"
94 + )
95 + cmake-utils_src_configure
96 +}
97
98 diff --git a/app-doc/kicad-doc/metadata.xml b/app-doc/kicad-doc/metadata.xml
99 new file mode 100644
100 index 0000000..eab80cf
101 --- /dev/null
102 +++ b/app-doc/kicad-doc/metadata.xml
103 @@ -0,0 +1,22 @@
104 +<?xml version='1.0' encoding='UTF-8'?>
105 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
106 +<pkgmetadata>
107 + <herd>proxy-maintainers</herd>
108 + <maintainer>
109 + <email>zoltan@×××××××××.info</email>
110 + <name>Zoltan Puskas</name>
111 + <description>Proxied maintainer. Assign bugs to him.</description>
112 + </maintainer>
113 + <use>
114 + <flag name="html">Generate documentation in HTML format</flag>
115 + <flag name="pdf">Generate documentation in PDF format</flag>
116 + </use>
117 + <longdescription>
118 + Kicad-doc is the extended manuals and documenation for Kicad. Kicad is
119 + an open source (GPL) software for the creation of electronic schematic
120 + diagrams and printed circuit board artwork.
121 + </longdescription>
122 + <upstream>
123 + <remote-id type="github">KiCad/kicad-doc</remote-id>
124 + </upstream>
125 +</pkgmetadata>