commit: 396ef66c82dfa6252ff0a99af149ca17a9e98f78
parent: ed28b9cff59034a9b9aa9d233243a7c0015a4ceb
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 5 Jan 2020 07:37:50 +0100
app-text/hoedown: Adapt from 4nykey repo
Diffstat:
4 files changed, 93 insertions(+), 0 deletions(-)
diff --git a/app-text/hoedown/Manifest b/app-text/hoedown/Manifest
@@ -0,0 +1 @@
+DIST hoedown-3.0.7.tar.gz 66228 BLAKE2B 68c69d87e09c115c61f3644f116a0747dfce897dc288b5818d2502cd317477a1af8dffd552a102bb8fc79915efb5e33d46eb098c1d20e8b3413db2eb7a8d67d6 SHA512 b8b6652350693084d70fd4db4e48a4dbdc1d02164152b1337eee981c9268bc3913ce6b70d56d955204549f650b0bce3d53d40d09c18f6fb21e88937597c76241
diff --git a/app-text/hoedown/hoedown-3.0.7.ebuild b/app-text/hoedown/hoedown-3.0.7.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+if [[ ${PV} == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+else
+ SRC_URI="https://github.com/hoedown/hoedown/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Standards compliant, fast, secure markdown processing library in C"
+HOMEPAGE="https://github.com/hoedown/hoedown"
+
+LICENSE="ISC"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="!dev-python/smartypants"
+DEPEND="
+ ${RDEPEND}
+ test? ( app-text/htmltidy )
+"
+
+src_compile() {
+ emake \
+ CC=$(tc-getCC) \
+ CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ emake \
+ PREFIX=/usr \
+ LIBDIR=/usr/$(get_libdir) \
+ DESTDIR="${D}" \
+ install
+ einstalldocs
+}
diff --git a/app-text/hoedown/hoedown-9999.ebuild b/app-text/hoedown/hoedown-9999.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+if [[ ${PV} == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+else
+ SRC_URI="https://github.com/hoedown/hoedown/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Standards compliant, fast, secure markdown processing library in C"
+HOMEPAGE="https://github.com/hoedown/hoedown"
+
+LICENSE="ISC"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="!dev-python/smartypants"
+DEPEND="
+ ${RDEPEND}
+ test? ( app-text/htmltidy )
+"
+
+src_compile() {
+ emake \
+ CC=$(tc-getCC) \
+ CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ emake \
+ PREFIX=/usr \
+ LIBDIR=/usr/$(get_libdir) \
+ DESTDIR="${D}" \
+ install
+ einstalldocs
+}
diff --git a/app-text/hoedown/metadata.xml b/app-text/hoedown/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>contact@hacktivis.me</email>
+ <name>Haelwenn (lanodan) Monnier</name>
+ </maintainer>
+</pkgmetadata>