1 |
commit: f6cb88cda736f558efb94fe9821cfffca8bcacc4 |
2 |
Author: Sebastien Fabbro <sfabbro <AT> uvic <DOT> ca> |
3 |
AuthorDate: Fri Jun 29 18:34:27 2012 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 29 18:34:27 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=f6cb88cd |
7 |
|
8 |
dev-libs/mathjax: Initial import |
9 |
|
10 |
(Portage version: 2.2.01.20430-prefix/git/Linux x86_64, unsigned Manifest commit) |
11 |
|
12 |
--- |
13 |
dev-libs/mathjax/ChangeLog | 10 +++++++ |
14 |
dev-libs/mathjax/mathjax-2.0.ebuild | 50 +++++++++++++++++++++++++++++++++++ |
15 |
dev-libs/mathjax/metadata.xml | 17 ++++++++++++ |
16 |
3 files changed, 77 insertions(+), 0 deletions(-) |
17 |
|
18 |
diff --git a/dev-libs/mathjax/ChangeLog b/dev-libs/mathjax/ChangeLog |
19 |
new file mode 100644 |
20 |
index 0000000..ca20ec9 |
21 |
--- /dev/null |
22 |
+++ b/dev-libs/mathjax/ChangeLog |
23 |
@@ -0,0 +1,10 @@ |
24 |
+# ChangeLog for dev-libs/mathjax |
25 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
26 |
+# $Header: $ |
27 |
+ |
28 |
+*mathjax-2.0 (29 Jun 2012) |
29 |
+ |
30 |
+ 29 Jun 2012; Sebastien Fabbro <fabbros@g.o> +mathjax-2.0.ebuild, |
31 |
+ +metadata.xml: |
32 |
+ dev-libs/mathjax: Initial import |
33 |
+ |
34 |
|
35 |
diff --git a/dev-libs/mathjax/mathjax-2.0.ebuild b/dev-libs/mathjax/mathjax-2.0.ebuild |
36 |
new file mode 100644 |
37 |
index 0000000..14e5e5a |
38 |
--- /dev/null |
39 |
+++ b/dev-libs/mathjax/mathjax-2.0.ebuild |
40 |
@@ -0,0 +1,50 @@ |
41 |
+# Copyright 1999-2012 Gentoo Foundation |
42 |
+# Distributed under the terms of the GNU General Public License v2 |
43 |
+# $Header: $ |
44 |
+ |
45 |
+EAPI=4 |
46 |
+ |
47 |
+DESCRIPTION="JavaScript display engine for LaTeX, MathML and AsciiMath" |
48 |
+HOMEPAGE="http://www.mathjax.org/" |
49 |
+SRC_URI="https://github.com/mathjax/MathJax/tarball/v${PV} -> ${P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="Apache-2.0" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
54 |
+IUSE="doc examples" |
55 |
+ |
56 |
+DEPEND="" |
57 |
+RDEPEND="" |
58 |
+ |
59 |
+src_unpack() { |
60 |
+ unpack ${A} && mv ${PN}-MathJax-* ${P} |
61 |
+} |
62 |
+ |
63 |
+src_install() { |
64 |
+ find . -name .gitignore -delete |
65 |
+ dodoc README* |
66 |
+ use doc && dohtml -r docs/html/* |
67 |
+ if use examples; then |
68 |
+ insinto /usr/share/doc/${PF}/examples |
69 |
+ doins -r test/* |
70 |
+ fi |
71 |
+ rm -rf test docs LICENSE README* |
72 |
+ #local installdir=/var/www/${PN} |
73 |
+ local installdir=/usr/share/${PN} |
74 |
+ insinto ${installdir} |
75 |
+ doins -r * |
76 |
+ # web server config file - should we really do this? |
77 |
+ cat > MathJax.conf <<-EOF |
78 |
+ Alias /MathJax/ ${EPREFIX}${installdir}/ |
79 |
+ Alias /mathjax/ ${EPREFIX}${installdir}/ |
80 |
+ |
81 |
+ <Directory ${EPREFIX}${installdir}> |
82 |
+ Options None |
83 |
+ AllowOverride None |
84 |
+ Order allow,deny |
85 |
+ Allow from all |
86 |
+ </Directory> |
87 |
+ EOF |
88 |
+ insinto /etc/httpd/conf.d |
89 |
+ doins MathJax.conf |
90 |
+} |
91 |
|
92 |
diff --git a/dev-libs/mathjax/metadata.xml b/dev-libs/mathjax/metadata.xml |
93 |
new file mode 100644 |
94 |
index 0000000..0544fc3 |
95 |
--- /dev/null |
96 |
+++ b/dev-libs/mathjax/metadata.xml |
97 |
@@ -0,0 +1,17 @@ |
98 |
+<?xml version="1.0" encoding="UTF-8"?> |
99 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
100 |
+<pkgmetadata> |
101 |
+<herd>sci</herd> |
102 |
+<longdescription lang='en'> |
103 |
+ MathJax is an open-source JavaScript display engine for LaTeX and |
104 |
+ MathML that works in all modern browsers. It was designed with the |
105 |
+ goal of consolidating the recent advances in web technologies into a |
106 |
+ single, definitive, math-on-the-web platform supporting the major |
107 |
+ browsers and operating systems. It requires no setup on the part of |
108 |
+ the user (no plugins to downlaod or software to install), so the |
109 |
+ page author can write web documents that include mathematics and be |
110 |
+ confident that users will be able to view it naturally and |
111 |
+ easily. One simply includes MathJax and some mathematics in a web |
112 |
+ page, and MathJax does the rest. |
113 |
+</longdescription> |
114 |
+</pkgmetadata> |