summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2019-07-07 23:04:11 +0200
committerSebastian Pipping <sping@gentoo.org>2019-07-07 23:06:15 +0200
commit815ec15d3681ffc60008f889f543cda282639df8 (patch)
tree229098f2fb6a9c2960ab9f893ac0e0ee367591c8 /app-text/wiki2beamer
parentwww-apps/moodle: version bump to 3.5.7, 3.6.5, 3.7.1 (diff)
downloadgentoo-815ec15d3681ffc60008f889f543cda282639df8.tar.gz
gentoo-815ec15d3681ffc60008f889f543cda282639df8.tar.bz2
gentoo-815ec15d3681ffc60008f889f543cda282639df8.zip
app-text/wiki2beamer: 0.10.0 + EAPI 7
Signed-off-by: Sebastian Pipping <sping@gentoo.org> Package-Manager: Portage-2.3.68, Repoman-2.3.16
Diffstat (limited to 'app-text/wiki2beamer')
-rw-r--r--app-text/wiki2beamer/Manifest1
-rw-r--r--app-text/wiki2beamer/files/wiki2beamer-0.10.0-doc-examples-makefile.patch25
-rw-r--r--app-text/wiki2beamer/files/wiki2beamer-0.10.0-doc-man-makefile.patch58
-rw-r--r--app-text/wiki2beamer/wiki2beamer-0.10.0.ebuild45
4 files changed, 129 insertions, 0 deletions
diff --git a/app-text/wiki2beamer/Manifest b/app-text/wiki2beamer/Manifest
index dd8538b53c56..6c5bb28f704b 100644
--- a/app-text/wiki2beamer/Manifest
+++ b/app-text/wiki2beamer/Manifest
@@ -1 +1,2 @@
DIST wiki2beamer-0.9.5.zip 443288 BLAKE2B a0263ba7044966ff45c892e9f0f78f6916346c051bf57cc8445f4127019cc4cd031719b1b5b61fc7d41a85b42439fa20cdf8fc35fbed43feb28d6d9797c781c7 SHA512 0cad0458c293c335cfb0b2181822652b12662877a2ed66d743e5f258d9983ee91fb34664c032357995606bcf17bebbb7409b6100ba2340b06cc6f253e8c6b0f7
+DIST wiki2beamer-v0.10.0.tar.gz 164911 BLAKE2B 0a532669915f0db5f1bb8755297bcd36e4175bc57d3b5f14df01566ac74e425c999447ff3f2bd20f2bcd50671bd65accfcf8049476a1656439fc46bab2becafd SHA512 712c719bcdd97f48c65aff1919f2e6a838a0beba1d2e5569063fd1f84bf68eda3137ac20e5dc463dff64c8b4656ce0bf02a0acea090b9a30262374cbee5db433
diff --git a/app-text/wiki2beamer/files/wiki2beamer-0.10.0-doc-examples-makefile.patch b/app-text/wiki2beamer/files/wiki2beamer-0.10.0-doc-examples-makefile.patch
new file mode 100644
index 000000000000..b444a0382e99
--- /dev/null
+++ b/app-text/wiki2beamer/files/wiki2beamer-0.10.0-doc-examples-makefile.patch
@@ -0,0 +1,25 @@
+From 9b54418338adec929cdbdbd1b35e542fb6587fa4 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sun, 7 Jul 2019 22:55:53 +0200
+Subject: doc/examples/Makefile: Use system-wide wiki2beamer
+
+---
+ doc/examples/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/doc/examples/Makefile b/doc/examples/Makefile
+index e99253b..aeeb11e 100644
+--- a/doc/examples/Makefile
++++ b/doc/examples/Makefile
+@@ -9,7 +9,7 @@ all: $(patsubst %.wiki, %.pdf, $(WIKIFILES))
+
+ %.tex: %.wiki
+ @echo "Translating $<"
+- @python ../../code/wiki2beamer $< > $@
++ @wiki2beamer $< > $@
+
+
+ %.pdf: %.tex
+--
+2.21.0
+
diff --git a/app-text/wiki2beamer/files/wiki2beamer-0.10.0-doc-man-makefile.patch b/app-text/wiki2beamer/files/wiki2beamer-0.10.0-doc-man-makefile.patch
new file mode 100644
index 000000000000..42a406c791b5
--- /dev/null
+++ b/app-text/wiki2beamer/files/wiki2beamer-0.10.0-doc-man-makefile.patch
@@ -0,0 +1,58 @@
+From a78d36408bd88834fb2929423ee9f626c1dee428 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sun, 7 Jul 2019 22:52:04 +0200
+Subject: doc/man/Makefile: Miscellaneous fixes
+
+- Fix dependencies
+- Add .PHONY markers
+- No longer call man(1) on "make html"
+- Make "make clean" robust to errors
+---
+ doc/man/Makefile | 28 ++++++++++++++++++----------
+ 1 file changed, 18 insertions(+), 10 deletions(-)
+
+diff --git a/doc/man/Makefile b/doc/man/Makefile
+index 8b3edc5..d545ef7 100644
+--- a/doc/man/Makefile
++++ b/doc/man/Makefile
+@@ -1,19 +1,27 @@
++.PHONY: all
+ all: man html
+
+ man1:
+ mkdir man1
+
+-man: wiki2beamer.xml man1
+- @asciidoctor -b manpage -d manpage wiki2beamer.adoc
+- @bzip2 --keep --stdout wiki2beamer.1 > man1/wiki2beamer.1.bz2
+- @man -D -M '.' wiki2beamer
++wiki2beamer.1: wiki2beamer.adoc
++ asciidoctor -b manpage -d manpage wiki2beamer.adoc
+
+-html: wiki2beamer.xml wiki2beamer.1
++man1/wiki2beamer.1.bz2: wiki2beamer.1 | man1
++ bzip2 --keep --stdout wiki2beamer.1 > man1/wiki2beamer.1.bz2
++
++wiki2beamer.html: wiki2beamer.adoc
+ asciidoctor -b html5 -d manpage wiki2beamer.adoc
+
+-clean:
+- rm wiki2beamer.1
+- rm wiki2beamer.html
+- rm man1/wiki2beamer.1.bz2
+- rmdir man1/
++.PHONY: man
++man: man1/wiki2beamer.1.bz2
+
++.PHONY: html
++html: wiki2beamer.html
++
++.PHONY: clean
++clean:
++ rm -f wiki2beamer.1
++ rm -f wiki2beamer.html
++ rm -f man1/wiki2beamer.1.bz2
++ [ ! -d man1 ] || rmdir man1
+--
+2.21.0
+
diff --git a/app-text/wiki2beamer/wiki2beamer-0.10.0.ebuild b/app-text/wiki2beamer/wiki2beamer-0.10.0.ebuild
new file mode 100644
index 000000000000..55432327183f
--- /dev/null
+++ b/app-text/wiki2beamer/wiki2beamer-0.10.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
+
+inherit python-single-r1
+
+DESCRIPTION="Tool to produce LaTeX Beamer code from wiki-like input"
+
+MY_P=wiki2beamer-v${PV}
+HOMEPAGE="https://wiki2beamer.github.io/"
+SRC_URI="https://github.com/wiki2beamer/wiki2beamer/archive/${MY_P}.tar.gz"
+
+LICENSE="GPL-2+ FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc +examples"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ doc? ( dev-ruby/asciidoctor )"
+
+S="${WORKDIR}/wiki2beamer-${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-doc-examples-makefile.patch
+ "${FILESDIR}"/${P}-doc-man-makefile.patch
+)
+
+src_compile() {
+ use doc && emake -C doc/man/ wiki2beamer.1
+}
+
+src_install() {
+ use examples && dodoc -r doc/examples
+
+ doman doc/man/${PN}.1
+ dodoc ChangeLog README.md
+
+ python_doscript code/${PN}
+}