Skip to content

Commit

Permalink
app-emacs/yatex: bump to 1.83
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Barć <[email protected]>
  • Loading branch information
xgqt committed May 6, 2024
1 parent 482933e commit 2fb7ea2
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-emacs/yatex/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST yatex1.82.tar.gz 387358 BLAKE2B 77c88563e3beb7b29ac8a4d7204d14b966c9a88b1c2f04c6160089f0b61a70c9d6aa135d2e1cee6e13a90cc108428ce80e7ef0d0b8852b9a8651e67f34af7e1e SHA512 8c2890fc12e93aace5ac51e24da315a9d241aec023a3c67187c1fd28d2a7a02d1688b7e1177e1ba13411ecb394b5d581298c735cd80195e663bbdcf240f10fe5
DIST yatex1.83.tar.gz 389259 BLAKE2B 40a5475c1b46e93531eeac3b7ed3e90f7a68c0faad91cc9c74b38af0e36a83578032615a2dfdcd7a6ede2b9eda36e128581c162a84b913362612cd07df9f1d81 SHA512 7e12532a5af8139b99457ff1137b19e5d1272f6bc13e3baea62d57e6ec036154ae733696ae8b6c1c1b8a6949aaa0425a34a8485ce61cbe0df72ceee1489eaedf
61 changes: 61 additions & 0 deletions app-emacs/yatex/yatex-1.83.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit elisp

DESCRIPTION="Yet Another TeX mode for Emacs"
HOMEPAGE="http://www.yatex.org/"
SRC_URI="http://www.${PN}.org/${P/-}.tar.gz"
S="${WORKDIR}/${P/-}"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="l10n_ja"

BDEPEND="
l10n_ja? ( virtual/libiconv )
"

PATCHES=(
"${FILESDIR}/${PN}-1.76-direntry.patch"
"${FILESDIR}/${PN}-1.80-texinfo-5.patch"
"${FILESDIR}/${PN}-1.82-texinfo.patch"
)

SITEFILE="50${PN}-gentoo.el"

src_prepare() {
sed -i "/(help-dir/,/)))/c\ (help-dir \"${SITEETC}/${PN}\"))" "${PN}hlp.el"

elisp_src_prepare
}

src_compile() {
cd docs
makeinfo {${PN},yahtml}e.tex || die

if use l10n_ja; then
iconv -f WINDOWS-31J -t UTF-8 "${PN}j.tex" > "${PN}-ja.texi" || die
iconv -f WINDOWS-31J -t UTF-8 yahtmlj.tex > yahtml-ja.texi || die
makeinfo {${PN},yahtml}-ja.texi || die
fi
}

src_install() {
elisp-install "${PN}" ./*.el
elisp-site-file-install "${FILESDIR}/${SITEFILE}"

insinto "${SITEETC}/${PN}"
doins help/YATEXHLP.eng
doinfo docs/{${PN},yahtml}.info*
dodoc install docs/*.eng

if use l10n_ja; then
doins help/YATEXHLP.jp
doinfo docs/{${PN},yahtml}-ja.info*
dodoc 00readme "${PN}.new" docs/{htmlqa,qanda,*.doc}
fi
}

0 comments on commit 2fb7ea2

Please sign in to comment.