summaryrefslogtreecommitdiff
path: root/app-text/peg-markdown
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-text/peg-markdown
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-text/peg-markdown')
-rw-r--r--app-text/peg-markdown/Manifest3
-rw-r--r--app-text/peg-markdown/metadata.xml11
-rw-r--r--app-text/peg-markdown/peg-markdown-0.4.14.ebuild40
3 files changed, 54 insertions, 0 deletions
diff --git a/app-text/peg-markdown/Manifest b/app-text/peg-markdown/Manifest
new file mode 100644
index 000000000000..503b7059764d
--- /dev/null
+++ b/app-text/peg-markdown/Manifest
@@ -0,0 +1,3 @@
+DIST peg-markdown-0.4.14.tar.gz 85692 BLAKE2B a52b894a03921595850d460ced20257096b5a4afb00fca5849c64f7506fd2f39946f2ad13bec50f5032610669bdb14d4f789ceb509b533040a90f228fc443879 SHA512 38e43b548b2cedf04fae87baf91c9e0767914bdb617ee4b6a3cbe950f8cbb0717c457cafabcff606501e889ac196a0aef94317f3bf85f5b88a2285f686b6dd5e
+EBUILD peg-markdown-0.4.14.ebuild 922 BLAKE2B 7ecf5dd892051f8b51b049c852018143caddf3aefbf429bd8e18ce16a22aa83add778ad7d1cfa789b8b416931bf06b1703bf2660e43a759b6e31e5e921f6d89a SHA512 8a75ea5bc64564d25c0e5ed8ff82c361c5b418b40562aca67352396d004754224c83db88ea9d3065aa52abc19f91a84232e540421eca418b326c5d824ba2c1dc
+MISC metadata.xml 338 BLAKE2B 2287ec19d83b0cfe1bb293855f47a6107fd7c1a0f076f2e405f6b07ca1c1ca42ef31f1047bc159e20996cdbbf682a46a3684b2a1fb0e63875638fe77d38bc02e SHA512 d95bbb5ca89e46c57e21d2bbebedbdbf9a103db6ee3f5ba01155d69c4d4e091a918fc9cd6dc6787918ad11075cb0160a9490a551475fe0100be57a08c8aea838
diff --git a/app-text/peg-markdown/metadata.xml b/app-text/peg-markdown/metadata.xml
new file mode 100644
index 000000000000..e8f120ba5018
--- /dev/null
+++ b/app-text/peg-markdown/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>rafaelmartins@gentoo.org</email>
+ <name>Rafael G. Martins</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">jgm/peg-markdown</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-text/peg-markdown/peg-markdown-0.4.14.ebuild b/app-text/peg-markdown/peg-markdown-0.4.14.ebuild
new file mode 100644
index 000000000000..10e5d2c0581c
--- /dev/null
+++ b/app-text/peg-markdown/peg-markdown-0.4.14.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Implementation of markdown in C, using a PEG grammar"
+HOMEPAGE="https://github.com/jgm/peg-markdown"
+SRC_URI="https://github.com/jgm/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="|| ( GPL-2 MIT )"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND="dev-libs/glib:2"
+DEPEND="${RDEPEND}
+ dev-util/peg
+ test? (
+ dev-lang/perl
+ virtual/perl-Getopt-Long
+ app-text/htmltidy )"
+
+src_prepare() {
+ rm -rf peg-* || die "rm failed"
+ sed -i \
+ -e 's/^PROGRAM=markdown/PROGRAM=peg-markdown/' \
+ -e 's/$(CC) `/$(CC) $(LDFLAGS) `/g' \
+ -e 's/^\t$(LEG)/\tleg/' \
+ -e 's/^$(PEGDIR):/dummy:/' \
+ -e '/$(PEGDIR)/d' \
+ -e 's/$(LEG) //g' \
+ Makefile || die 'sed failed'
+ sed -i \
+ -e '/strdup/d' markdown_peg.h || die 'sed .h failed'
+}
+
+src_install() {
+ dobin peg-markdown
+ dodoc README.markdown
+}