summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-06-13 12:25:05 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-06-13 12:25:05 +0000
commitcddde67a871506fd9ee73555c851156a01c89f2c (patch)
tree875393f03a6eb049537810d7ff21fb3855a47008 /dev-libs/mathjax
parentDepend on SLOT=0 of media-libs/openjpeg (bug 440086) (diff)
downloadgentoo-2-cddde67a871506fd9ee73555c851156a01c89f2c.tar.gz
gentoo-2-cddde67a871506fd9ee73555c851156a01c89f2c.tar.bz2
gentoo-2-cddde67a871506fd9ee73555c851156a01c89f2c.zip
version bump wrt #473152
(Portage version: 2.2.0_alpha179/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'dev-libs/mathjax')
-rw-r--r--dev-libs/mathjax/ChangeLog7
-rw-r--r--dev-libs/mathjax/mathjax-2.2.ebuild55
2 files changed, 61 insertions, 1 deletions
diff --git a/dev-libs/mathjax/ChangeLog b/dev-libs/mathjax/ChangeLog
index 439ac800ed47..5bb7f16fa711 100644
--- a/dev-libs/mathjax/ChangeLog
+++ b/dev-libs/mathjax/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-libs/mathjax
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/mathjax/ChangeLog,v 1.3 2013/02/21 21:20:59 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/mathjax/ChangeLog,v 1.4 2013/06/13 12:25:05 hasufell Exp $
+
+*mathjax-2.2 (13 Jun 2013)
+
+ 13 Jun 2013; Julian Ospald <hasufell@gentoo.org> +mathjax-2.2.ebuild:
+ version bump wrt #473152
17 Feb 2013; Julian Ospald <hasufell@gentoo.org> metadata.xml:
set correct maintainer
diff --git a/dev-libs/mathjax/mathjax-2.2.ebuild b/dev-libs/mathjax/mathjax-2.2.ebuild
new file mode 100644
index 000000000000..133fb2214e04
--- /dev/null
+++ b/dev-libs/mathjax/mathjax-2.2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/mathjax/mathjax-2.2.ebuild,v 1.1 2013/06/13 12:25:05 hasufell Exp $
+
+EAPI=5
+
+DESCRIPTION="JavaScript display engine for LaTeX, MathML and AsciiMath"
+HOMEPAGE="http://www.mathjax.org/"
+SRC_URI="https://github.com/mathjax/MathJax/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples"
+
+RESTRICT="binchecks"
+
+S=${WORKDIR}/MathJax-${PV}
+
+make_webconf() {
+ # web server config file - should we really do this?
+ cat > $1 <<-EOF
+ Alias /MathJax/ ${EPREFIX}${webinstalldir}/
+ Alias /mathjax/ ${EPREFIX}${webinstalldir}/
+
+ <Directory ${EPREFIX}${webinstalldir}>
+ Options None
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+ </Directory>
+ EOF
+}
+
+src_prepare() {
+ find . -name .gitignore -delete || die
+}
+
+src_install() {
+ 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* || die
+
+ webinstalldir=/usr/share/${PN}
+ insinto ${webinstalldir}
+ doins -r *
+
+ make_webconf MathJax.conf
+ insinto /etc/httpd/conf.d
+ doins MathJax.conf
+}