From: | "Sebastian Pipping (sping)" <sping@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-text/wiki2beamer: metadata.xml ChangeLog wiki2beamer-0.9.2-r2.ebuild |
Date: | Mon, 31 Jan 2011 12:19:31 |
Message-Id: | 20110131121920.8D93120054@flycatcher.gentoo.org |
1 | sping 11/01/31 12:19:20 |
2 | |
3 | Added: metadata.xml ChangeLog wiki2beamer-0.9.2-r2.ebuild |
4 | Log: |
5 | app-text/wiki2beamer: New package |
6 | |
7 | (Portage version: 2.1.9.35/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 app-text/wiki2beamer/metadata.xml |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/wiki2beamer/metadata.xml?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/wiki2beamer/metadata.xml?rev=1.1&content-type=text/plain |
14 | |
15 | Index: metadata.xml |
16 | =================================================================== |
17 | <?xml version="1.0" encoding="UTF-8"?> |
18 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 | <pkgmetadata> |
20 | <herd>no-herd</herd> |
21 | <maintainer> |
22 | <email>sping@g.o</email> |
23 | <name>Sebastian Pipping</name> |
24 | </maintainer> |
25 | </pkgmetadata> |
26 | |
27 | |
28 | |
29 | 1.1 app-text/wiki2beamer/ChangeLog |
30 | |
31 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/wiki2beamer/ChangeLog?rev=1.1&view=markup |
32 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/wiki2beamer/ChangeLog?rev=1.1&content-type=text/plain |
33 | |
34 | Index: ChangeLog |
35 | =================================================================== |
36 | # ChangeLog for app-text/wiki2beamer |
37 | # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
38 | # $Header: /var/cvsroot/gentoo-x86/app-text/wiki2beamer/ChangeLog,v 1.1 2011/01/31 12:19:20 sping Exp $ |
39 | |
40 | *wiki2beamer-0.9.2-r2 (31 Jan 2011) |
41 | |
42 | 31 Jan 2011; Sebastian Pipping <sping@g.o> |
43 | +wiki2beamer-0.9.2-r2.ebuild, +metadata.xml: |
44 | New package, collaboration with Dustin Polke. |
45 | |
46 | |
47 | |
48 | |
49 | 1.1 app-text/wiki2beamer/wiki2beamer-0.9.2-r2.ebuild |
50 | |
51 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/wiki2beamer/wiki2beamer-0.9.2-r2.ebuild?rev=1.1&view=markup |
52 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/wiki2beamer/wiki2beamer-0.9.2-r2.ebuild?rev=1.1&content-type=text/plain |
53 | |
54 | Index: wiki2beamer-0.9.2-r2.ebuild |
55 | =================================================================== |
56 | # Copyright 1999-2011 Gentoo Foundation |
57 | # Distributed under the terms of the GNU General Public License v2 |
58 | # $Header: /var/cvsroot/gentoo-x86/app-text/wiki2beamer/wiki2beamer-0.9.2-r2.ebuild,v 1.1 2011/01/31 12:19:20 sping Exp $ |
59 | |
60 | EAPI="3" |
61 | PYTHON_DEPEND="2" |
62 | SUPPORT_PYTHON_ABIS="1" |
63 | RESTRICT_PYTHON_ABIS="3.*" |
64 | |
65 | inherit python |
66 | |
67 | DESCRIPTION="Tool to produce LaTeX Beamer code from wiki-like input." |
68 | |
69 | HOMEPAGE="http://wiki2beamer.sourceforge.net/" |
70 | SRC_URI="mirror://sourceforge/${PN}/${P}.zip" |
71 | |
72 | LICENSE="|| ( GPL-2 GPL-3 ) FDL-1.3" |
73 | SLOT="0" |
74 | KEYWORDS="~amd64 ~x86" |
75 | IUSE="+examples" |
76 | |
77 | DEPEND="" |
78 | RDEPEND="" |
79 | |
80 | src_install() { |
81 | if use examples; then |
82 | # Patch example Makefile |
83 | sed -e 's|../../code/wiki2beamer|wiki2beamer|' \ |
84 | -i doc/example/Makefile \ |
85 | || die |
86 | |
87 | insinto /usr/share/doc/${PF}/example |
88 | doins doc/example/* || die |
89 | fi |
90 | |
91 | doman doc/man/${PN}.1 || die |
92 | dodoc ChangeLog README || die |
93 | |
94 | per_abi_install() { |
95 | local MAIN_DIR="$(python_get_sitedir)"/${PN} |
96 | insinto "${MAIN_DIR}" |
97 | newins code/${PN} ${PN}.py || die |
98 | |
99 | fperms 755 "${MAIN_DIR}"/${PN}.py || die |
100 | dosym "${MAIN_DIR}"/${PN}.py /usr/bin/${PN}-${PYTHON_ABI} || die |
101 | } |
102 | python_execute_function per_abi_install |
103 | |
104 | python_generate_wrapper_scripts "${ED}usr/bin/${PN}" |
105 | } |
106 | |
107 | pkg_postinst() { |
108 | python_mod_optimize ${PN} |
109 | } |
110 | |
111 | pkg_postrm() { |
112 | python_mod_cleanup ${PN} |
113 | } |