Diff cfitsio-3.360 with a cfitsio-3.410

/usr/portage/sci-libs/cfitsio/cfitsio-3.410.ebuild 2020-02-15 13:10:00.000000000 +0300
1 1
# Copyright 1999-2020 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=5
4
EAPI=6
5 5

  
6 6
FORTRAN_NEEDED=fortran
7 7

  
8
inherit autotools-utils fortran-2
8
inherit fortran-2 ltprune multilib-minimal
9 9

  
10 10
DESCRIPTION="C and Fortran library for manipulating FITS files"
11 11
HOMEPAGE="https://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html"
12 12
SRC_URI="https://dev.gentoo.org/~bicatali/distfiles/${P}.tar.gz"
13 13

  
14 14
LICENSE="MIT"
15
SLOT="0/1"
16
KEYWORDS="~alpha amd64 hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris"
17
IUSE="doc examples fortran static-libs +tools threads"
18

  
19
RDEPEND="sys-libs/zlib"
15
SLOT="0/5"
16
KEYWORDS="~alpha amd64 hppa ppc ppc64 sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris"
17
IUSE="bzip2 doc examples fortran static-libs +tools threads"
18

  
19
RDEPEND="
20
	sys-libs/zlib[${MULTILIB_USEDEP}]
21
	bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )"
20 22
DEPEND="${RDEPEND}
21 23
	fortran? ( dev-lang/cfortran )"
22 24

  
......
30 32
		mv cfortran.h cfortran.h.disabled
31 33
		ln -s "${EPREFIX}"/usr/include/cfortran.h . || die
32 34
	fi
33
	autotools-utils_src_prepare
35
	default
34 36
}
35 37

  
36
src_configure() {
37
	local myeconfargs=(
38
		$(use_enable fortran)
39
		$(use_enable threads)
40
		$(use_enable tools)
41
	)
42
	autotools-utils_src_configure
38
multilib_src_configure() {
39
	ECONF_SOURCE="${S}" econf \
40
		$(use_enable fortran) \
41
		$(use_enable static-libs static) \
42
		$(use_enable threads) \
43
		$(use_enable tools) \
44
		$(use_with bzip2)
43 45
}
44 46

  
45
src_install() {
46
	autotools-utils_src_install
47
	dodoc README* Changes* docs/changes.txt docs/cfitsio.doc
47
multilib_src_install_all() {
48
	dodoc README README.md CHANGES.md docs/changes.txt docs/cfitsio.doc
48 49
	use fortran && dodoc docs/fitsio.doc
49 50
	use doc && dodoc docs/{quick,cfitsio,fpackguide}.pdf
50 51
	use doc && use fortran && dodoc docs/fitsio.pdf
......
53 54
		doins cookbook.c testprog.c speed.c smem.c
54 55
		use fortran && doins cookbook.f testf77.f
55 56
	fi
57
	prune_libtool_files --all
56 58
}
Thank you!