Diff hamlib-3.2 with a hamlib-3.3
/usr/portage/media-libs/hamlib/hamlib-3.3.ebuild 2019-10-11 19:11:00.000000000 +0300 | ||
---|---|---|
1 | 1 |
# Copyright 1999-2019 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 |
PYTHON_COMPAT=( python2_7 python3_{5,6} ) |
7 | 7 | |
8 |
inherit autotools-utils eutils multilib python-single-r1 |
|
8 |
inherit autotools python-single-r1 |
|
9 | 9 | |
10 | 10 |
DESCRIPTION="Ham radio backend rig control libraries" |
11 | 11 |
HOMEPAGE="https://www.hamlib.org" |
... | ... | |
56 | 56 |
sed -i -e "s/doc:/html:/g" doc/Makefile.am || die "sed failed" |
57 | 57 | |
58 | 58 |
eautoreconf |
59 | ||
60 |
eapply_user |
|
59 | 61 |
} |
60 | 62 | |
61 | 63 |
src_configure() { |
62 |
local myeconfargs=( |
|
63 |
--libdir=/usr/$(get_libdir)/hamlib |
|
64 |
--disable-static |
|
65 |
--with-xml-support |
|
66 |
$(use_with perl perl-binding) |
|
67 |
$(use_with python python-binding) |
|
64 |
econf \ |
|
65 |
--libdir=/usr/$(get_libdir)/hamlib \ |
|
66 |
--disable-static \ |
|
67 |
--with-xml-support \ |
|
68 |
$(use_with perl perl-binding) \ |
|
69 |
$(use_with python python-binding) \ |
|
68 | 70 |
$(use_with tcl tcl-binding) |
69 |
--disable-silent-rules |
|
70 |
) |
|
71 |
autotools-utils_src_configure |
|
72 | 71 |
} |
73 | 72 | |
74 | 73 |
src_compile() { |
75 |
autotools-utils_src_compile |
|
76 |
use doc && autotools-utils_src_compile html |
|
74 |
emake |
|
75 |
use doc && emake html |
|
77 | 76 |
} |
78 | 77 | |
79 | 78 |
src_install() { |
80 |
use doc && HTML_DOCS=("${AUTOTOOLS_BUILD_DIR}/doc/html/") |
|
81 |
autotools-utils_src_install |
|
79 |
emake DESTDIR="${D}" install |
|
80 | ||
81 |
use doc && HTML_DOCS=( doc/html/ ) |
|
82 |
einstalldocs |
|
82 | 83 | |
83 | 84 |
insinto /usr/$(get_libdir)/pkgconfig |
84 |
doins "${AUTOTOOLS_BUILD_DIR}"/hamlib.pc || die "doins failed" |
|
85 |
doins hamlib.pc || die "doins failed" |
|
85 | 86 | |
86 | 87 |
echo "LDPATH=/usr/$(get_libdir)/hamlib" > "${T}"/73hamlib |
87 | 88 |
doenvd "${T}"/73hamlib || die "doenvd failed" |