Browse Source

Update gmt-9999.ebuild

master
Michael Uleysky 3 years ago
parent
commit
0f56b347c5
  1. 24
      sci-geosciences/gmt/gmt-9999.ebuild

24
sci-geosciences/gmt/gmt-9999.ebuild

@ -12,18 +12,17 @@ SRC_URI=""
LICENSE="GPL-2 gmttria? ( Artistic )" LICENSE="GPL-2 gmttria? ( Artistic )"
SLOT="5" SLOT="5"
IUSE="+dcw doc examples +fftw +gdal gmttria +gshhg htmldoc lapack multislot openmp pcre pcre2 threads" IUSE="+dcw doc examples +fftw +gdal gmttria +gshhg lapack multislot openmp pcre pcre2 threads"
RDEPEND=" RDEPEND="
!sci-biology/probcons !sci-biology/probcons
app-text/ghostscript-gpl app-text/ghostscript-gpl
dcw? ( sci-geosciences/dcw-gmt ) dcw? ( sci-geosciences/dcw-gmt )
doc? ( dev-python/sphinx ) doc? ( dev-python/sphinx )
doc? ( dev-tex/latexmk ) doc? ( dev-python/sphinx-panels )
fftw? ( sci-libs/fftw:3.0/3 ) fftw? ( sci-libs/fftw:3.0/3 )
gdal? ( sci-libs/gdal ) gdal? ( sci-libs/gdal )
gshhg? ( sci-geosciences/gshhg-gmt ) gshhg? ( sci-geosciences/gshhg-gmt )
htmldoc? ( dev-python/sphinx )
>=sci-libs/netcdf-4.1[hdf5] >=sci-libs/netcdf-4.1[hdf5]
lapack? ( virtual/lapack ) lapack? ( virtual/lapack )
!multislot? ( !sci-geosciences/gmt:0 ) !multislot? ( !sci-geosciences/gmt:0 )
@ -59,20 +58,13 @@ src_configure() {
src_compile() { src_compile() {
cmake-utils_src_compile cmake-utils_src_compile
pushd "${BUILD_DIR}" || die pushd "${BUILD_DIR}" || die
local havedoc="n"
if use doc; then if use doc; then
# make -j1 docs_pdf || die
# havedoc="y"
# fi
# if use htmldoc; then
make -j1 docs_html || die make -j1 docs_html || die
havedoc="y"
fi
if [ "$havedoc" == "y" ]; then
make -j1 docs_man || die make -j1 docs_man || die
if use multislot; then if use multislot; then
# Rename man pages to avoid a name conflict with gmt4 # Rename man pages to avoid a name conflict with gmt4
pushd doc_modern/rst/man || die pushd doc/rst/man/1 || die
local m c suffix newc local m c suffix newc
for m in *.gz; do for m in *.gz; do
c=${m%%.*} c=${m%%.*}
@ -97,10 +89,6 @@ src_compile() {
src_install() { src_install() {
cmake-utils_src_install cmake-utils_src_install
# Remove various documentation
if ! use doc; then
rm -rf "${ED}/usr/share/doc/${PF}/pdf" || die
fi
if use examples; then if use examples; then
docompress -x /usr/share/doc/${PF}/examples docompress -x /usr/share/doc/${PF}/examples
@ -108,12 +96,12 @@ src_install() {
rm -rf "${ED}/usr/share/doc/${PF}/examples" || die rm -rf "${ED}/usr/share/doc/${PF}/examples" || die
fi fi
if ! use htmldoc; then if ! use doc; then
rm -rf "${ED}/usr/share/doc/${PF}/html" || die rm -rf "${ED}/usr/share/doc/${PF}/html" || die
fi fi
# Decompress manuals # Decompress manuals
if use doc || use htmldoc; then if use doc; then
find "${ED}/usr/share/man" -name "*.gz" -exec gunzip {} + || die find "${ED}/usr/share/man" -name "*.gz" -exec gunzip {} + || die
fi fi

Loading…
Cancel
Save