app-text/hoedown - 9999 (mva)

Search

Install

Install this version:

emerge -a =app-text/hoedown-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-text/hoedown-9999

Or alternatively:

emerge --autounmask-write -a =app-text/hoedown-9999

Package Information

Description:
Standards compliant, fast, secure markdown processing library in C
Homepage:
https://github.com/hoedown/hoedown
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
9999 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 2026 mva
# Distributed under the terms of the Public Domain or CC0 License

EAPI=8

inherit multilib-minimal patches

DESCRIPTION="Standards compliant, fast, secure markdown processing library in C"

HOMEPAGE="https://github.com/hoedown/hoedown"

LICENSE="MIT"
SLOT="0"

BDEPEND="dev-util/gperf"

if [[ "${PV}" == 9999* ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/${PN}/${PN}"
else
	SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~x86"
fi

src_prepare() {
	sed -r \
		-e "/^PREFIX/s@(=).*@\1/usr@" \
		-e "/^LIBDIR/s@/lib\$@/$(get_libdir)@" \
		-e "/^install/,\$s@(smartypants)@\1-hoedown@" \
		-e "/^smartypants:/s@(smartypants)@\1-hoedown@" \
		-e "/^all:/s@(smartypants)@\1-hoedown@" \
		-i "${S}"/Makefile
	patches_src_prepare
	multilib_copy_sources
}

Inherited Eclasses

Dependencies

BDEPEND

dev-util/gperf