| 1 | <?xml version="1.0" encoding="UTF-8"?> |
1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/xml-guide.xml,v 1.68 2008/03/09 13:13:15 neysx Exp $ --> |
2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/xml-guide.xml,v 1.69 2009/02/28 01:34:20 nightmorph Exp $ --> |
| 3 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
3 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
| 4 | |
4 | |
| 5 | <guide> |
5 | <guide> |
| 6 | <title>Gentoo GuideXML Guide</title> |
6 | <title>Gentoo GuideXML Guide</title> |
| 7 | |
7 | |
| … | |
… | |
| 18 | <mail link="peesh@gentoo.org">Jorge Paulo</mail> |
18 | <mail link="peesh@gentoo.org">Jorge Paulo</mail> |
| 19 | </author> |
19 | </author> |
| 20 | <author title="Editor"> |
20 | <author title="Editor"> |
| 21 | <mail link="swift@gentoo.org">Sven Vermeulen</mail> |
21 | <mail link="swift@gentoo.org">Sven Vermeulen</mail> |
| 22 | </author> |
22 | </author> |
|
|
23 | <author title="Editor"> |
|
|
24 | <mail link="nightmorph"/> |
|
|
25 | </author> |
| 23 | |
26 | |
| 24 | <abstract> |
27 | <abstract> |
| 25 | This guide shows you how to compose web documentation using the new lightweight |
28 | This guide shows you how to compose web documentation using the new lightweight |
| 26 | Gentoo GuideXML syntax. This syntax is the official format for Gentoo |
29 | Gentoo GuideXML syntax. This syntax is the official format for Gentoo |
| 27 | documentation, and this document itself was created using GuideXML. This guide |
30 | documentation, and this document itself was created using GuideXML. This guide |
| … | |
… | |
| 30 | |
33 | |
| 31 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
34 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
| 32 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
35 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
| 33 | <license/> |
36 | <license/> |
| 34 | |
37 | |
| 35 | <version>9</version> |
38 | <version>10</version> |
| 36 | <date>2008-03-09</date> |
39 | <date>2009-02-27</date> |
| 37 | |
40 | |
| 38 | <chapter> |
41 | <chapter> |
| 39 | <title>GuideXML basics</title> |
42 | <title>GuideXML basics</title> |
| 40 | <section> |
43 | <section> |
| 41 | <title>GuideXML design goals</title> |
44 | <title>GuideXML design goals</title> |
| … | |
… | |
| 445 | <p> |
448 | <p> |
| 446 | Sample colour-coded <c><pre></c> block: |
449 | Sample colour-coded <c><pre></c> block: |
| 447 | </p> |
450 | </p> |
| 448 | |
451 | |
| 449 | <pre caption="My first ebuild"> |
452 | <pre caption="My first ebuild"> |
| 450 | <comment># Copyright 1999-2006 <b>Gentoo Foundation</b> |
453 | <comment># Copyright 1999-2009 <b>Gentoo Foundation</b> |
| 451 | # Distributed under the terms of the GNU General Public License v2 |
454 | # Distributed under the terms of the GNU General Public License v2 |
| 452 | # $Header: $</comment> |
455 | # $Header: $</comment> |
| 453 | |
456 | |
| 454 | <ident>DESCRIPTION</ident>=<const>"Exuberant ctags generates tags files for quick source navigation"</const> |
457 | <ident>DESCRIPTION</ident>=<const>"Exuberant ctags generates tags files for quick source navigation"</const> |
| 455 | <ident>HOMEPAGE</ident>=<const>"http://ctags.sourceforge.net"</const> |
458 | <ident>HOMEPAGE</ident>=<const>"http://ctags.sourceforge.net"</const> |
| … | |
… | |
| 459 | <ident>SLOT</ident>=<const>"0"</const> |
462 | <ident>SLOT</ident>=<const>"0"</const> |
| 460 | <ident>KEYWORDS</ident>=<const>"~mips ~sparc ~x86"</const> |
463 | <ident>KEYWORDS</ident>=<const>"~mips ~sparc ~x86"</const> |
| 461 | <ident>IUSE</ident>=<const>""</const> |
464 | <ident>IUSE</ident>=<const>""</const> |
| 462 | |
465 | |
| 463 | <stmt>src_compile()</stmt> { |
466 | <stmt>src_compile()</stmt> { |
| 464 | <keyword>econf</keyword> --with-posix-regex || <keyword>die</keyword> <const>"econf failed"</const> |
467 | <keyword>econf</keyword> --with-posix-regex |
| 465 | <keyword>emake</keyword> || <keyword>die</keyword> <const>"emake failed"</const> |
468 | <keyword>emake</keyword> || <keyword>die</keyword> <const>"emake failed"</const> |
| 466 | } |
469 | } |
| 467 | |
470 | |
| 468 | <stmt>src_install()</stmt> { |
471 | <stmt>src_install()</stmt> { |
| 469 | <keyword>make</keyword> <ident>DESTDIR</ident>="<var>${D}</var>" install || <keyword>die</keyword> <const>"install failed"</const> |
472 | <keyword>make</keyword> <ident>DESTDIR</ident>="<var>${D}</var>" install || <keyword>die</keyword> <const>"install failed"</const> |