mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
Package-Manager: Portage-3.0.14-prefix, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org>
43 lines
999 B
Bash
43 lines
999 B
Bash
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit elisp edos2unix readme.gentoo-r1
|
|
|
|
DESCRIPTION="Blogging in Emacs"
|
|
HOMEPAGE="https://billstclair.com/blogmax/index.html"
|
|
# snapshot from https://github.com/billstclair/BlogMax
|
|
SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.xz"
|
|
|
|
LICENSE="GPL-1+"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~ppc ~x86"
|
|
|
|
S="${WORKDIR}/${PN}"
|
|
ELISP_REMOVE="*.elc gpl.txt"
|
|
SITEFILE="50${PN}-gentoo.el"
|
|
|
|
src_prepare() {
|
|
edos2unix *.{el,html,inc,ini,tmpl,txt,xml} docs/*.{html,txt}
|
|
elisp_src_prepare
|
|
}
|
|
|
|
src_compile() {
|
|
elisp-compile blogmax.el
|
|
}
|
|
|
|
src_install() {
|
|
elisp-install ${PN} blogmax.{el,elc}
|
|
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
|
|
|
DOC_CONTENTS="To get started with BlogMax, use the example site file
|
|
from /usr/share/doc/${PF}/example as a template for your own blog."
|
|
readme.gentoo_create_doc
|
|
|
|
dodoc README
|
|
dodoc -r docs
|
|
docinto example
|
|
dodoc *.{html,inc,ini,png,tmpl,txt,xml}
|
|
}
|