diff options
author | 2021-07-29 03:04:49 +0100 | |
---|---|---|
committer | 2021-07-29 03:05:46 +0100 | |
commit | c4cb632a088d7942d5c602b692fc93ba9d2122f2 (patch) | |
tree | 6ab805eab30a8efb5eb9da07b31ca80e4583ee48 /dev-tex/dvi2gr/dvi2gr-0.4-r2.ebuild | |
parent | net-vpn/openvpn: fix docinto argument (avoid double 'prefix') (diff) | |
download | gentoo-c4cb632a088d7942d5c602b692fc93ba9d2122f2.tar.gz gentoo-c4cb632a088d7942d5c602b692fc93ba9d2122f2.tar.bz2 gentoo-c4cb632a088d7942d5c602b692fc93ba9d2122f2.zip |
dev-tex/dvi2gr: fix docinto argument (avoid double 'prefix')
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-tex/dvi2gr/dvi2gr-0.4-r2.ebuild')
-rw-r--r-- | dev-tex/dvi2gr/dvi2gr-0.4-r2.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-tex/dvi2gr/dvi2gr-0.4-r2.ebuild b/dev-tex/dvi2gr/dvi2gr-0.4-r2.ebuild new file mode 100644 index 000000000000..153f64fc4943 --- /dev/null +++ b/dev-tex/dvi2gr/dvi2gr-0.4-r2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs virtualx + +DESCRIPTION="DVI to Grace translator" +HOMEPAGE="https://plasma-gate.weizmann.ac.il/Grace/" +SRC_URI="ftp://plasma-gate.weizmann.ac.il/pub/grace/src/devel/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +IUSE="examples test" +#RESTRICT="!test? ( test )" +# Still missing some fontpackage, but which? +RESTRICT="test" + +DEPEND="media-libs/t1lib" +RDEPEND="${DEPEND}" +BDEPEND="test? ( + sci-visualization/grace +)" + +src_prepare() { + tc-export CC + default + # respect flags + sed -i \ + -e '/^LDFLAGS/d' -e '/^CFLAGS/d' -e '/^CC/d' \ + Makefile || die + sed -i -e 's/DVI2GR=\.\/dvi2gr/DVI2GR=$(which dvi2gr)/g' runtest.sh || die +} + +src_install() { + dobin ${PN} + + if use examples; then + docinto examples + dodoc *.ti runtest.sh + fi + + insinto /usr/share/${PN} + doins -r fonts +} + +src_test() { + virtx default +} + +pkg_postinst() { + einfo "Don't forget install the TeX-Fonts in Grace" + einfo " /usr/share/${PN}/fonts/FontDataBase" +} |