blob: d22c91b18e30f7ada071cbb16a0e05a314007bb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit optfeature
DESCRIPTION="convert native MATLAB(R) figures to TikZ/Pgfplots"
HOMEPAGE="https://github.com/matlab2tikz/matlab2tikz"
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=">=sci-mathematics/octave-4.0.0"
RDEPEND="${DEPEND}"
src_install() {
dodoc README.md CHANGELOG.md
export pkgpath="/usr/share/octave/site/m/${PN}"
insinto "${pkgpath}"
doins -r src/*
}
pkg_postinst() {
# TODO: is there a way to do this automatically for all users?
einfo "Run addpath('${pkgpath}'); inside octave to add this package to the octave path"
optfeature "to build the generated files" dev-texlive/texlive-pictures dev-texlive/texlive-latexextra
}
|