1 |
commit: 6732140831ad90a5a0199fd4caa4fbfe821bfb78 |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Aug 5 16:05:40 2018 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 20 15:00:33 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67321408 |
7 |
|
8 |
dev-tex/dvi2gr: EAPI7, improve ebuild. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/663808 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/9461 |
12 |
|
13 |
dev-tex/dvi2gr/dvi2gr-0.4-r1.ebuild | 44 +++++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 44 insertions(+) |
15 |
|
16 |
diff --git a/dev-tex/dvi2gr/dvi2gr-0.4-r1.ebuild b/dev-tex/dvi2gr/dvi2gr-0.4-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..0de71abc833 |
19 |
--- /dev/null |
20 |
+++ b/dev-tex/dvi2gr/dvi2gr-0.4-r1.ebuild |
21 |
@@ -0,0 +1,44 @@ |
22 |
+# Copyright 1999-2018 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+inherit toolchain-funcs |
28 |
+ |
29 |
+DESCRIPTION="DVI to Grace translator" |
30 |
+HOMEPAGE="http://plasma-gate.weizmann.ac.il/Grace/" |
31 |
+SRC_URI="ftp://plasma-gate.weizmann.ac.il/pub/grace/src/devel/${P}.tar.gz" |
32 |
+ |
33 |
+SLOT="0" |
34 |
+LICENSE="GPL-2" |
35 |
+KEYWORDS="~amd64 ~x86" |
36 |
+IUSE="examples" |
37 |
+ |
38 |
+DEPEND="media-libs/t1lib" |
39 |
+RDEPEND="${DEPEND}" |
40 |
+ |
41 |
+src_prepare() { |
42 |
+ tc-export CC |
43 |
+ default |
44 |
+ # respect flags |
45 |
+ sed -i \ |
46 |
+ -e '/^LDFLAGS/d' -e '/^CFLAGS/d' -e '/^CC/d' \ |
47 |
+ Makefile || die |
48 |
+ sed -i -e 's/DVI2GR=\.\/dvi2gr/DVI2GR=$(which dvi2gr)/g' runtest.sh || die |
49 |
+} |
50 |
+ |
51 |
+src_install() { |
52 |
+ dobin ${PN} |
53 |
+ if use examples; then |
54 |
+ insinto /usr/share/doc/${PF}/examples |
55 |
+ doins *.ti runtest.sh |
56 |
+ fi |
57 |
+ |
58 |
+ insinto /usr/share/${PN} |
59 |
+ doins -r fonts |
60 |
+} |
61 |
+ |
62 |
+pkg_postinst() { |
63 |
+ einfo "Don't forget install the TeX-Fonts in Grace" |
64 |
+ einfo " /usr/share/${PN}/fonts/FontDataBase" |
65 |
+} |