1 |
commit: f2d8e84ad472beb88a84a17058702f3b1ba0c70b |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 10 12:51:44 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 10 12:51:44 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2d8e84a |
7 |
|
8 |
sci-visualization/epix: add 1.2.19 and EAPI bump |
9 |
|
10 |
Closes: https://bugs.gentoo.org/790524 |
11 |
Package-Manager: Portage-3.0.19, Repoman-3.0.3 |
12 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
13 |
|
14 |
sci-visualization/epix/Manifest | 1 + |
15 |
sci-visualization/epix/epix-1.2.19.ebuild | 70 +++++++++++++++++++ |
16 |
.../epix/files/epix-1.2.19-autotools.patch | 78 ++++++++++++++++++++++ |
17 |
3 files changed, 149 insertions(+) |
18 |
|
19 |
diff --git a/sci-visualization/epix/Manifest b/sci-visualization/epix/Manifest |
20 |
index a31bf1db68b..bbfa0f1195c 100644 |
21 |
--- a/sci-visualization/epix/Manifest |
22 |
+++ b/sci-visualization/epix/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST epix-1.2.11_withpdf.tar.bz2 1709429 BLAKE2B db9cba5b94e27742347f8fc85366399016438681a7016077966e5048b9a178404af8305da7d170722aaac82d85283552f87fbba76b21e788fee546b0e0aebf43 SHA512 16d0edf13711e469a13faba83d47fbab983277a95cfed0e343089258da0b8a56104af9fc217aaa70928c50f10e7d152df93c3638cf2a65a2833142645a829a45 |
25 |
+DIST epix-1.2.19_withpdf.tar.bz2 1757443 BLAKE2B 4c7d78f27d355e078ebbe81f9c5d9b1d342f4f04d5f91260460d0559bfb7fc8204668072c06c8d493eb739c492b2935bffd24cb77cd554cd863734b7d84ff6e1 SHA512 b51821256ccaf9957562964b1342ee1656d1d8456081869797d8c704df3098d2643135767987b0673aa64a16703cb2e21deea4aef7d1598e67b9661b98245cda |
26 |
|
27 |
diff --git a/sci-visualization/epix/epix-1.2.19.ebuild b/sci-visualization/epix/epix-1.2.19.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..9324913332a |
30 |
--- /dev/null |
31 |
+++ b/sci-visualization/epix/epix-1.2.19.ebuild |
32 |
@@ -0,0 +1,70 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit elisp-common bash-completion-r1 autotools |
39 |
+ |
40 |
+DESCRIPTION="2- and 3-D plotter for creating images (to be used in LaTeX)" |
41 |
+HOMEPAGE="https://mathcs.holycross.edu/~ahwang/current/ePiX.html" |
42 |
+SRC_URI="https://mathcs.holycross.edu/~ahwang/epix/${P}_withpdf.tar.bz2" |
43 |
+ |
44 |
+SLOT="0" |
45 |
+LICENSE="GPL-2" |
46 |
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
47 |
+IUSE="doc emacs examples" |
48 |
+ |
49 |
+DEPEND=" |
50 |
+ virtual/latex-base |
51 |
+ dev-texlive/texlive-pstricks |
52 |
+ dev-texlive/texlive-pictures |
53 |
+ dev-texlive/texlive-latexextra |
54 |
+ dev-texlive/texlive-latexrecommended |
55 |
+ emacs? ( >=app-editors/emacs-23.1:* )" |
56 |
+RDEPEND="${DEPEND}" |
57 |
+SITEFILE=50${PN}-gentoo.el |
58 |
+ |
59 |
+PATCHES=( |
60 |
+ "${FILESDIR}/${P}-autotools.patch" |
61 |
+) |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ default |
65 |
+ eautoreconf |
66 |
+} |
67 |
+ |
68 |
+src_configure() { |
69 |
+ econf \ |
70 |
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
71 |
+ --disable-epix-el |
72 |
+} |
73 |
+ |
74 |
+src_install() { |
75 |
+ default |
76 |
+ if use emacs; then |
77 |
+ # do compilation here as the make install target will |
78 |
+ # create the .el file |
79 |
+ elisp-compile *.el || die "elisp-compile failed!" |
80 |
+ elisp-install ${PN} *.elc *.el || die "elisp-install failed!" |
81 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
82 |
+ fi |
83 |
+ newbashcomp bash_completions epix |
84 |
+ bashcomp_alias epix flix elaps laps |
85 |
+ if use doc; then |
86 |
+ dodoc doc/*gz |
87 |
+ docompress -x /usr/share/doc/${PF}/manual{.pdf,.ps,_src.tar}.gz |
88 |
+ fi |
89 |
+ if use examples; then |
90 |
+ cd samples || die |
91 |
+ docinto examples |
92 |
+ dodoc *.xp *.flx *c *h README |
93 |
+ fi |
94 |
+} |
95 |
+ |
96 |
+pkg_postinst() { |
97 |
+ use emacs && elisp-site-regen |
98 |
+} |
99 |
+ |
100 |
+pkg_postrm() { |
101 |
+ use emacs && elisp-site-regen |
102 |
+} |
103 |
|
104 |
diff --git a/sci-visualization/epix/files/epix-1.2.19-autotools.patch b/sci-visualization/epix/files/epix-1.2.19-autotools.patch |
105 |
new file mode 100644 |
106 |
index 00000000000..403d65444f9 |
107 |
--- /dev/null |
108 |
+++ b/sci-visualization/epix/files/epix-1.2.19-autotools.patch |
109 |
@@ -0,0 +1,78 @@ |
110 |
+diff --git a/Makefile.am b/Makefile.am |
111 |
+index 382230e..a0ff51d 100644 |
112 |
+--- a/Makefile.am |
113 |
++++ b/Makefile.am |
114 |
+@@ -86,11 +86,6 @@ epix elaps flix laps: %: %.in epix.el |
115 |
+ -e 's%@RUNTIME_COMPILER\@%$(CXX)%;' $< > $@-local |
116 |
+ chmod a+x $@ $@-local |
117 |
+ |
118 |
+-# libepix.a |
119 |
+-libepix.a: $(libepix_a_OBJECTS) |
120 |
+- ar -ru libepix.a $(libepix_a_OBJECTS) |
121 |
+- $(RANLIB) libepix.a |
122 |
+- |
123 |
+ # object file dependencies |
124 |
+ $(libepix_a_LIBADD): %.o: %.cc %.h |
125 |
+ |
126 |
+diff --git a/configure.ac b/configure.ac |
127 |
+index 9089c35..2d5fe60 100644 |
128 |
+--- a/configure.ac |
129 |
++++ b/configure.ac |
130 |
+@@ -9,6 +9,7 @@ AM_MAINTAINER_MODE |
131 |
+ dnl Checks for programs. |
132 |
+ AC_PROG_CXX |
133 |
+ AC_PROG_LN_S |
134 |
++AM_PROG_AR |
135 |
+ AC_PROG_RANLIB |
136 |
+ AC_PROG_MAKE_SET |
137 |
+ AC_PROG_INSTALL |
138 |
+diff --git a/doc/Makefile.am b/doc/Makefile.am |
139 |
+index c888b9a..4789c0a 100644 |
140 |
+--- a/doc/Makefile.am |
141 |
++++ b/doc/Makefile.am |
142 |
+@@ -1,7 +1,7 @@ |
143 |
+ # Makefile.am for ePiX v1.x "doc" directory |
144 |
+ # |
145 |
+ |
146 |
+-EPIXFLAGS = --no-defaults -I.. -L.. -lepix -v |
147 |
++EPIXFLAGS = --no-defaults -I.. -L.. -lepix -q |
148 |
+ |
149 |
+ %.eepic: %.xp |
150 |
+ ../epix-local $(EPIXFLAGS) $< |
151 |
+@@ -13,13 +13,13 @@ EEPICS = $(XPS:.xp=.eepic) |
152 |
+ CLEANFILES = *~ *.aux *.dvi *.log *.out *.toc \ |
153 |
+ *.idx *.ilg *.ind \ |
154 |
+ manual_src.tar manual.pdf manual.ps \ |
155 |
+- manual_src.tar.gz manual.pdf.gz manual.ps.gz manual-stamp |
156 |
++ manual_src.tar.gz manual.pdf manual.ps.gz manual-stamp |
157 |
+ |
158 |
+ MAINTAINERCLEANFILES = *.eepic *.aux *.dvi *.log *.out *.toc \ |
159 |
+ *.idx *.ilg *.ind |
160 |
+ |
161 |
+ ## Targets ## |
162 |
+-doc_DATA = manual.pdf.gz manual.ps.gz manual_src.tar.gz |
163 |
++doc_DATA = |
164 |
+ |
165 |
+ info_TEXINFOS = epix.texi |
166 |
+ |
167 |
+@@ -42,7 +42,6 @@ manual.ps.gz: manual-stamp |
168 |
+ |
169 |
+ #PDF |
170 |
+ manual.pdf.gz: manual-stamp |
171 |
+- gzip -9 -c manual.pdf > manual.pdf.gz |
172 |
+ |
173 |
+ epix.info: manual-stamp epix.texi |
174 |
+ makeinfo epix.texi |
175 |
+diff --git a/samples/Makefile.am b/samples/Makefile.am |
176 |
+index 38bb5cd..7cd7cd4 100644 |
177 |
+--- a/samples/Makefile.am |
178 |
++++ b/samples/Makefile.am |
179 |
+@@ -7,7 +7,7 @@ FLX = $(wildcard *.flx) |
180 |
+ CLEANFILES = *~ *.eepic *.eps sample_src.tar sample_src.tar.gz sample-stamp |
181 |
+ |
182 |
+ ## Targets ## |
183 |
+-doc_DATA = sample_src.tar.gz |
184 |
++doc_DATA = |
185 |
+ |
186 |
+ |
187 |
+ # tar up tex, xp, and eepic files |