Skip to content

Commit

Permalink
dev-tex/culmus-latex: EAPI7 revbump, improve ebuild
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/664520
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com>
  • Loading branch information
mm1ke committed Jan 6, 2019
1 parent 5af08f6 commit 9f07ca7
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-tex/culmus-latex/Manifest
@@ -1 +1,2 @@
DIST culmus-latex-0.7.tar.gz 121188 BLAKE2B f6af996aec4d944265cd7a2595107d43af83995375b23aac89e2f528ec3a1bd39f9bf95c412e69230d9aa552e1d82fb5dc1b6e235dbe3bcc7a5763a35dc33968 SHA512 81f0351687e831f304d0a4a2be3684ebc2fcad8e696425beaaebd945c3ae048dd87a5f8614ec181ce47e0debb58a86c2c2e369f37d9ff7c7f5c1ded34206fd02
DIST culmus-latex-0.7_src.tar.gz 121188 BLAKE2B f6af996aec4d944265cd7a2595107d43af83995375b23aac89e2f528ec3a1bd39f9bf95c412e69230d9aa552e1d82fb5dc1b6e235dbe3bcc7a5763a35dc33968 SHA512 81f0351687e831f304d0a4a2be3684ebc2fcad8e696425beaaebd945c3ae048dd87a5f8614ec181ce47e0debb58a86c2c2e369f37d9ff7c7f5c1ded34206fd02
47 changes: 47 additions & 0 deletions dev-tex/culmus-latex/culmus-latex-0.7-r1.ebuild
@@ -0,0 +1,47 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit latex-package

DESCRIPTION="Culmus fonts support for latex"
HOMEPAGE="http://ivritex.sourceforge.net/"
SRC_URI="mirror://sourceforge/ivritex/${P}_src.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="examples"

RDEPEND="virtual/latex-base"
DEPEND="${RDEPEND}
|| (
>=media-fonts/culmus-0.110[fancy]
<media-fonts/culmus-0.110
)
app-text/t1utils"

src_compile() {
emake CULMUSDIR=/usr/share/fonts/culmus/
echo "Map culmus.map" > ${PN}.cfg || die
}

src_install() {
emake CULMUSDIR=/usr/share/fonts/culmus/ \
DESTDIR="${D}" \
TEXMFROOT=/usr/share/texmf-site \
pkginstall

insinto /etc/texmf/updmap.d
doins ${PN}.cfg

dodoc README

if use examples ; then
insinto /usr/share/doc/${PF}/examples
doins examples/*
insinto /usr/share/doc/${PF}/examples/hiriq
doins examples/hiriq/*
fi
}

0 comments on commit 9f07ca7

Please sign in to comment.