diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-06-15 14:57:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-06-15 14:57:03 +0100 |
commit | d18bf1e01b65ee4bf0c804e2843b282d3d4e5d7c (patch) | |
tree | 4a95cbc6ffdf13bad6ecbc7f8d5af99631984123 /sci-visualization/epix/epix-1.2.19.ebuild | |
parent | e748ba9741f6540f4675c23e3e37b73e822c13a4 (diff) |
gentoo resync : 15.06.2021
Diffstat (limited to 'sci-visualization/epix/epix-1.2.19.ebuild')
-rw-r--r-- | sci-visualization/epix/epix-1.2.19.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/sci-visualization/epix/epix-1.2.19.ebuild b/sci-visualization/epix/epix-1.2.19.ebuild new file mode 100644 index 000000000000..9324913332a0 --- /dev/null +++ b/sci-visualization/epix/epix-1.2.19.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit elisp-common bash-completion-r1 autotools + +DESCRIPTION="2- and 3-D plotter for creating images (to be used in LaTeX)" +HOMEPAGE="https://mathcs.holycross.edu/~ahwang/current/ePiX.html" +SRC_URI="https://mathcs.holycross.edu/~ahwang/epix/${P}_withpdf.tar.bz2" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="doc emacs examples" + +DEPEND=" + virtual/latex-base + dev-texlive/texlive-pstricks + dev-texlive/texlive-pictures + dev-texlive/texlive-latexextra + dev-texlive/texlive-latexrecommended + emacs? ( >=app-editors/emacs-23.1:* )" +RDEPEND="${DEPEND}" +SITEFILE=50${PN}-gentoo.el + +PATCHES=( + "${FILESDIR}/${P}-autotools.patch" +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --docdir="${EPREFIX}/usr/share/doc/${PF}" \ + --disable-epix-el +} + +src_install() { + default + if use emacs; then + # do compilation here as the make install target will + # create the .el file + elisp-compile *.el || die "elisp-compile failed!" + elisp-install ${PN} *.elc *.el || die "elisp-install failed!" + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + newbashcomp bash_completions epix + bashcomp_alias epix flix elaps laps + if use doc; then + dodoc doc/*gz + docompress -x /usr/share/doc/${PF}/manual{.pdf,.ps,_src.tar}.gz + fi + if use examples; then + cd samples || die + docinto examples + dodoc *.xp *.flx *c *h README + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |