diff options
author | Sebastien Fabbro <sfabbro@uvic.ca> | 2012-06-29 11:34:27 -0700 |
---|---|---|
committer | Sebastien Fabbro <sfabbro@uvic.ca> | 2012-06-29 11:34:27 -0700 |
commit | f6cb88cda736f558efb94fe9821cfffca8bcacc4 (patch) | |
tree | e9999de93dd431423415c75b86b50350c6f3f5af /dev-libs | |
parent | dev-python/bitarray: New package requested by jamasi on irc (diff) | |
download | sci-f6cb88cda736f558efb94fe9821cfffca8bcacc4.tar.gz sci-f6cb88cda736f558efb94fe9821cfffca8bcacc4.tar.bz2 sci-f6cb88cda736f558efb94fe9821cfffca8bcacc4.zip |
dev-libs/mathjax: Initial import
(Portage version: 2.2.01.20430-prefix/git/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/mathjax/ChangeLog | 10 | ||||
-rw-r--r-- | dev-libs/mathjax/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/mathjax/mathjax-2.0.ebuild | 50 | ||||
-rw-r--r-- | dev-libs/mathjax/metadata.xml | 17 |
4 files changed, 78 insertions, 0 deletions
diff --git a/dev-libs/mathjax/ChangeLog b/dev-libs/mathjax/ChangeLog new file mode 100644 index 000000000..ca20ec9ab --- /dev/null +++ b/dev-libs/mathjax/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-libs/mathjax +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*mathjax-2.0 (29 Jun 2012) + + 29 Jun 2012; Sebastien Fabbro <fabbros@gentoo.org> +mathjax-2.0.ebuild, + +metadata.xml: + dev-libs/mathjax: Initial import + diff --git a/dev-libs/mathjax/Manifest b/dev-libs/mathjax/Manifest new file mode 100644 index 000000000..f05d81e8b --- /dev/null +++ b/dev-libs/mathjax/Manifest @@ -0,0 +1 @@ +DIST mathjax-2.0.tar.gz 9456567 RMD160 ef3c40c5a11211488d7c93f4d258b7e07e418ac4 SHA1 d64e377da82c00c7bb4ee5be152875f4c1f0d9c9 SHA256 7cab646dfb9a60970a3b16809b5532cae5cc3155b504e52bbd8870d2dabfac87 SHA512 b74213eb9e84a970a4c7d90921a3eade259c3dcd7392e4bd2cfa95951c82c4c9a51ad629492ea5db1c7fbc7adb4065ff51d5fa3294ec8411b68eeff0a13da8cf WHIRLPOOL c21be9cb8556fffd327ea78e9018c7326f0fe13f74994a15fd3f51213199a879459f6a02ac8d4c668d441abc63c8c5902835cce2f0d0d5b6d6cc71abad100ee9 diff --git a/dev-libs/mathjax/mathjax-2.0.ebuild b/dev-libs/mathjax/mathjax-2.0.ebuild new file mode 100644 index 000000000..14e5e5afd --- /dev/null +++ b/dev-libs/mathjax/mathjax-2.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +DESCRIPTION="JavaScript display engine for LaTeX, MathML and AsciiMath" +HOMEPAGE="http://www.mathjax.org/" +SRC_URI="https://github.com/mathjax/MathJax/tarball/v${PV} -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples" + +DEPEND="" +RDEPEND="" + +src_unpack() { + unpack ${A} && mv ${PN}-MathJax-* ${P} +} + +src_install() { + find . -name .gitignore -delete + dodoc README* + use doc && dohtml -r docs/html/* + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins -r test/* + fi + rm -rf test docs LICENSE README* + #local installdir=/var/www/${PN} + local installdir=/usr/share/${PN} + insinto ${installdir} + doins -r * + # web server config file - should we really do this? + cat > MathJax.conf <<-EOF + Alias /MathJax/ ${EPREFIX}${installdir}/ + Alias /mathjax/ ${EPREFIX}${installdir}/ + + <Directory ${EPREFIX}${installdir}> + Options None + AllowOverride None + Order allow,deny + Allow from all + </Directory> + EOF + insinto /etc/httpd/conf.d + doins MathJax.conf +} diff --git a/dev-libs/mathjax/metadata.xml b/dev-libs/mathjax/metadata.xml new file mode 100644 index 000000000..0544fc366 --- /dev/null +++ b/dev-libs/mathjax/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<longdescription lang='en'> + MathJax is an open-source JavaScript display engine for LaTeX and + MathML that works in all modern browsers. It was designed with the + goal of consolidating the recent advances in web technologies into a + single, definitive, math-on-the-web platform supporting the major + browsers and operating systems. It requires no setup on the part of + the user (no plugins to downlaod or software to install), so the + page author can write web documents that include mathematics and be + confident that users will be able to view it naturally and + easily. One simply includes MathJax and some mathematics in a web + page, and MathJax does the rest. +</longdescription> +</pkgmetadata> |